Codecs and passthrough Print

  • codecs, h264, hevc, h265, aac audio, passthrough, stream copy, re-encode
  • 0

Medusa Panel › Stream › Add Stream

A codec decides how each rendition is compressed. Medusa encodes video as H.264, HEVC or MPEG-2 (on the CPU or the GPU) and audio as AAC, AC3, MP2 or MP3 — or passes a track through untouched.

Video codecs

  • copy — pass the video through with no re-encode (restream).
  • CPU — mpeg2video (H.262), libx264 (H.264), libx265 (HEVC).
  • GPU — h264_qsv / hevc_qsv (Intel), h264_nvenc / hevc_nvenc / av1_nvenc (NVIDIA), h264_vaapi / hevc_vaapi (AMD). See Hardware acceleration.
  • Profile and Level by codec (baseline / main / high / main10 …, levels 3.0 to 6.2); rate control CBR or VBR.

Colour and HDR

Set colour range (TV / PC), colourspace (BT.709, BT.2020), primaries and transfer — including PQ (SMPTE 2084) and HLG (ARIB STD-B67) for HDR.

Audio

Encode as AAC (native or libfdk_aac), AC3, MP2 or MP3, or copy. Channels 1, 2 or 5.1; sample rate 8000 to 96000 — keep the source rate where possible so the engine does not resample needlessly.

Subtitles

copy to restream DVB subtitles, or overlay to burn them in (DVB, TTML or WebVTT).

Passthrough

When a source is already in a shape your viewers can play, copy it — no GPU or CPU cost, and no quality loss.

# copy video, re-encode only the audio
video  copy
audio  aac
Passthrough and a bitrate ladder are mutually exclusive on the same track: a ladder needs re-encoding to build each rung. See Bitrate ladders.
Any filter or overlay forces a re-encode, so passthrough turns off for that stream — see Filters and overlays.

Related


Was this answer helpful?

« Back