rtpgccbwe: Log effective bitrate in more places

While monitoring and debugging rtpgccbwe, it is very helpful
to get continuous values of what it considers the effective
bitrate. Right now such prints will stop coming once the
algorithm stabilizes. Print it in more places so it keeps
coming. Use the same format to make it simpler to extract
the values by parsing the logs.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1582>
This commit is contained in:
Martin Nordholts 2024-05-03 11:31:31 +02:00 committed by Sebastian Dröge
parent 26f63c5e1e
commit 536601e65d

View file

@ -879,8 +879,9 @@ impl State {
gst::log!(
CAT,
obj: bwe,
"Increasing == received_max rate: {}ps",
human_kbits(received_max)
"Increasing == received_max rate: {}ps - effective bitrate: {}ps",
human_kbits(received_max),
human_kbits(effective_bitrate),
);
self.last_control_op = BandwidthEstimationOp::Increase(format!(
@ -892,8 +893,9 @@ impl State {
gst::log!(
CAT,
obj: bwe,
"Rate < target, returning {}ps",
human_kbits(self.target_bitrate_on_delay)
"Rate < target, returning {}ps - effective bitrate: {}ps",
human_kbits(self.target_bitrate_on_delay),
human_kbits(effective_bitrate),
);
None
@ -901,9 +903,10 @@ impl State {
gst::log!(
CAT,
obj: bwe,
"Increase mult {eta}x{}ps={}ps",
"Increase mult {eta}x{}ps={}ps - effective bitrate: {}ps",
human_kbits(self.target_bitrate_on_delay),
human_kbits(rate)
human_kbits(rate),
human_kbits(effective_bitrate),
);
self.last_control_op =