Encoding Recommendations for Player V4

Encoding is the process of converting a video stream into several formats optimized for various playback devices. During a video's encoding process, the video bitrate, content width, audio bitrate, and delivery method must be specified.

Different devices impose different restrictions on the type of video streams they can play, so each video must be encoded (converted) into a stream optimized for each target device. The challenge of streaming video is to find the right balance between bitrate (number of bits in one second of video) and resolution (number of pixels in one second of video) for each viewer's connection speed and playback device.

Processing Profiles

A processing profile is a set of encoding specifications, each of which is optimized for a specific target. Ooyala uses these templates as a baseline for determining your optimal encoding profile. Ooyala provides a set of recommended processing profiles that include the recommended values to use when you are encoding your videos.

This topic gives recommendations for setting up VOD and Live versions of a Baseline processing profile. If you need additional levels of encoding, consult with your Ooyala representative.

For Player V4, Ooyala has defined the following processing profiles, with recommendations for low motion vs. high motion videos. Besides low and high motion, Player V4 also supports two aspect ratios, 16:9 and 4:3.

Note: Before choosing a processing profile, consider whether your video is low or high motion. For example, sports streaming involves high motion, while a newscast has low motion. If you have higher vs. lower fps, you can adjust the video bitrate accordingly. All of Ooyala's recommendations are based on 30 fps for both low motion and high motion.

Baseline - VOD

Table 1. Baseline Recommendations for VOD Encoding Profile
Resolution H.264 Profile Segment Length

(Sec.)

Video

Bit Rate

Audio

Bit Rate (AAC)

HLS MP4
480 Baseline 4 - 6 s 450 Kbps 64 Kbps x x
640 Baseline 4 - 6 s 700 Kbps 64 Kbps x  
768 Baseline 4 - 6 s 900 Kbps 64 Kbps x  
960 Main 4 - 6 s 1.3 Mbps 128 Kbps x  
1280 Main 4 - 6 s 2 Mbps 128 Kbps x  
1920 Main 4 - 6 s 3.5 Mbps 256 Kbps x  

Baseline - Live

  • Audio Codec: AAC LC
  • Video Codec: H.264, 2 second GOP, Progressive
  • Segmented Media Configuration:
    • 2,4,6,10 second TS segment for HLS (4s typically preferred)
    • 2,4 second MP4 fragment for Smooth
Table 2. Baseline Recommendations for Live Encoding Profile
Resolution H.264 Profile Segment Length

(Sec.)

Video

Bit Rate

Audio

Bit Rate (AAC)

HLS
416 Baseline 4 - 6 s 145 Kbps 32 Kbps x
480 Baseline 4 - 6 s 400 Kbps 64 Kbps x
640 Baseline 4 - 6 s 700 Kbps 64 Kbps x
768 Main 4 - 6 s 1.1 Mbps 64 Kbps x
960 Main 4 - 6 s 2.0 Mbps 96 Kbps x
1280 Main 4 - 6 s 3.0 Mbps 128 Kbps x
1920 Main 4 - 6 s 5.0 Mbps 128 Kbps x

Low and High Motion Videos

Before choosing a processing profile, consider whether your video is low or high motion. For example, sports streaming involves high motion, while a newscast has low motion. Depending on whether you have higher or lower fps, you can adjust the video bitrate accordingly. All of Ooyala's recommendations are based on 30 fps for both low motion and high motion.

VR 360 Videos

Currently, only clear HLS and DASH streams are supported with VR 360. By default, Ooyala provides a single-bitrate processing profile for any videos identified on upload as VR 360. This profile creates at minimum an ~8 Mbps HLS and/or DASH stream with a 4K resolution of 3840p. Ooyala ingestion maintains the source aspect ratio and calculates height dynamically, while the source frame rate is also retained from the source file.

Note: VR 360 assets should typically be set as a 2:1 aspect ratio. This is different than the typical aspect ratios used for flat video.

The provided profile includes the following settings:

  • Segment Duration Seconds: 4-6
  • Video Width: 3840
  • Profile: main
  • Video Bitrate: 10000
  • Audio Bitrate: 128
  • Audio Sample rate: 48000

If you want a different encoding setup for your VR 360 files, please contact Ooyala Technical Support to set up a custom encoding profile for your VR 360 videos.

For more information about VR 360, see VR 360 Videos.

Supported Devices for Processing Profiles

The Ooyala recommended processing profiles support all popular devices, but are not optimized for high-resolution delivery. If you create native iOS apps that deliver video, you will need to add an audio-only encoding specification to your encoding profile. Both the Basic Profile and Extended Profile work for all supported Player V4 browser and OS versions:

  • Android 4.4+
  • iOS 9+
  • Mac OS X 10.5 or greater with Intel Processors of 1GHz or better. No PowerPC support.
  • Windows 7, 8, and 10 with all available updates. Windows 7 with Internet Explorer 11 does not support all HTML5 video standards and therefore has some limitations on supported encoding formats.
  • All connected devices that support either HLS or progressive download. For more information, see Content Protection Options By Device.

Notes on Encoding Issues

Changing a Processing Profile

See your Ooyala Customer Support Manager to change a processing profile. Changes to a processing profile are not retroactive, so only videos uploaded after the change to the processing profile will be encoded using the new processing profile. Older videos would have to be re-encoded using the new processing profile.

Segment Length for ABR

The recommended segment length for adaptive bitrate (ABR) is two to four seconds.

International Considerations

The profile recommendations in this topic are based on average bandwidth, latency, and CPU in the United States. Depending on the geographic region to which you are delivering videos, you might want to discuss adjustments with your Customer Success Manager or Technical Support.

More Information

  • For more information about which video plugins to use with each stream type, see Supported Streams for Player V4.
  • For information on caluculating bitrate, see the Ooyala Community Knowledge Base at http://community.ooyala.com/t5/Developers-Knowledge-Base/Understanding-Bitrate-Resolution-and-Quality/ta-p/1740.
  • For more information on the specification that defines processing profiles, see https://www.itu.int/rec/T-REC-H.264.
https://help.ooyala.com/sites/all/libraries/dita/en/video-platform/concepts/encodings_recommendations_ratios.html

Was this article helpful?