Skip to main content

Design a pipeline

Start with the incoming media and the output your audience or receiver needs. Then choose the smallest set of processing steps that connects them. The task overview explains how those steps become a v3 configuration.

Identify the inputs​

For each input, record its transport or device, video codec, resolution and frame rate, plus the audio tracks, channel counts and languages you need. Identify which inputs must always be present and which supply the program's audio.

For a media file or reachable stream, inspect it before choosing selectors:

bash
ffprobe -v error -show_streams -show_format /path/to/input.mp4

For SDI, identify the device, incoming video mode and embedded audio channels using the SDI setup guide. Once Packager is running, its source API exposes the tracks available to downstream tasks. Use those track IDs and metadata when a source contains several languages or programs.

Define the destinations​

Specify each destination's accepted codecs, resolution, frame rate, bitrate and audio layout. For a streaming endpoint, also establish its URL, credentials and connection role. For HLS recording, decide where the files are stored, how long they remain available, and how viewers will retrieve them.

A protocol and a codec describe different things. SRT carries the stream; H.264 encodes its video. The Packager's SRT examples use sink_type = "mpegts" with an srt:// URL. Changing the URL does not convert the codecs. See Inputs, outputs, and transports.

Choose what needs processing​

RequirementPipeline choice
Incoming encoded tracks already suit the destinationConnect source to sink, or use passthrough tracks to select what is forwarded.
Change video codec, size, bitrate or frame rateAdd a transcoder for video; decide separately whether audio can pass through.
Encode raw SDI video and audioAdd video and audio encoding before a compressed streaming output.
Offer several video quality levelsCreate several renditions from the selected video track.
Mix audio, add graphics or combine camerasCompose the required media, then encode the result for delivery.
Send the same encoded program to several destinationsConnect several sinks to the same transcoder output.

Passthrough avoids re-encoding and preserves the incoming encoded quality. It is appropriate only when the destination and player accept the selected tracks. Encoding is needed for media changes such as scaling, mixing or overlays.

A track is a video, audio or subtitle stream. A rendition is an encoded version of a selected track, such as a 720p video at a particular bitrate. An adaptive bitrate (ABR) ladder offers several video renditions so a compatible player can change quality with network conditions. Confirm that each destination accepts the renditions you send it.

Make audio routing explicit​

Choose one of these arrangements before wiring the graph:

  • Follow the source: forward or encode its matching video and audio.
  • Keep fixed program audio: take audio from one selected input while video comes from another source or a camera switcher.
  • Mix inputs: combine program and commentary, with explicit levels and a chosen timing reference.
  • Offer alternatives: keep languages as separate selectable audio tracks.

Selecting an audio track and selecting channels within that track are separate operations. An eight-channel SDI audio track needs channel mapping to become four stereo language tracks. Track selection, commentary mixing, and SDI language tracks cover these cases.

For independent cameras or audio feeds, check lip sync at the final output. Normalize video dimensions and frame rates before compositing. Use the synchronization guide to distinguish source pacing, buffering and clock settings.

Choose the host and acceleration​

Start with a CPU recipe to verify routing and formats. Choose GPU or ASIC acceleration according to the codecs, resolutions and channel count you need, then confirm that the selected image and host support the whole processing path. Some filters run on the CPU even when encoding uses hardware.

See Installation, Intel QSV, and Performance. Size channel capacity by measuring the intended workload with all outputs active.

Example: SDI to SRT​

For an SDI camera feeding a receiver that accepts H.264 and stereo AAC over SRT:

The source uses the DeckLink device name. The transcoder selects the camera's video and intended audio channels. The sink sends the encoded tracks with an SRT role that complements the receiver's role. Start with the complete SDI-to-SRT recipe, then adjust picture size, encoding rate and audio mapping for the destination.

Validate the result​

Choose the closest complete recipe, preserve its task connections, and change the input and destination settings first. Test with a known signal before adding further processing.

Confirm the selected tracks, task states and increasing output counters. Then inspect the received media: picture, resolution, frame rate, audio content, channel order and lip sync. For API controls, verify the visible or audible result. Finally, test input interruption and recovery using Lifecycle and recovery before deploying the pipeline.