Multi-language audio example
This example reads a file with several unlabelled audio tracks, gives each track a language label and sends it to Vindral Live with multiple audio tracks.
Mount your multi-audio file at /media/YOUR_INPUT_FILE, replace that filename
and the configured track IDs with those from your input, and set
YOUR_VINDRAL_PUBLISH_URL to your channel's publish/lookup URL. Set
YOUR_CHANNEL_ID to the channel identifier supplied with that endpoint.
toml
# Vindral Bridge Packager example
# Label the audio tracks of a file by language and send them to Vindral Live over MoQ.
version = "3"
[[sources]]
id = "input"
source_type = "file"
realtime_pacing = true
interleave_buffer = { max_buffer_size_ms = 1000 }
[sources.protocol_options.url]
type = "string"
value = "/media/YOUR_INPUT_FILE"
[[transcoders]]
id = "encode"
source_ids = ["input"]
[[transcoders.tracks]]
type = "video"
id = "video"
passthrough = true
[transcoders.tracks.track_selector]
type = "track-kind"
kind = "video"
[[transcoders.tracks.renditions]]
id = "720p"
codec = "h264"
gop_size_ms = 1000
bit_rate = 1_500_000
[transcoders.tracks.renditions.size]
width = 1280
[[transcoders.tracks.renditions]]
id = "jpeg-1280"
codec = "mjpeg"
gop_size_ms = 2000
bit_rate = 1280
frame_skipping = "frame_every_5_seconds"
[transcoders.tracks.renditions.size]
width = 1280
[[transcoders.tracks]]
type = "audio"
id = "audio-spa"
[transcoders.tracks.track_selector]
type = "track-id"
id = 0x2
[transcoders.tracks.track_selector.decoration]
language = "spa"
[[transcoders.tracks.renditions]]
id = "opus-spa"
codec = "opus"
bit_rate = 128_000
sample_rate = 48_000
[[transcoders.tracks.renditions]]
id = "aac-spa"
codec = "aac"
bit_rate = 128_000
sample_rate = 48_000
[[transcoders.tracks]]
type = "audio"
id = "audio-eng"
[transcoders.tracks.track_selector]
type = "track-id"
id = 0x3
[transcoders.tracks.track_selector.decoration]
language = "eng"
[[transcoders.tracks.renditions]]
id = "opus-eng"
codec = "opus"
bit_rate = 128_000
sample_rate = 48_000
[[transcoders.tracks.renditions]]
id = "aac-eng"
codec = "aac"
bit_rate = 128_000
sample_rate = 48_000
[[sinks]]
id = "moq"
sink_type = "moq"
source_ids = ["encode"]
[sinks.protocol_options.url]
type = "string"
value = "YOUR_VINDRAL_PUBLISH_URL"
[sinks.protocol_options.channel_id]
type = "string"
value = "YOUR_CHANNEL_ID"