Search Documentation
Search across all documentation pages
Encoding Options

Encoding Options

Reference for all encoding parameters used in Presets and Jobs.


Video codecs

Transcodely supports four video codecs. Each codec trades off compression efficiency, encoding speed, and device compatibility differently.

CodecEnum valueEncoderCompression vs H.264Encoding speedHardware decodeHDRLicensing
H.264h264libx264BaselineFastUniversalNoPatent pools (MPEG LA)
H.265h265libx265~40% betterModerateWidespreadYesPatent pools (MPEG LA)
VP9vp9libvpx-vp9~30% betterSlowChrome, Android, modern GPUsYesRoyalty-free
AV1av1libsvtav1~50% betterModerate (SVT-AV1)Growing (2022+ devices)YesRoyalty-free

H.264 is the safe default for maximum device support. H.265 is best for 4K content and the Apple ecosystem. VP9 is royalty-free and works well in WebM for web delivery. AV1 offers the best compression but is limited to modern playback environments.

Codec-specific options

Each codec has its own options object (h264, h265, vp9, av1) that you pass on a video variant to override quality-tier defaults. See the Presets API reference for the full VideoSettings schema.

ParameterH.264H.265VP9AV1
CRF range15-3518-3515-5020-55
Profilesbaseline / main / highmain / main10 / main-still-picture0-3 (numeric)main
Speed parampreset: ultrafast-slowerpreset: ultrafast-slowerspeed: 0-8preset: 3-12 (numeric)
Tunefilm / animation / grain / stillimage / fastdecodegrain / fastdecodeN/A0 (VQ) / 1 (PSNR)
Max bitrate240,000 kbps240,000 kbps150,000 kbps100,000 kbps
10-bitLimited (High10 profile)Yes (Main10)Yes (Profile 2)Yes

Default encoder settings by quality tier

CodecEconomyStandardPremium
PresetCRFPresetCRFPresetCRF
H.264veryfast26medium23slow20
H.265veryfast32medium26slow22
VP9speed 850speed 640speed 430
AV1preset 1045preset 635preset 428

Container support (video)

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

Audio codecs

PropertyAACOpusMP3
Enum valueaacopusmp3
Sweet spot bitrate128-192 kbps64-128 kbps192-256 kbps
Min / Max bitrate32-512 kbps6-510 kbps32-320 kbps
ChannelsUp to 7.1Up to 7.1Stereo only
LicensingPatent poolsRoyalty-freePatents expired

AAC is the default for MP4/MOV/TS containers with universal playback support. Opus is required for WebM and delivers the best quality at low bitrates. MP3 is supported for legacy compatibility only.

Container support (audio)

ContainerAACOpusMP3
MP4YesNoYes
WebMNoYesNo
MKVYesYesYes
MOVYesNoYes
TSYesNoYes

Containers

ContainerAPI valueExtensionVideo codecsAudio codecsUse case
MP4mp4.mp4H.264, H.265, AV1AAC, MP3General delivery, progressive download
WebMwebm.webmVP9, AV1OpusWeb-optimized, open-source workflows
MKVmkv.mkvAllAllArchival, maximum flexibility
MOVmov.movH.264, H.265AAC, MP3Apple ecosystem, professional editing
TSts.tsH.264, H.265AAC, MP3Broadcast, legacy streaming

MP4 is the safest choice for web. WebM is best for VP9/AV1 web delivery. MKV is the only container that accepts every codec. The API validates codec-container combinations and rejects invalid pairings.


Resolutions

Preset resolutions

PresetAPI valueDimensionsPixel count
SD480p854 x 480~410K
HD720p1280 x 720~922K
Full HD1080p1920 x 1080~2.07M
QHD1440p2560 x 1440~3.69M
4K UHD2160p3840 x 2160~8.29M
8K UHD4320p7680 x 4320~33.2M

Preset resolutions preserve the source aspect ratio. If the input is 4:3, a 1080p preset produces 1440x1080.

Custom dimensions

Specify width and height directly for non-standard resolutions. Allowed range: 128-7680 px wide, 128-4320 px tall.

Custom dimensions are mapped to the nearest resolution tier by pixel count for pricing purposes.

Pricing multipliers by resolution

ResolutionPixelsMultiplier
480p~410K0.5x
720p~922K0.75x
1080p~2.07M1.0x
1440p~3.69M1.5x
2160p~8.29M2.5x
4320p~33.2M5.0x

Quality tiers

TierAPI valuePrice multiplierVMAF targetEncoding speed
Economyeconomy0.75x85-90Fast
Standardstandard1.0x93-95Moderate
Premiumpremium2.0x97-99Slow

Economy uses fast encoder presets and higher CRF values. Best for previews, thumbnails, and high-volume batch processing. Standard is the default, balancing quality, speed, and cost for most production content. Premium maximizes visual quality with slower presets and lower CRF. Best for broadcast, archival, and flagship content.

You can override individual encoder parameters (CRF, preset) while keeping a lower-tier pricing multiplier. See Pricing for the full cost formula.


Streaming formats

Transcodely packages transcoded video into adaptive streaming formats with multi-resolution ABR ladders.

TypeAPI valueOutputUse case
HLShls.m3u8 playlists + segmentsApple devices, Safari, most web players
DASHdash.mpd manifest + segmentsAndroid, Chrome, cross-platform
Adaptive (CMAF)adaptiveBoth HLS + DASH from shared segmentsMaximum compatibility, minimal storage

Segment configuration

ParameterRangeDefaultDescription
duration1-30 seconds6Segment duration (Apple recommends 6s)
gop_alignmentaligned / fixedalignedKeyframe alignment with segment boundaries
gop_size1-10 secondsN/AFixed GOP size (only with fixed alignment)

HLS supports both fMP4 (.m4s, recommended) and legacy TS (.ts, H.264 only) segment formats. DASH always uses fMP4. Multi-codec ABR ladders (e.g. H.264 + H.265 in one output) require fMP4 segments.

For detailed streaming examples including multi-audio tracks, CMAF configuration, and production ABR ladders, see the Adaptive Streaming guide.