X265Codec

Parameters for tuning the x265 encoder

Field

Type

Repeated

Description

threads

OptionalInt

The number of threads to allocate to the encode

bitrateMode

oneOf

⮑abr

uint32

Encode in average bitrate mode, specified in kilobits/sec (note, 1 kilobit is 1000 bits). You can make use of the vbv settings to control the bounds on how much the actual bitrate can fluctuate within the bounds of the average

⮑cqp

uint32

Encode in constant quantizer mode. In general, crf will give better results, although cqp can be faster to encode

⮑crf

float

Encode in constant rate factor mode. This will give a constant 'quality' to the encode, but with a variable bitrate

profile

X265Codec.X265Profile

Set the H265 profile of the output

level

OptionalInt

Sets the level flag in the output. Permissible levels are 1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2 - since this field is an integer, you pass in 10 times the required value (e.g., 11, 12 etc)

key_frame_interval_min

OptionalInt

Sets the minimum length between IDR frames

key_frame_interval_max

OptionalInt

Sets the maximum length between IDR frames

bframes

OptionalInt

Sets the maximum number of concurrent B-frames

tune

X265Codec.X265Tune

Tune options to further optimize them for your input content. If you specify a tuning, the changes will be applied after 'preset' but before all other parameters.

preset

X265Codec.X265Preset

Change options to trade off compression efficiency against encoding speed. If you specify a preset, the changes it makes will be applied before all other parameters are applied.

frame_reference

OptionalInt

Maximum number of reference frames, i.e., the number of previous frames each P-frame can use as references

vbv_max_rate

OptionalInt

Sets the maximum rate the VBV buffer should be assumed to refill at (kbit/s)

vbv_buffer_size

OptionalInt

Sets the size of the VBV buffer in kilobits

scene_cut

OptionalInt

Sets the threshold for I/IDR frame placement. Setting sceneCut to zero disables adaptive I-frame decisioning

aud

OptionalBool

Use access unit delimiters in the output

no_deblock

OptionalBool

Disables the loop filter. Not Recommended.

tier

X265Codec.X265Tier

Enums defined in this message

Name

Number

Description

X265_PROFILE_UNDEFINED

0

X265_PROFILE_MAIN

1

X265_PROFILE_MAIN10

2

X265_PROFILE_MAIN444_8

3

X265_PROFILE_MAIN422_10

4

X265_PROFILE_MAIN444_10

5

Name

Number

Description

X265_PRESET_ULTRAFAST

0

X265_PRESET_SUPERFAST

1

X265_PRESET_VERYFAST

2

X265_PRESET_FASTER

3

X265_PRESET_FAST

4

X265_PRESET_MEDIUM

5

X265_PRESET_SLOW

6

X265_PRESET_SLOWER

7

X265_PRESET_VERYSLOW

8

X265_PRESET_PLACEBO

9

Name

Number

Description

X265_TUNE_UNDEFINED

0

X265_TUNE_PSNR

1

X265_TUNE_SSIM

2

X265_TUNE_GRAIN

3

X265_TUNE_ZEROLATENCY

4

X265_TUNE_FASTDECODE

5

X265_TUNE_ANIMATION

6

Name

Number

Description

X265_TIER_MAIN

0

X265_TIER_HIGH

1

Member of