Skip to main content

Segmented_rendering

NameTypeDescription
duration_secnumberDuration (in seconds) of a segment in segment encode mode.
minimum: 1
pts_zero_basebooleanSetting this to true will reset PTS stamps in the stream to a zero-based start.
scene_changes_search_duration_secnumberDuration (in seconds) to look for a dominant previous or following scene change. Note that the segment duration can then be up to duration_sec + scene_changes_search_duration_sec long.
generate_extended_reportbooleanSetting this to true will produce extended report and commit to extended JSON.
strict_cfrbooleanCombiner will merge and re-stripe transport streams
mux_offset_otbintegerTimebase offset to be used by the muxer.
min_preroll_secnumberMinimum preroll (in seconds) of a segment in segment encode mode.
min_postroll_secnumberMinimum postroll (in seconds) of a segment in segment encode mode.
combiner_task_tagsarray
A list of task tags for combiner task in case of segmented rendering. Tags are custom strings that are used to match tasks to specific computing groups.

Example segmented_rendering

{
"uid": "transcode_task",
"kind": "transcode",
"payload": {
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_folder"
},
"source_pipeline": {
"segmented_rendering": {
"duration_sec": 180
}
},
"targets": [
{
"file_pattern": "{source_basename}_output.mp4",
"existing_files": "replace",
"container": {
"kind": "mp4"
},
"video": {
"width": 1280,
"height": 720,
"codec": "h264"
},
"audio": [
{
"codec": "aac",
"channels": 2,
"bitrate_kb": 128
}
]
}
]
}
}