TransformOutputCustomPresetCodecPngImageArgs

data class TransformOutputCustomPresetCodecPngImageArgs(val keyFrameInterval: Output<String>? = null, val label: Output<String>? = null, val layers: Output<List<TransformOutputCustomPresetCodecPngImageLayerArgs>>? = null, val range: Output<String>? = null, val start: Output<String>, val step: Output<String>? = null, val stretchMode: Output<String>? = null, val syncMode: Output<String>? = null) : ConvertibleToJava<TransformOutputCustomPresetCodecPngImageArgs>

Constructors

constructor(keyFrameInterval: Output<String>? = null, label: Output<String>? = null, layers: Output<List<TransformOutputCustomPresetCodecPngImageLayerArgs>>? = null, range: Output<String>? = null, start: Output<String>, step: Output<String>? = null, stretchMode: Output<String>? = null, syncMode: Output<String>? = null)

Properties

Link copied to clipboard
val keyFrameInterval: Output<String>? = null

The distance between two key frames. The value should be non-zero in the range 0.5 to 20 seconds, specified in ISO 8601 format. Note that this setting is ignored if sync_mode is set to Passthrough, where the KeyFrameInterval value will follow the input source setting. Defaults to PT2S.

Link copied to clipboard
val label: Output<String>? = null

Specifies the label for the codec. The label can be used to control muxing behavior.

Link copied to clipboard

One or more layer blocks as defined below.

Link copied to clipboard
val range: Output<String>? = null

The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream.

Link copied to clipboard
val start: Output<String>

The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for step and range.

Link copied to clipboard
val step: Output<String>? = null

The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time.

Link copied to clipboard
val stretchMode: Output<String>? = null

The resizing mode, which indicates how the input video will be resized to fit the desired output resolution(s). Possible values are AutoFit, AutoSize or None. Default to AutoSize.

Link copied to clipboard
val syncMode: Output<String>? = null

Specifies the synchronization mode for the video. Possible values are Auto, Cfr, Passthrough or Vfr. Default to Auto.

Functions

Link copied to clipboard
open override fun toJava(): TransformOutputCustomPresetCodecPngImageArgs