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…, levels3.0to6.2); rate controlCBRorVBR.
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
Related
- Hardware acceleration — which codecs each GPU backend can encode.
- Output DRM — encrypt the encoded or passed-through output.