mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
faac: improve faac configuration
In particular, align configuration some more with reference binary faac. Fixes #606726.
This commit is contained in:
parent
6e1f2cf392
commit
8be4e3725f
1 changed files with 10 additions and 0 deletions
|
@ -491,9 +491,19 @@ gst_faac_configure_source_pad (GstFaac * faac)
|
|||
conf->bitRate = maxbitrate;
|
||||
}
|
||||
|
||||
/* default 0 to start with, libfaac chooses based on bitrate */
|
||||
conf->bandWidth = 0;
|
||||
|
||||
if (!faacEncSetConfiguration (faac->handle, conf))
|
||||
goto set_failed;
|
||||
|
||||
/* let's see what really happened,
|
||||
* note that this may not really match desired rate */
|
||||
GST_DEBUG_OBJECT (faac, "average bitrate: %d kbps",
|
||||
(conf->bitRate + 500) / 1000 * faac->channels);
|
||||
GST_DEBUG_OBJECT (faac, "quantization quality: %ld", conf->quantqual);
|
||||
GST_DEBUG_OBJECT (faac, "bandwidth: %d Hz", conf->bandWidth);
|
||||
|
||||
/* now create a caps for it all */
|
||||
srccaps = gst_caps_new_simple ("audio/mpeg",
|
||||
"mpegversion", G_TYPE_INT, mpegversion,
|
||||
|
|
Loading…
Reference in a new issue