Search Documentation
Search across all documentation pages
Codecs

Codecs

Transcodely supports four video codecs and three audio codecs. Each codec has different strengths in compression efficiency, encoding speed, and device compatibility.

Video Codecs

PropertyH.264H.265VP9AV1
API valueh264h265vp9av1
Encoderlibx264libx265libvpx-vp9libsvtav1
StandardITU-T / ISOITU-T / ISOGoogle / IETFAlliance for Open Media
LicensingPatent pools (MPEG LA)Patent pools (MPEG LA)Royalty-freeRoyalty-free
Compression vs H.264Baseline~40% better~30% better~50% better
Encoding speedFastModerateSlowModerate (SVT-AV1)
Hardware decodeUniversalWidespreadChrome, Android, modern GPUsGrowing (2022+ devices)
Max resolution8K (with level 6.2)8K (with level 6.2)8K8K
10-bit supportLimited (High10 profile)Yes (Main10)Yes (Profile 2)Yes
HDR supportNoYesYesYes

Video Codec Enum Values

When specifying a codec in the API, use the lowercase string value:

{
  "video": [
    {
      "codec": "h264",
      "resolution": "1080p",
      "quality": "standard"
    }
  ]
}

Valid values: h264, h265, vp9, av1

Audio Codecs

PropertyAACOpusMP3
API valueaacopusmp3
StandardISO/IECIETF RFC 6716ISO/IEC
LicensingPatent poolsRoyalty-freePatents expired
Best quality at128-256 kbps64-128 kbps192-320 kbps
LatencyLowVery lowModerate
Container supportMP4, MKV, MOV, TSWebM, MKVMP4, MKV, MOV, TS
Surround soundYes (up to 7.1)Yes (up to 7.1)No (stereo only)

Audio Codec Selection

  • AAC is the default for MP4 containers. It has universal playback support and good quality at moderate bitrates.
  • Opus is required for WebM containers and delivers the best quality at low bitrates. Ideal for bandwidth-constrained delivery.
  • MP3 is supported for legacy compatibility but is not recommended for new content. AAC provides better quality at the same bitrate.

Container Compatibility

Not every codec works with every container format. The API validates these combinations and rejects invalid pairings:

Video codecs:

ContainerH.264H.265VP9AV1
MP4YesYesNoYes
WebMNoNoYesYes
MKVYesYesYesYes
MOVYesYesNoNo
TSYesYesNoNo

Audio codecs:

ContainerAACOpusMP3
MP4YesNoYes
WebMNoYesNo
MKVYesYesYes
MOVYesNoYes
TSYesNoYes

Streaming Format Codecs

For HLS and DASH streaming outputs, codecs are specified per video variant:

{
  "type": "hls",
  "video": [
    {"codec": "h264", "resolution": "1080p", "quality": "standard"},
    {"codec": "h264", "resolution": "720p", "quality": "standard"},
    {"codec": "h264", "resolution": "480p", "quality": "economy"}
  ]
}

Multi-codec ABR ladders are supported — you can mix H.264 and H.265 in the same output if the segment format supports it (fMP4/CMAF).

Codec-Specific Documentation

Each codec has its own page with detailed parameter reference:

  • H.264 — The universal standard
  • H.265 — High-efficiency successor to H.264
  • VP9 — Google’s royalty-free codec
  • AV1 — Next-generation open codec