summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-20 20:13:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-20 20:13:26 +0200
commitcfbaeb311d906099bd9b8fbf0fa38cdb1b08f23e (patch)
tree94baa2f73a68e6e4faf3ef062b2149d06f7bc10a /ffmpeg.c
parent54dd50d14dc3a3952f7d85165142d02f6ea578d7 (diff)
ffmpeg: print warning if encoding would duplicate massive amounts of frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 0b1b1bee8d..dcb49d0fce 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2326,6 +2326,11 @@ static int transcode(AVFormatContext **output_files,
ost->frame_rate = ost->enc->supported_framerates[idx];
}
codec->time_base = (AVRational){ost->frame_rate.den, ost->frame_rate.num};
+ if( av_q2d(codec->time_base) < 0.001 && video_sync_method
+ && (video_sync_method==1 || (video_sync_method<0 && !(os->oformat->flags & AVFMT_VARIABLE_FPS)))){
+ av_log(os, AV_LOG_WARNING, "Frame rate very high for a muxer not effciciently supporting it.\n"
+ "Please consider specifiying a lower framerate, a different muxer or -vsync 2\n");
+ }
#if CONFIG_AVFILTER
if (configure_video_filters(ist, ost)) {