Language

MediaFormat.KeyVideoBitrateLayering Field

Definition

Set the bitrate distributions for temporal layering.

[Android.Runtime.Register("KEY_VIDEO_BITRATE_LAYERING", ApiSince=37)]
public const string KeyVideoBitrateLayering;
[<Android.Runtime.Register("KEY_VIDEO_BITRATE_LAYERING", ApiSince=37)>]
val mutable KeyVideoBitrateLayering : string

Field Value

Attributes

Remarks

Set the bitrate distributions for temporal layering.

The associated value is a String in the format "ratio1;ratio2;...;ratioN", where N is the number of temporal layers - 1. Each ratio represents the bitrate allocation for the current layer and all lower layers combined, as a fraction of the total bitrate. There is no value for the highest temporal layer because it is always 1.0.

For example, if there are 3 temporal layers and the total bitrate is 1000kbps, a value of "0.3;0.6" would mean: Layer 0 (base layer): 30% of total bitrate (300kbps); Layer 0 + Layer 1: 60% of total bitrate (600kbps), so Layer 1 gets 30% (300kbps); Layer 0 + Layer 1 + Layer 2: 100% of total bitrate (1000kbps), so Layer 2 gets 40% (400kbps)

The ratios must be monotonically increasing. See MediaCodec.setParameters

Android reference for android.media.MediaFormat.KEY_VIDEO_BITRATE_LAYERING.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to