From e4d4510068df7c098d4d3f150ba651ea0bef41fb Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 15 Jun 2023 09:45:05 +0200 Subject: [PATCH] vidcap file: print also PTS (+fix unit) Print also decompressed video pts - this is useful to match the delay with corresponding received video packet. + fixed duration unit (not nanoseconds but seconds) --- src/video_capture/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video_capture/file.c b/src/video_capture/file.c index ed7d60e13..eaee8b9b6 100644 --- a/src/video_capture/file.c +++ b/src/video_capture/file.c @@ -280,9 +280,9 @@ static struct video_frame *process_video_pkt(struct vidcap_state_lavf_decoder *s } ret = avcodec_receive_frame(s->vid_ctx, frame); log_msg(LOG_LEVEL_DEBUG, - MOD_NAME "Video decompressing %c frame " - "duration: %f ns\n", - av_get_picture_type_char(frame->pict_type), + MOD_NAME "Video decompressing %c frame (pts %" PRId64 ") " + "duration: %f s\n", + av_get_picture_type_char(frame->pict_type), frame->pts, (get_time_in_ns() - t0) / NS_IN_SEC_DBL); if (ret < 0) {