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.
Unified · Split
| @@ -587,7 +587,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti · 586 unmodified lines | |||
| 587 | av_bprintf(&buf_script, "stream_%d_%d_q=%.1f\n", | 587 | av_bprintf(&buf_script, "stream_%d_%d_q=%.1f\n", |
| 588 | ost->file->index, ost->index, q); | 588 | ost->file->index, ost->index, q); |
| 589 | } | 589 | } |
| 590 | if (!vid && ost->type == AVMEDIA_TYPE_VIDEO && ost->filter) { | 590 | if (!vid && ost->type == AVMEDIA_TYPE_VIDEO) { |
| 591 | float fps; | 591 | float fps; |
| 592 | uint64_t frame_number = atomic_load(&ost->packets_written); | 592 | uint64_t frame_number = atomic_load(&ost->packets_written); |
| 593 | 593 | ||
| @@ -601,8 +601,10 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti · 7 unmodified lines | |||
| 601 | if (is_last_report) | 601 | if (is_last_report) |
| 602 | av_bprintf(&buf, "L"); | 602 | av_bprintf(&buf, "L"); |
| 603 | 603 | ||
| 604 | nb_frames_dup = atomic_load(&ost->filter->nb_frames_dup); | 604 | if (ost->filter) { |
| 605 | nb_frames_drop = atomic_load(&ost->filter->nb_frames_drop); | 605 | nb_frames_dup = atomic_load(&ost->filter->nb_frames_dup); |
| 606 | nb_frames_drop = atomic_load(&ost->filter->nb_frames_drop); | ||
| 607 | } | ||
| 606 | 608 | ||
| 607 | vid = 1; | 609 | vid = 1; |
| 608 | } | 610 | } |