nicesink: "max-bitrate" has no effect
Describe your issue
Setting the "max-bitrate" on webrtcbin's nicesink has no effect.
Expected Behavior
Network burst should be small.
Observed Behavior
Network burst are too high. Udpsink works fine.
Setup
- Operating System: Ubuntu 20.04
- GStreamer Version: main
Steps to reproduce the bug
catch nicesink using "deep-element-added".
static void onDeepElementAdded(GstBin* /*bin*/, GstBin* /*sub_bin*/, GstElement* element, gpointer /*unused*/)
{
std::string_view name(GST_OBJECT_NAME(GST_OBJECT(element)));
if (name.starts_with("nicesink")) {
g_object_set(element, "max-bitrate", static_cast<uint64_t>(6600000), nullptr);
}
}
set "max-bitrate" like: e.g. bitrate+10%