Encoding for Adaptive Streaming – an Overview

I’ve been researching how to encode video for adaptive bitrate streaming, specifically the encoding parameters for the different files streamed in the process. Here’s what I found for Adobe’s Dynamic Streaming, Apple’s HTTP Live Streaming and Microsoft’s Smooth Streaming.

Adobe’s Dynamic Streaming

For Dynamic Streaming, I found an excellent article by Larry Bouthillier on the StreamingMedia web site. Entitled How to do Dynamic Streaming with Flash Media Server, the article covers how to encode multiple files (with a link back to Adobe’s recommended encoding settings), tests the streaming switching capabilities of three different Flash Players and provides the necessary code for dynamic streaming in each player. Regarding the encoding side, Larry conluded that:

Here are the parameters that Larry tested with, using a key frame interval of two seconds for all files:

adaptive 1.png

Here’s what he found:

The three most crucial success factors turned out to be:  

  1. the keyframe interval of your encodings,
  2. the bufferlength configuration of your player, and
  3. the bitrate spacing and quantity of your media files.

I’ll let you jump back over to his article for more detail on Larry’s conclusions. 

HTTP Live Streaming

For Apple’s HTTP Live Streaming,you can refer to Apple’s own white paper on the subject.

What settings are recommended for a typical HTTP stream, with alternates, for use with the media segmenter from Apple?

Your encoder should produce MPEG-2 transport stream (.ts) files with the following characteristics for the Apple segmenter:

  • H.264 Baseline 3.0 video

  • Keyframes every 3 seconds

  • HE-AAC (version 1) stereo audio at 44.1 kHz

  • Four streams:

    • Cellular Fallback—Audio only or audio with still image, 64 Kbps

    • Low—96 Kbps video, 64 Kbps audio

    • Medium—256 Kbps video, 64 Kbps audio

    • High—800 Kbps video, 64 Kbps audio

I wrote an article on streaming to the iPhone for Digital Content Producer, and Turner Broadcasting was kind enough to share the encoding parameters that they used for the PGA Championship. Here they are:

adaptive 3.png

Microsoft’s Smooth Streaming

For Smooth Streaming, the best reference I could find was Ben Waggoner’s post here. Here are the parameters that Ben recommended encoding to:

adaptive 2.png

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

Take the Bitmovin Video Developer Survey

Contribute to the one of the most valuable sources of industry data by completing the …

Speech-to-text In Premiere Pro – Fast, Easy, Accurate, and Free

This video tutorial teaches you how to convert speech-to-text in Premiere Pro. I’ve been using …

Streaming Media 101: Training for App & Player Development/Testing Professionals

Leave a Reply

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