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 D34534C60E for ; Tue, 30 Jul 2024 18:04:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BE7B968D7CA; Tue, 30 Jul 2024 21:04:07 +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 28DB268D6ED for ; Tue, 30 Jul 2024 21:04:01 +0300 (EEST) To: ffmpeg-devel@ffmpeg.org Date: Tue, 30 Jul 2024 20:03:33 +0200 Message-ID: <20240730180333.9082-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 progress output if no filters are used. This patch re-enables video stats (like frames=) in the progress output. --- Changelog | 1 + fftools/ffmpeg.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Changelog b/Changelog index 571b27ad98..2c2cbf9179 100644 --- a/Changelog +++ b/Changelog @@ -5,6 +5,7 @@ version : - Raw Captions with Time (RCWT) closed caption demuxer - LC3/LC3plus decoding/encoding using external library liblc3 - ffmpeg CLI filtergraph chaining +- ffmpeg CLI again shows video stats in progress output - LC3/LC3plus demuxer and muxer - pad_vaapi, drawbox_vaapi filters - vf_scale supports secondary ref input and framesync options 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".