Build the optimal encoding ladder to rise above the competition.

How to Build an Encoding Ladder: What You Need to Know

Learning how to build an encoding ladder is one of the most fundamental tasks for a streaming media professional. It’s astounding how much you need to know to get it right.

By way of background, the original encoding ladder used by most professionals was from Apple Tech Note TN2224, long since replaced by Apple’s HLS Authoring Specifications. This H.264-only ladder had defined rungs, resolutions, and bitrates, and was the starting point for a startling array of encoding ladders used around the web. I’ve always loved Beamr’s image that showed TN2224 at the center of the Rosetta Stone for working with encoding ladders.

Apple TN2224 was the Rosetta Stone for learning how to build an encoding ladder.
The original encoding ladder from Apple’s Tech Note TN2224 was the Rosetta Stone for learning how to build an encoding ladder (image courtesy of Beamr).

Since Apple replaced TN2224 back in 2017, learning how to build an encoding ladder has gotten much more complicated, and the discrete bits of knowledge you need to know to get it right have ballooned. Here’s an example; a simple five-rung HEVC live encoding bitrate ladder produced in FFmpeg.

ffmpeg -y -re -i input.mp4 \
-c:v libx265 -preset ultrafast -x265-params keyint=60:min-keyint=60:scenecut=0:bitrate=6000:vbv-maxrate=6000:vbv-buf-size=6000:open-gop=1 out_1080p_6MB_x265.mp4 \
-c:v libx265 -preset ultrafast -x265-params keyint=60:min-keyint=60:scenecut=0:bitrate=4000:vbv-maxrate=4000:vbv-buf-size=4000:open-gop=1 out_1080p_4MB_x265.mp4 \
-c:v libx265 -s 1280x720 -preset ultrafast -x265-params keyint=60:min-keyint=60:scenecut=0:bitrate=2500:vbv-maxrate=2500:vbv-buf-size=2500:open-gop=1 out_720p_2_5MB_x265.mp4 \
-c:v libx265 -s 960x540 -preset ultrafast -x265-params keyint=60:min-keyint=60:scenecut=0:bitrate=1200:vbv-maxrate=1200:vbv-buf-size=1200:open-gop=1 out_540p_1_2MB_x265.mp4 \
-c:v libx265 -s 640x360 -preset ultrafast -x265-params keyint=60:min-keyint=60:scenecut=0:bitrate=800:vbv-maxrate=800:vbv-buf-size=800:open-gop=1 out_360p_800kb_x265.mp4

Below are links to pages discussing all the topics you need to know to get right. Explicit choices are decisions shown in the encoding ladder. Implicit choices are choices made by default in the encoding ladder. Other choices not discussed are issues worth being aware of that may not be reflected in the encoding ladder.

I review the decisions individually on separate pages; pages without links mean the page isn’t complete. Most of these are links to articles I’ve written; over time, I’ll convert them to more concise articles for each subject.

Explicit choices:

Implicit choices:

Other choices not discussed:

I’m sure I missed at least a few decisions; let me know at [email protected].

How to Build an Encoding Ladder: General Resources

Here are some general resources for encoding ladder creators; some are mentioned in the above links, some are not.

Encoding Ladders: What You Need to Know, Wowza Blog, August 2022

Creating the Perfect Encoding Ladder, OTTVerse, April 2022

Which Low-Res Rungs are Essential to an Encoding Ladder, LinkedIn October 2021

How Many Rungs on Your Encoding Ladder? (YouTube Video, 2021)

The Evolving Encoding Ladder: What You Need to Know (Streaming Learning Center, May 2019)

Five Checks on Your Encoding Ladder, Streaming Learning Center, August 2017

About Jan Ozer

Avatar photo
I help companies train new technical hires in streaming media-related positions; I also help companies optimize their codec selections and encoding stacks and evaluate new encoders and codecs. I am a contributing editor to Streaming Media Magazine, writing about codecs and encoding tools. I have written multiple authoritative books on video encoding, including Video Encoding by the Numbers: Eliminate the Guesswork from your Streaming Video (https://amzn.to/3kV6R1j) and Learn to Produce Video with FFmpeg: In Thirty Minutes or Less (https://amzn.to/3ZJih7e). I have multiple courses relating to streaming media production, all available at https://bit.ly/slc_courses. I currently work as www.netint.com as a Senior Director in Marketing.

Check Also

Steve Strong Details Norsk's Suitability for Broadcasters

Norsk for Broadcasters: Interview with id3as’ Steve Strong

Recently, I spoke with Steve Strong, id3as’ co-founder and director, about Norsk’s suitability for broadcasters. …

Five star review for video quality metrics course.

New Five Star Review for Video Quality Metrics Course

The Computing and Using Video Quality Metrics course teaches encoding pro to compute and use video metrics like VMAF, PSNR, and SSIM.

Figure shows the different components to live streaming latency.

The Quality Cost of Low-Latency Transcoding

While low-latency transcoding sounds desirable, low-latency transcode settings can reduce quality and may not noticeably …

Leave a Reply

Your email address will not be published. Required fields are marked *