GlossaryTranscoding

Transcoding

Transcoding is the process of decoding a video that is already compressed and encoding it again with a different codec, resolution, bitrate or frame rate. Streaming platforms transcode almost every upload, because files arrive already compressed, often as one large MP4 or an editing master such as ProRes. Transcoding turns that single file into a bitrate ladder: the same video at several qualities, so the player can choose the version each screen and connection can carry. It is the step between a raw upload and something that streams.

How does video transcoding work?

A transcoder runs in four steps. First it decodes the source back into raw frames, rebuilding every picture in memory. Next it adjusts those frames: scaling to a smaller resolution, changing the frame rate, converting color, or deinterlacing old broadcast footage.

Then it encodes each target output, one per rung of the ladder, for example 1080p, 720p, 480p and 360p, each with its own bitrate. This is where most of the compute goes: the encoder searches every frame for the cheapest way to describe it, once per output. Keyframes, the full pictures a decoder can start from, are placed at the same moments in every rendition so the player can switch cleanly between them. Finally the outputs are cut into segments of a few seconds and packaged as HLS or DASH with a manifest, the index file the player reads to find every version. Tools such as FFmpeg do all four steps on one machine; a cloud service spreads the work across many.

Transcoding vs. encoding vs. transmuxing

Encoding is the first compression of raw video, done by a camera, a screen recorder or an editing export. Transcoding takes video that is already compressed, decodes it, and compresses it again into new outputs. In daily speech the two words are often swapped, and a video API's encoding step is technically transcoding, since uploads never arrive raw.

Transmuxing is lighter. It moves the same compressed video and audio into a different container without touching the picture, for example from an MP4 file into HLS segments, or from an RTMP live feed into CMAF. Nothing is decoded, so transmuxing is fast, cheap and lossless. The catch is that it cannot change resolution or bitrate, so it cannot build a ladder. A platform transcodes when devices need different versions, and transmuxes when only the packaging has to change.

Does transcoding reduce video quality?

Yes, a little. Codecs such as H.264, HEVC and AV1 are lossy: each pass throws away detail the encoder judges the eye will miss. Transcoding is a second pass, so it adds a second round of loss on top of whatever the original export removed.

With a good source and sensible targets the loss is invisible. Trouble comes from three places. A low bitrate upload, such as a phone clip already squeezed by a messaging app, has little detail left, and transcoding it again makes blocking and smearing visible. Chains of transcodes, where a file is downloaded, edited and re-uploaded several times, stack the losses. And upscaling, transcoding a 480p source into a 1080p rendition, adds pixels without adding detail. The fix is to keep the highest quality source available, transcode from it once, and never build rungs above the source resolution.

How long does video transcoding take?

Transcoding time depends on four things: the length and resolution of the source, the number and size of the outputs, the codec, and how much hardware the job can use. A 4K source encoded into six renditions takes far more work than a 1080p file encoded into three.

Codec matters most. H.264 encodes quickly, HEVC takes longer, and AV1 at high-quality settings can take much longer again, which is why some services produce H.264 first and add AV1 later for popular titles. Encoder presets trade speed for efficiency: slower presets search harder and give smaller files at the same quality. Cloud services shorten the wait by splitting a long file into chunks, encoding them in parallel on many machines and joining the results.

For viewers, the number that matters is time to first playback, not time to finish the whole ladder. Just-in-time approaches package or encode on request, so a new upload can start playing while the remaining renditions are still being made.

How does FastPix handle transcoding?

FastPix transcodes behind the On-Demand API, so there are no encoding servers to size. Files arrive through resumable upload SDKs for web, iOS, Android and Flutter, or are pulled straight from S3, GCS, Azure Blob or any HTTPS URL. The open-source FastPix Migration Tool moves existing libraries in bulk from other video platforms or S3, with metadata mapping and status webhooks.

Each source is profiled and given a per-title ladder, with quality checked against VMAF, a perceptual quality score. Output is H.264 and HEVC (H.265) as standard, with AV1 available on request. Standard, Pro and Premium quality tiers run up to 4K, with HDR10, Dolby Vision and HLG output. Encoding is just in time: playback can start before the full encode finishes, and CMAF packaging for HLS and DASH happens when a player asks for it. When an asset is ready, a video.media.ready webhook arrives, signed with HMAC SHA-256 so your server can verify it.

Live streams follow the same path in real time: RTMP, RTMPS or SRT in, an adaptive ladder out as LL-HLS at 4 to 7 seconds glass to glass, recorded automatically as an on-demand asset when the broadcast ends.

Standard encoding is free at every resolution up to 4K and billed once per source minute, not per rendition. Storage is billed per rendition-minute each month, because every rung is kept, and streaming per minute watched. Capping the top resolution at 720p, 1080p, 2K or 4K sets how far the storage line can grow. Live encoding is $0.0324 a minute at any resolution up to 1080p. The free plan transcodes 10 videos with 100,000 streaming minutes a month and no card.

By the numbers