opusenc: change default bitrate-type from cbr to constrained-vbr

Which is the default in libopus itself as well, with a comment
that constrained-vbr is considered "safer for real-time use".

Unclear why CBR was the default in the first place.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1451>
This commit is contained in:
Tim-Philipp Müller 2021-12-16 18:41:38 +00:00 committed by GStreamer Marge Bot
parent 30d028317b
commit a525a76e54
2 changed files with 2 additions and 2 deletions

View file

@ -7769,7 +7769,7 @@
"construct": false,
"construct-only": false,
"controllable": false,
"default": "cbr (0)",
"default": "constrained-vbr (2)",
"mutable": "playing",
"readable": true,
"type": "GstOpusEncBitrateType",

View file

@ -195,7 +195,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
#define DEFAULT_FRAMESIZE 20
#define DEFAULT_CBR TRUE
#define DEFAULT_CONSTRAINED_VBR TRUE
#define DEFAULT_BITRATE_TYPE BITRATE_TYPE_CBR
#define DEFAULT_BITRATE_TYPE BITRATE_TYPE_CONSTRAINED_VBR
#define DEFAULT_COMPLEXITY 10
#define DEFAULT_INBAND_FEC FALSE
#define DEFAULT_DTX FALSE