Forced_keyframes
Name | Type | Description |
---|---|---|
kind | enum i idr | The type of keyframes to be created - i or idr. |
frames | array | An array of frame numbers to use for the keyframe insertion. |
times_sec | array | An array of locations in seconds to use for the keyframe insertion. |
timecodes | array | An array of timecode values to use for the keyframe insertion. |
Example forced_keyframes
{
"uid": "transcode_media",
"kind": "transcode",
"payload": {
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_folder"
},
"targets": [
{
"file_pattern": "{source_basename}_converted.mp4",
"existing_files": "replace",
"container": {
"kind": "mp4"
},
"video": {
"codec": "h264",
"width": 1920,
"height": 1080,
"bitrate_kb": 6000,
"max_bitrate_kb": 8000,
"bitrate_mode": "vbr",
"forced_keyframes": {
"frames": [
1000,
10000,
30000
]
}
},
"audio": [
{
"codec": "heaac_v2",
"channels": 2,
"sample_rate": 44100
}
]
}
]
}
}