Skip to content
Snippets Groups Projects
Commit e98fab13 authored by Thierry Foucu's avatar Thierry Foucu Committed by Michael Niedermayer
Browse files

Update video stats log during encode flush

parent 18aaed64
No related branches found
No related tags found
No related merge requests found
......@@ -1304,6 +1304,11 @@ static void flush_encoders(void)
if (pkt.duration > 0)
pkt.duration = av_rescale_q(pkt.duration, enc->time_base, ost->st->time_base);
write_frame(os, &pkt, ost);
ost->frame_number ++;
ost->sync_opts ++;
if (ost->st->codec->codec_type == AVMEDIA_TYPE_VIDEO && vstats_filename) {
do_video_stats(ost, pkt.size);
}
}
if (stop_encoding)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment