VTT Track Language
video-vtt-lang
Beta Feature
Specifies the language of the subtitle track to return when requesting a sidecar VTT file.
video-vtt-lang requests a subtitle sidecar in the specified language. If the video does not natively contain that language’s track, Imgix automatically runs AI transcription and translation on the fly to generate it — no prior video-subtitle-translations request is needed.
When using fm=vtt alongside video-subtitle-translations, video-vtt-lang selects which pre-translated language track to return. Each language requires a separate VTT request.
video-vtt-lang accepts a valid ISO 639-1 or ISO 639-2 language code.
https://assets.imgix.net/video.mp4?fm=vtt&video-generate-subtitles=true&video-vtt-lang=jaThe example above returns a Japanese-language VTT file, suitable for use as a <track> element in a <video> player.
When using HLS or DASH delivery (fm=hls or fm=dash), all translated language tracks are embedded directly in the manifest — video-vtt-lang is not required in that case. See video-subtitle-translations for details.