mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
libs: encoder: Describes more detail about the bitrate property
https://bugzilla.gnome.org/show_bug.cgi?id=778732
This commit is contained in:
parent
81886682cd
commit
cbd912b89b
1 changed files with 11 additions and 0 deletions
|
@ -136,6 +136,17 @@ gst_vaapi_encoder_properties_get_default (const GstVaapiEncoderClass * klass)
|
|||
* GstVaapiEncoder:bitrate:
|
||||
*
|
||||
* The desired bitrate, expressed in kbps.
|
||||
* This is available when rate-control is CBR or VBR.
|
||||
*
|
||||
* CBR: This applies equally to minimum, maximum and target bitrate in the driver.
|
||||
* VBR: This applies to maximum bitrate in the driver.
|
||||
* Minimum bitrate will be calculated like the following in the driver.
|
||||
* if (target percentage < 50) minimum bitrate = 0
|
||||
* else minimum bitrate = maximum bitrate * (2 * target percentage -100) / 100
|
||||
* Target bitrate will be calculated like the following in the driver.
|
||||
* target bitrate = maximum bitrate * target percentage / 100
|
||||
*
|
||||
* Note that target percentage is set as 70 currently in GStreamer VA-API.
|
||||
*/
|
||||
GST_VAAPI_ENCODER_PROPERTIES_APPEND (props,
|
||||
GST_VAAPI_ENCODER_PROP_BITRATE,
|
||||
|
|
Loading…
Reference in a new issue