diff --git a/video/encoder_bitrate_adjuster.cc b/video/encoder_bitrate_adjuster.cc index eb6017c787..6fa35047ff 100644 --- a/video/encoder_bitrate_adjuster.cc +++ b/video/encoder_bitrate_adjuster.cc @@ -139,6 +139,11 @@ VideoBitrateAllocation EncoderBitrateAdjuster::AdjustRateAllocation( min_bitrates_bps_[si]); } + if (spatial_layer_bitrate_bps > 0) { + RTC_LOG(LS_VERBOSE) << "Utilization factor for spatial index " << si + << ": " << utilization_factor; + } + // Populate the adjusted allocation with determined utilization factor. if (active_tls_[si] == 1 && spatial_layer_bitrate_bps > bitrate_allocation.GetBitrate(si, 0)) { diff --git a/video/video_stream_encoder.cc b/video/video_stream_encoder.cc index 8436dd8a3d..6066ac5d75 100644 --- a/video/video_stream_encoder.cc +++ b/video/video_stream_encoder.cc @@ -858,8 +858,13 @@ VideoStreamEncoder::GetBitrateAllocationAndNotifyObserver( } if (bitrate_adjuster_) { - return bitrate_adjuster_->AdjustRateAllocation(bitrate_allocation, - framerate_fps); + VideoBitrateAllocation adjusted_allocation = + bitrate_adjuster_->AdjustRateAllocation(bitrate_allocation, + framerate_fps); + RTC_LOG(LS_VERBOSE) << "Adjusting allocation, fps = " << framerate_fps + << ", from " << bitrate_allocation.ToString() << ", to " + << adjusted_allocation.ToString(); + return adjusted_allocation; } return bitrate_allocation; }