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.

Identity and licensing:

CodecEnum valueEncoderLicensing
H.264h264libx264Patent pools (MPEG LA)
H.265h265libx265Patent pools (MPEG LA)
VP9vp9libvpx-vp9Royalty-free
AV1av1libsvtav1Royalty-free

Compression and playback:

CodecCompression vs H.264Encoding speedHardware decodeHDR
H.264BaselineFastUniversalNo
H.265~40% betterModerateWidespreadYes
VP9~30% betterSlowChrome, Android, modern GPUsYes
AV1~50% betterModerate (SVT-AV1)Growing (2022+ devices)Yes

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 set on a video variant in a job’s output spec to override quality-tier defaults. See the Jobs API reference for the full VideoVariant schema. (Presets use the flat VideoSettings fields instead — crf, profile, encoder_preset, tune, keyint, and so on — not these nested per-codec objects.)

OptionH.264H.265VP9AV1
CRF range15-3518-3515-5020-55
Profilesbaseline / main / highmain / main100-3 (numeric)N/A
Speed parampreset: ultrafast-slowerpreset: ultrafast-slowerspeed: 0-8preset: 3-12 (numeric)
Tunefilm / animation / grain / stillimage / fastdecodegrain / fastdecodequality: good / best / realtime0 (VQ) / 1 (PSNR)
Max bitrate240,000 kbps240,000 kbps150,000 kbps100,000 kbps
10-bitNoYes (Main10)Yes (Profile 2)Yes

Default encoder settings by quality tier

Each cell lists the encoder preset and its CRF for that quality tier.

CodecEconomyStandardPremium
H.264veryfast, CRF 26medium, CRF 23slow, CRF 20
H.265veryfast, CRF 32medium, CRF 26slow, CRF 22
VP9speed 8, CRF 50speed 6, CRF 40speed 4, CRF 30
AV1preset 10, CRF 45preset 6, CRF 35preset 4, CRF 28

Container support (video)

ContainerH.264H.265VP9AV1
MP4YesYesNoYes
WebMNoNoYesYes
MKVYesYesYesYes
MOVYesYesNoPresets only
TSYesYesNoNo

AV1 in MOV is accepted only when the container is set through a Preset’s container field. A Job’s inline mov output (OutputSpec.type) is restricted to H.264 and H.265.


Audio codecs

PropertyAACOpusMP3
Enum valueaacopusmp3
Sweet spot bitrate128-192 kbps64-128 kbps192-256 kbps
Min / Max bitrate32-512 kbps32-512 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
MP4YesYesYes
WebMNoYesNo
MKVYesYesYes
MOVYesYesYes
TSYesNoYes

Containers

Identifiers and use case:

ContainerAPI valueExtensionUse case
MP4mp4.mp4General delivery, progressive download
WebMwebm.webmWeb-optimized, open-source workflows
MKVmkv.mkvArchival, maximum flexibility
MOVmov.movApple ecosystem, professional editing
TSts.tsBroadcast, legacy streaming

Codec support:

ContainerVideo codecsAudio codecs
MP4H.264, H.265, AV1AAC, Opus, MP3
WebMVP9, AV1Opus
MKVAllAll
MOVH.264, H.265, AV1 (Presets only)AAC, Opus, MP3
TSH.264, H.265AAC, MP3

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.

TS is only selectable through a Preset’s container field. A Job’s inline output type (OutputSpec.type) does not accept ts — its allowed values are mp4, webm, mkv, mov, hls, dash, and adaptive. To emit a .ts output, reference a Preset whose container is ts.


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.69M2.0x
2160p~8.29M4.0x
4320p~33.2M8.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

OptionRangeDefaultDescription
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.