[FFmpeg-cvslog] Update video stats log during encode flush
Thierry Foucu
git at videolan.org
Tue Dec 4 16:36:55 CET 2012
ffmpeg | branch: master | Thierry Foucu <tfoucu at gmail.com> | Mon Dec 3 22:01:38 2012 -0800| [e98fab1372eb729f3a62e6ca5cbe764218e07c21] | committer: Michael Niedermayer
Update video stats log during encode flush
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e98fab1372eb729f3a62e6ca5cbe764218e07c21
---
ffmpeg.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index 55b5f86..c32321d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list