Skip to main content
Version: 8.6.0

What are the recommended stream settings?

There are many options to encode your streams. These encoding are often related to the content you are streaming. For example, fast motion movies like sporting events might require higher frame rates and more bandwidth compared to video of static landscape webcams.

The video and audio codecs which are recommended are:

  • Video: H.264 in Baseline Profile, Main Profile or High Profile. We advise against the usage of B-frames as this requires the entire chunk to be available before playback can start. It is important to take into account not all platforms will be able to play back the High profile. When setting up encoding profiles, keep in mind the platforms you intend to support.

  • Audio: AAC-LC or HE-AAC. It is however important to use the same codec for all audio tracks. Using the same sampling frequency and bitrate is not required, but deviating from this might result in audible changes between streams. Also, when using HE-AAC it is highly recommended stating this in the stream's CODEC-attribute.

In regard to packaging, both raw-audio files (.aac, .mp3, ...) and MPEG Transport Streams can be used. For video, it is recommended to add a full IDR frame (keyframe) at the start of each video chunk.

The following configurations for adaptive streams have proven to work well on most content. Keep in mind some content can be displayed better when tweaking these parameters:

#ResolutionVideo settingsVideo bitrateFrame rateAudio settingsAudio bitrateAudio sample rate
1480x270Baseline 3.0500k25 fpsHE-AAC128k44.1kHz
2640x360Baseline 3.0900k25 fpsHE-AAC128k44.1kHz
3960x540Baseline 3.11800k25 fpsHE-AAC128k44.1kHz
41280x720Main 3.14500k25 fpsHE-AAC128k44.1kHz
51920x1080High 4.08500k25 fpsHE-AAC128k44.1kHz

For manifest generation, we always advice to add at least the CODECS and RESOLUTION as they will speed up the adaptive bitrate capabilities of the player.

As a reference, Apple also provides a list of recommendations in regard to HLS: TN2224