Captions
¶
Source code in docs_src/capo_elastic_transcoder/types/captions.py
caption_formats
instance-attribute
¶
caption_formats: NotRequired[CaptionFormats]
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
caption_sources
instance-attribute
¶
caption_sources: NotRequired[CaptionSources]
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources blank.
merge_policy
instance-attribute
¶
merge_policy: NotRequired[CaptionMergePolicy]
A policy that determines how Elastic Transcoder handles the existence of multiple captions.
-
MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.
-
MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
CaptionSourcesis empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources.
MergePolicy cannot be null.