From dfe026ce083c1fe4911dc85702fe83f973500b62 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 10 Jul 2023 12:34:18 +0200 Subject: [PATCH] Log frame NTP timestamp in VideoEncoder::AugmentEncodedImage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit allowing for better correlation with MaybeEncodeVideoFrame which also logs the ntp timestamp. BUG=None Change-Id: I00fc99e69cd703f6da3f25043361d68b3cb3f3fa Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/311542 Commit-Queue: Philipp Hancke Reviewed-by: Henrik Boström Reviewed-by: Ilya Nikolaevskiy Cr-Commit-Position: refs/heads/main@{#40415} --- video/video_stream_encoder.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/video_stream_encoder.cc b/video/video_stream_encoder.cc index c3d855c1c6..b23d56211d 100644 --- a/video/video_stream_encoder.cc +++ b/video/video_stream_encoder.cc @@ -2125,7 +2125,8 @@ EncodedImage VideoStreamEncoder::AugmentEncodedImage( .Parse(codec_type, stream_idx, image_copy.data(), image_copy.size()) .value_or(-1); } - RTC_LOG(LS_VERBOSE) << __func__ << " stream_idx " << stream_idx << " qp " + RTC_LOG(LS_VERBOSE) << __func__ << " ntp time " << encoded_image.NtpTimeMs() + << " stream_idx " << stream_idx << " qp " << image_copy.qp_; image_copy.SetAtTargetQuality(codec_type == kVideoCodecVP8 && image_copy.qp_ <= kVp8SteadyStateQpThreshold);