Subtitle
Name | Type | Description |
---|---|---|
include_if_source_has | array | This array allows for conditionally outputting tracks based on whether or not a specific input tracks exists. The tracks in the source are referred to by number reference: subtitle[0] refers to the first subtitle track. |
include_conditions | array | Specifies conditions under which this subtitle will be used. Can use Javascript math.js nomenclature |
verify | boolean | Enable or disable post transcode verification for this track. default: true |
source_map | enum use_if_exists source_or_empty required_in_source | This specifies the behavior to use when creating a subtitle track. Selecting source_or_empty will use the source's subtitle data or create an empty track if this data does not exist. default: required_in_source |
format | enum webvtt srt stl ass ttml imsc1 dvbsub scc timed_text | The subtitle format to use. |
pid | integer | The video program ID - only used for MPEG transport streams. maximum: 8190 |
language | string | The ISO 639.2 three letter code for the language of the subtitle. |
override_language_code | string | Override default language code (sush as ttml). |
track_group_id | string | This indicates which Group this track belongs to. Multiple tracks with the same content but different bitrates would have the same track_group_id. |
layer_id | string | This indicates which Layer this tracks belongs to. For example, this allows bundling one video layer and multiple audio layers with same bitrates but different languages. |
layer_affinities | array | This indicates which other layers this layer can be combined with. For example, to combine audio and video layers. |
match_source_language | boolean | If true, sets the output subtitle track language to be the same as the language of the subtitle track in the source. |
closed_captions | object | A closed-caption extracted data to be included in the output. |
dvb_options | object | The options for European Digital Video Broadcasting (DVB) subtitles. |
webvtt_options | object | Options for the WebVTT output. |
scc_options | object | Options for the SCC output. |
mainconcept_stream_mux_options | string | Provide direct stream instruction to the MainConcept multiplexer. Values are constructed as "prop=val,prop=val". See MainConcept documentation for valid values. |
profile | object | Options for profile, specific only for subtitles. |
frame_rate | number string | Frame rate for output subtitles, overwrites values from source video. |
Example subtitle
{
"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": "scc",
"language": "en"
}
]
}
]
}
}