From eab4ab66376bc37bbd2a036d5bdd7c0f9e56a45d Mon Sep 17 00:00:00 2001 From: Markus Handell Date: Mon, 12 Sep 2022 16:33:32 +0200 Subject: [PATCH] VideoStreamEncoder: add Encode and QP feedback logging. Bug: b/245029833 Change-Id: I02f867d2505ad5748bda3c72fd690b2c07647732 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/275202 Commit-Queue: Markus Handell Reviewed-by: Ilya Nikolaevskiy Cr-Commit-Position: refs/heads/main@{#38064} --- video/video_stream_encoder.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/video_stream_encoder.cc b/video/video_stream_encoder.cc index 249514e195..cbea3b3f06 100644 --- a/video/video_stream_encoder.cc +++ b/video/video_stream_encoder.cc @@ -1755,6 +1755,8 @@ void VideoStreamEncoder::MaybeEncodeVideoFrame(const VideoFrame& video_frame, void VideoStreamEncoder::EncodeVideoFrame(const VideoFrame& video_frame, int64_t time_when_posted_us) { RTC_DCHECK_RUN_ON(&encoder_queue_); + RTC_LOG(LS_VERBOSE) << __func__ << " posted " << time_when_posted_us + << " ntp time " << video_frame.ntp_time_ms(); // If the encoder fail we can't continue to encode frames. When this happens // the WebrtcVideoSender is notified and the whole VideoSendStream is @@ -1975,6 +1977,8 @@ EncodedImageCallback::Result VideoStreamEncoder::OnEncodedImage( image_copy.size()) .value_or(-1); } + RTC_LOG(LS_VERBOSE) << __func__ << " spatial_idx " << spatial_idx << " qp " + << image_copy.qp_; // Piggyback ALR experiment group id and simulcast id into the content type. const uint8_t experiment_id =