Skip to main content

Webvtt_options

NameTypeDescription
cue_numberingbooleanFlag to turn on cue numbering in the WebVTT output.
cue_positioningbooleanFlag to turn on cue positioning in the WebVTT output.

Example webvtt_options

{
"uid": "transcode_task",
"kind": "transcode",
"payload": {
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_folder"
},
"targets": [
{
"file_pattern": "{source_basename}_converted{default_extension}",
"existing_files": "replace",
"container": {
"kind": "mp4"
},
"video": {
"width": 1280,
"height": 720,
"codec": "h264"
},
"audio": [
{
"codec": "aac",
"channels": 2,
"sample_rate": 48000,
"sample_size": 16,
"bitrate_kb": 96
}
],
"subtitle": [
{
"source_map": "use_if_exists",
"format": "webvtt",
"language": "en",
"webvtt_options": {
"cue_numbering": true
}
}
]
}
]
}
}