Encoding settings determine how the Ooyala Transcoding Service (OTS) encodes streams created during the transcoding process.
Content Width and Height
The width and height specify the size of the video (in pixels). The OTS maintains the aspect ratio of the source video using the width and scaling the height accordingly.
If a device (such as a phone or tablet) cannot support the width of a video, it does not play. Additionally, phones and tablets are often connected to the Internet through lower bandwidth connections. As a result, you must make sure your lower bit rate encodings have a smaller width. For example, an encoding with a width of 1280 and a 300kbps bit rate could not play on an iPhone with a maximum width of 640.
Larger screens look better in higher resolution and tend to have better bandwidth. Reserve your higher bit rate encodings for larger widths. For example, you might specify a width of 1280 for your 1500, 2200, and 3600kbps bit rate encodes.
The following table shows the width and height of common devices:
|iPhone 6/6S/7/8||1334 or lower||750 or lower|
|iPhone 6+/6s+/7+/8+||2208 or lower||1242 or lower|
|iPhone X||2436 or lower||1125 or lower|
|iPad Air/Pro||2048 or lower||1536 or lower|
|Large iPad Pro||2732 or lower||2048 or lower|
|Apple TV||640 or higher||320 or higher|
|Android||varies (960 or less recommended)||varies (640 or less recommended)|
|Desktop/Notebook||varies (1280 recommended)||varies (720 recommended)|
|TV||varies (1920 or less recommended)||varies (1080 or less recommended)|
Containers, Video Codecs, and Audio Codecs
Each encoding is a container format (e.g. MP4) that comprises a video and audio codec.
When you specify a processing profile, you must specify the container formats and audio formats.
Ooyala support both H265 and H264 codec. However, H264 codec is supported across all browsers and devices, hence the default choice of codec is H264. H265 codec is relatively new to the market and is better at video compression, resulting a higher quality at a much lower bitrate than H264. However, browser and device support for H265 is limited; for full details, see here.
H.264 specifies a set of capabilities and different profiles that group subsets of the available capabilities. Ooyala supports the following profiles:
Although the High profile gives better quality, not all devices support it - use Baseline to cover older devices.
If a device, such as a phone or tablet, does not support an encode’s resolution, the video might not play. This is usually not an issue for desktops and laptops, but can be an issue for phones and tablets.
Video BitrateThe video bit rate specifies the amount of bits in one second of video. In general, the higher the bit rate, the higher the video quality.
When a bit rate is specified for an encoding, the actual bit rate is not consistent during playback. Ooyala supports both consistent bit rate (CBR) and variable bit rate (VBR); during processing profile creation we insert the target bitrate.
Ooyala also supports a two-pass encoding method to optimize performance and video quality. The first pass analyzes the content to determine the bitrate for each part of the video. The second pass encodes the video based on the analysis.
The audio bit rate is the number of bits in one second of audio. The higher the audio bit rate, the higher the quality, and viewers’ bandwidth requirements. You can select any audio bit rate of up to 156kb/s. For example:
- 32Kbps (kilobits per second)—AM Radio Quality
- 64Kbps—Voice Quality
- 96Kbps—FM Radio Quality
- 128Kbps—Standard Quality (recommended)
Audio Sample RateThe audio sampling rate specifies the number of samples taken per second. Ooyala supports all audio sampling rates up to 48,000, but we recommend the following rates:
- 32,000 (miniDV)
- 48,000 (professional digital video equipment)
The following are just a few of the variables that can affect a viewer's playback experience:
The CPU and GPU abilities of the device; other programs running in the background
The viewer's device and screen size
The connection speed or bandwidth cap
Latency caused by the wireless router, such as the distance from the router and local congestion
Latency caused by network traffic between the device and server hosting the video
Viewer's browser brand, version, and available plugins (e.g., Flash, Silverlight, and so on)
For smooth playback, viewer bandwidth should be around double the video playback bitrate (audio plus video bitrates).