diff options
author | Jan Garcia via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> | 2024-08-02 10:25:58 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-08-14 15:17:58 +0200 |
commit | 598f541ba49cb682dcd74e86858c9a4985149e1f (patch) | |
tree | d32f839337811bd23b49d5c21ae81733bcd3dd41 /fftools/ffmpeg.c | |
parent | 374824cbc7952e83e89725f82470275639188e5e (diff) | |
download | ffmpeg-598f541ba49cb682dcd74e86858c9a4985149e1f.tar.gz |
fftools/ffmpeg: show video stats in progress output without filters
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.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 8 |
1 files 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; } |