media server logo

Codec

Mar 06, 2026

Codec selection controls compatibility, quality, latency, and cost. This guide helps teams choose practical codec policies for live and VOD pipelines without unstable profile drift. For this workflow, Ingest & route is the most direct fit.

Production decision model

  1. Define playback targets: browser, mobile, TV, and embedded players.
  2. Set one default codec profile for broad compatibility.
  3. Add optional high-efficiency profile only when infra supports it.
  4. Lock keyframe, bitrate, and resolution ladders in versioned presets.
  5. Measure decode failures and startup delay after every release.

Practical defaults

  • H.264 baseline profile for compatibility-first channels.
  • AV1 or HEVC for selective efficiency-focused use cases.
  • AAC for stable audio playback across major clients.

Product mapping: Player and embed, Video platform API, 24/7 streaming channels.

Related guides: bitrate, AV1, transcoding.

Trade-offs to manage

  • Higher compression can increase CPU load and transcode time.
  • Low-latency goals may conflict with aggressive compression presets.
  • Mixed codec stacks increase operational complexity.

Validation checklist

  1. Test startup time by device class.
  2. Check ABR switching stability under packet loss.
  3. Audit transcoder capacity during peak events.
  4. Track quality regressions after preset updates.

Next step

Continue with video resolution planning, HLS player deployment, and Video platform API.