X265Codec interface

X265 codec

Signature:

export interface X265Codec

Properties

Property Type Description

aud?

boolean

(Optional) Use access unit delimiters in the output

bframes?

number

(Optional) Sets the maximum number of concurrent B-frames

bitrateMode?

BitrateMode

(Optional)

frameReference?

number

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

intraRefresh?

boolean

(Optional) Enables Gradual Decoder Refresh (intra-refresh): instead of periodic IDR keyframes, a moving wave of intra-coded blocks refreshes the picture over the keyint period, avoiding the bitrate spike of an IDR. The refresh wave length is driven by keyFrameIntervalMax/Min once enabled.

keyFrameIntervalMax?

number

(Optional) Sets the maximum length between IDR frames

keyFrameIntervalMin?

number

(Optional) Sets the minimum length between IDR frames

level?

X265Level

(Optional) Sets the level flag in the output

noDeblock?

boolean

(Optional) Disables the loop filter. Not Recommended.

pools?

string

(Optional) x265 thread pool configuration. Controls how many worker threads x265 creates for wavefront parallel processing. On many-core systems x265 auto-detects the NUMA topology which can create far more threads than useful. Set to e.g. "16" to cap at 16 pool threads. Defaults to "16".

preset?

X265Preset

(Optional) 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.

profile?

X265Profile

(Optional)

sceneCut?

number

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

threads?

number

(Optional)

tier?

X265Tier

(Optional)

tune?

X265Tune

(Optional) 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.

type

"x265"

vbvBufferSize?

number

(Optional) Sets the size of the VBV buffer in kilobits

vbvMaxRate?

number

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