We put together the following with two kinds of people in mind, namely people new to the team who hear about bitrate ladders for the first time, and longer-serving colleagues who need a quick reminder.
What it is
An encoding ladder is encoding the same video more than once, every rendition at a different quality and resolution, so the player is able to choose the best one the network can carry at any moment.
Under the surface
A long video can need longer than its own running time to encode at high-quality presets, so uploads need a progress bar. Viewers tolerate somewhat soft video much more easily than jumpy volume changes, so the audio track deserves its own loudness pass.
sh
# one rendition: 1080p
ffmpeg -i raw.mkv -c:v libx264 -preset slow -crf 23 \
-g 50 -vf scale=-2:1080 -c:a aac -b:a 160k out_1080.mp4
ls -lh out_1080.mp4
Day to day
A keyframe every few seconds keeps seeking fast while not costing too much space.