summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-16 17:05:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-16 17:20:07 +0200
commit572f5eb1afc6a6cfafcbe4da42120ae4e42a6af1 (patch)
treec80d5c85d60c83d88cad2cc7ec94d0689d50ee5a
parent3b808900af61c09dd47ce690bc9a60515fb8dba9 (diff)
downloadffmpeg-572f5eb1afc6a6cfafcbe4da42120ae4e42a6af1.tar.gz
avformat/mpegenc: try to improve the VBV buffer warning
Maybe fixes Ticket 3494 Part of the message suggested by: rogerdpack Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mpegenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index ccf3ec21f7..1e60c51fdd 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -387,7 +387,9 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx)
if (st->codec->rc_buffer_size)
stream->max_buffer_size = 6*1024 + st->codec->rc_buffer_size/8;
else {
- av_log(ctx, AV_LOG_WARNING, "VBV buffer size not set, muxing may fail\n");
+ av_log(ctx, AV_LOG_WARNING, "VBV buffer size not set, using default size of 130KB\n"
+ "If you want the mpeg file to be compliant to some specification\n"
+ "Like DVD, VCD or others, make sure you set the correct buffer size\n");
stream->max_buffer_size = 230*1024; //FIXME this is probably too small as default
}
if (stream->max_buffer_size > 1024 * 8191) {