Audio languages and subtitles
A subtitle is a separate track selected and routed like audio or video. Start with the complete multi-audio/subtitle example and inspect the input's advertised track IDs, codecs, and languages through the API before choosing selectors.
[[transcoders.tracks]]
id = "english-subtitles"
type = "subtitle"
passthrough = true
[transcoders.tracks.track_selector]
type = "track-kind"
kind = "subtitle"
language = "eng"
criteria = "all"
is_required = true
Passthrough retains the input codec; it works only if the sink and player can
carry and render that codec. To convert subtitles, set passthrough = false
and provide subtitle renditions with id and codec (the existing recipe uses
webvtt). Subtitle decoding/encoding support is build- and codec-dependent;
verify the complete input → output → player path, including styling and timing.
A subtitle track can set timestamp_source_track_id to a configured track ID
whose timestamps should be used instead of the subtitle source's timestamps.
Use this only when that timing relationship is intentional and test cue timing
against the corresponding audio/video. See Synchronization.
Language and label decoration belongs to the selector. It changes metadata,
not the subtitle text or spoken language. An is_required = true selector can
prevent startup when a caption track is absent. For optional captions, decide
whether the pipeline should start without them and set the selector accordingly.
Confirm language selection and cue appearance in the destination player. See Track selection for exact-language matching and IDs.