History

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.

Jan Garcia via ffmpeg-devel committed 2 years ago

Commit 598f5411 parent 374824c1 file · +5 −3Browse files

Unified · Split

fftools/ffmpeg.c+5−3
@@ -587,7 +587,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti · 586 unmodified lines
587587 av_bprintf(&buf_script, "stream_%d_%d_q=%.1f\n",
588588 ost->file->index, ost->index, q);
589589 }
590− if (!vid && ost->type == AVMEDIA_TYPE_VIDEO && ost->filter) {
590+ if (!vid && ost->type == AVMEDIA_TYPE_VIDEO) {
591591 float fps;
592592 uint64_t frame_number = atomic_load(&ost->packets_written);
593593
@@ -601,8 +601,10 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti · 7 unmodified lines
601601 if (is_last_report)
602602 av_bprintf(&buf, "L");
603603
604− nb_frames_dup = atomic_load(&ost->filter->nb_frames_dup);
605− nb_frames_drop = atomic_load(&ost->filter->nb_frames_drop);
604+ if (ost->filter) {
605+ nb_frames_dup = atomic_load(&ost->filter->nb_frames_dup);
606+ nb_frames_drop = atomic_load(&ost->filter->nb_frames_drop);
607+ }
606608
607609 vid = 1;
608610 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t