From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 8F14846C18 for ; Fri, 2 Aug 2024 08:26:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2D70568D8D2; Fri, 2 Aug 2024 11:26:29 +0300 (EEST) Received: from mail.n-garcia.com (mail.n-garcia.com [168.119.117.94]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E1DC468D87E for ; Fri, 2 Aug 2024 11:26:22 +0300 (EEST) To: ffmpeg-devel@ffmpeg.org Date: Fri, 2 Aug 2024 10:25:58 +0200 Message-ID: <20240802082558.4327-1-j@n-garcia.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] fftools/ffmpeg: show video stats in progress output without filters X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jan Garcia via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: Jan Garcia Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Since ffmpeg 6.1 video stats are accidentally hidden from streamcopy progress output. This patch re-enables video stats (like frames=) in the progress output. --- fftools/ffmpeg.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 3aa2e12780..420ba3c6e4 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -587,7 +587,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti av_bprintf(&buf_script, "stream_%d_%d_q=%.1f\n", ost->file->index, ost->index, q); } - if (!vid && ost->type == AVMEDIA_TYPE_VIDEO && ost->filter) { + if (!vid && ost->type == AVMEDIA_TYPE_VIDEO) { float fps; uint64_t frame_number = atomic_load(&ost->packets_written); @@ -601,8 +601,10 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti if (is_last_report) av_bprintf(&buf, "L"); - nb_frames_dup = atomic_load(&ost->filter->nb_frames_dup); - nb_frames_drop = atomic_load(&ost->filter->nb_frames_drop); + if (ost->filter) { + nb_frames_dup = atomic_load(&ost->filter->nb_frames_dup); + nb_frames_drop = atomic_load(&ost->filter->nb_frames_drop); + } vid = 1; } -- 2.44.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".