H265Video Class

public final class H265Video
extends Video

Describes all the properties for encoding a video with the H.265 codec.

Constructor Summary

Constructor Description
H265Video()

Creates an instance of H265Video class.

Method Summary

Modifier and Type Method and Description
H265Complexity complexity()

Get the complexity property: Tells the encoder how to choose its encoding settings.

List<H265Layer> layers()

Get the layers property: The collection of output H.265 layers to be produced by the encoder.

Boolean sceneChangeDetection()

Get the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene changes.

void validate()

Validates the instance.

H265Video withComplexity(H265Complexity complexity)

Set the complexity property: Tells the encoder how to choose its encoding settings.

H265Video withKeyFrameInterval(Duration keyFrameInterval)

Set the keyFrameInterval property: The distance between two key frames.

H265Video withLabel(String label)

Set the label property: An optional label for the codec.

H265Video withLayers(List<H265Layer> layers)

Set the layers property: The collection of output H.265 layers to be produced by the encoder.

H265Video withSceneChangeDetection(Boolean sceneChangeDetection)

Set the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene changes.

H265Video withStretchMode(StretchMode stretchMode)

Set the stretchMode property: The resizing mode - how the input video will be resized to fit the desired output resolution(s).

H265Video withSyncMode(VideoSyncMode syncMode)

Set the syncMode property: The Video Sync Mode.

Methods inherited from Codec

Methods inherited from Video

Methods inherited from java.lang.Object

Constructor Details

H265Video

public H265Video()

Creates an instance of H265Video class.

Method Details

complexity

public H265Complexity complexity()

Get the complexity property: Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced.

Returns:

the complexity value.

layers

public List layers()

Get the layers property: The collection of output H.265 layers to be produced by the encoder.

Returns:

the layers value.

sceneChangeDetection

public Boolean sceneChangeDetection()

Get the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video.

Returns:

the sceneChangeDetection value.

validate

public void validate()

Validates the instance.

Overrides:

H265Video.validate()

withComplexity

public H265Video withComplexity(H265Complexity complexity)

Set the complexity property: Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced.

Parameters:

complexity - the complexity value to set.

Returns:

the H265Video object itself.

withKeyFrameInterval

public H265Video withKeyFrameInterval(Duration keyFrameInterval)

Set the keyFrameInterval property: The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting.

Overrides:

H265Video.withKeyFrameInterval(Duration keyFrameInterval)

Parameters:

keyFrameInterval

withLabel

public H265Video withLabel(String label)

Set the label property: An optional label for the codec. The label can be used to control muxing behavior.

Overrides:

H265Video.withLabel(String label)

Parameters:

label

withLayers

public H265Video withLayers(List layers)

Set the layers property: The collection of output H.265 layers to be produced by the encoder.

Parameters:

layers - the layers value to set.

Returns:

the H265Video object itself.

withSceneChangeDetection

public H265Video withSceneChangeDetection(Boolean sceneChangeDetection)

Set the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video.

Parameters:

sceneChangeDetection - the sceneChangeDetection value to set.

Returns:

the H265Video object itself.

withStretchMode

public H265Video withStretchMode(StretchMode stretchMode)

Set the stretchMode property: The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize.

Overrides:

H265Video.withStretchMode(StretchMode stretchMode)

Parameters:

stretchMode

withSyncMode

public H265Video withSyncMode(VideoSyncMode syncMode)

Set the syncMode property: The Video Sync Mode.

Overrides:

H265Video.withSyncMode(VideoSyncMode syncMode)

Parameters:

syncMode

Applies to