NETINT ladder
Receive SRT, then decode, scale and encode an H.264 and H.265 ladder on a NETINT Quadra card, and publish it to your Vindral Live channel over MoQ. The CPU only encodes the audio.
Prepare the host
The host needs the NETINT drivers, a NETINT-enabled Packager image and the card's devices in the container. See NETINT ASIC and NETINT container setup.
How the card is used
With device = "netint_quadra", the Packager picks the card's decoder and its encoder for
each rendition's codec, so the renditions set no encoder_name. Scaling also runs on the
card. Audio has no card encoder and is encoded on the CPU.
- Older cards: for a T408 or T432, set
device = "netint_t4xx". Scaling then runs on the CPU. - AV1: a Quadra card also encodes AV1. Add a rendition with
codec = "av1". - B-frames: the renditions use none. H.265 uses B-frames only when a rendition sets
max_b_framesabove 0, and 8-bit H.264 never does. See NETINT ASIC for the details.
Run it
Set url and channel_id in the sink to your channel's MoQ publish URL and channel ID, save
the download as config.toml, and start the Packager with your NETINT device mappings. The
source listens for SRT on UDP 9000.
Complete configuration
# Vindral Bridge Packager example
# Decode and encode an H.264 and H.265 ladder on a NETINT Quadra card and publish it to Vindral Live over MoQ.
version = "3"
# Receive the contribution feed. The encoder calls this listener.
[[sources]]
id = "contribution"
source_type = "srt"
protocol_options = { url = "srt://0.0.0.0:9000?mode=listener&latency=120000" }
# With device = "netint_quadra", the Packager picks the card's decoder and
# encoders for each codec and scales on the card. Audio is encoded on the CPU.
[[transcoders]]
id = "encode"
source_ids = ["contribution"]
device = "netint_quadra"
[[transcoders.tracks]]
id = "video"
type = "video"
track_selector = { type = "track-kind", kind = "video", is_required = true }
[[transcoders.tracks.renditions]]
id = "1080p"
codec = "h264"
bit_rate = 4_500_000
gop_size_ms = 1000
size = { width = 1920, height = 1080 }
[[transcoders.tracks.renditions]]
id = "720p"
codec = "h264"
bit_rate = 2_500_000
gop_size_ms = 1000
size = { width = 1280, height = 720 }
[[transcoders.tracks.renditions]]
id = "360p"
codec = "h264"
bit_rate = 600_000
gop_size_ms = 1000
size = { width = 640, height = 360 }
[[transcoders.tracks.renditions]]
id = "hevc-1080p"
codec = "hevc"
bit_rate = 3_000_000
gop_size_ms = 1000
size = { width = 1920, height = 1080 }
[[transcoders.tracks]]
id = "audio"
type = "audio"
track_selector = { type = "track-kind", kind = "audio", is_required = true }
[[transcoders.tracks.renditions]]
id = "aac"
codec = "aac"
sample_rate = 48_000
channels = 2
bit_rate = 128_000
# Publish every rendition to your Vindral Live channel over MoQ.
[[sinks]]
id = "vindral"
sink_type = "moq"
source_ids = ["encode"]
[sinks.protocol_options]
url = "https://lb.cdn.vindral.com/api/edge/moq-publish-url/YOUR_STREAM_KEY"
channel_id = "YOUR_CHANNEL_ID"
transport_mode = "lookup"