mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-01 13:42:21 +00:00
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/1567>
This commit is contained in:
parent
e845e3575c
commit
aabb011f5a
1 changed files with 9 additions and 6 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue