[FFmpeg-user] mpeg2 bufsize question

Dave P lists.davep at gmail.com
Tue Jan 17 14:54:51 CET 2012


On Mon, Jan 16, 2012 at 18:20, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> The bufsize option affects the ratecontrol, it does not make sense to combine
> it with a constant quantiser.
> (I am not saying it is not a bug that a specified bufsize affects a constant
> quantiser, but it is at least impossible for the encoder to understand your
> command line.)
>
> Carl Eugen

If I omit the -bufsize option, I get a warning:

[vob @ 0000000001E17FD0] VBV buffer size not set, muxing may fail

c:\ffmpeg_x64\bin>ffmpeg -i C:\temp\vids\155064\155064.mov -f vob -c:v mpeg2vide
o -q:v 2 -vf yadif=0,scale=1920:1080 -aspect 16:9 -c:a mp2 -b:a 384k -t 60 -y C:
\temp\vids\155064\155064-q2.mpg
ffmpeg version N-36635-gceb0dd9 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  9 2012 17:45:55 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 54.100 / 53. 54.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 58.100 /  2. 58.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    51.  2.100 / 51.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\temp\vids\155064\155064.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2011-10-08 23:30:10
  Duration: 01:36:48.67, start: 0.000000, bitrate: 26534 kb/s
    Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s1
6, 1536 kb/s
    Metadata:
      creation_time   : 2011-10-08 23:30:10
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Video: mpeg2video (Main) (hdv2 / 0x32766468), yuv420p, 144
0x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc

    Metadata:
      creation_time   : 2011-10-08 23:30:10
      handler_name    : ?Apple Alias Data Handler
[buffer @ 000000000038FC60] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3 sw
s_param:
[yadif @ 000000000038FF30] mode:0 parity:-1 auto_enable:0
[scale @ 0000000001E1CA90] w:1440 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuv420
p flags:0x4
[vob @ 0000000001E17FD0] VBV buffer size not set, muxing may fail
Output #0, vob, to 'C:\temp\vids\155064\155064-q2.mpg':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2011-10-08 23:30:10
    encoder         : Lavf53.29.100
    Stream #0:0(eng): Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
    Metadata:
      creation_time   : 2011-10-08 23:30:10
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
    Metadata:
      creation_time   : 2011-10-08 23:30:10
      handler_name    : ?Apple Alias Data Handler
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video -> mpeg2video)
  Stream #0:0 -> #0:1 (pcm_s16le -> mp2)
Press [q] to stop, [?] for help
[mpeg2video @ 000000000038E110] warning: first frame is no keyframe
    Last message repeated 1 times
frame=   40 fps=  0 q=2.0 size=     178kB time=00:00:01.30 bitrate=1120.6kbits/s
frame=   81 fps= 79 q=2.0 size=     442kB time=00:00:02.66 bitrate=1356.5kbits/s
frame=  108 fps= 71 q=2.0 size=    1894kB time=00:00:03.57 bitrate=4345.8kbits/s
frame=  137 fps= 67 q=2.0 size=    3324kB time=00:00:04.53 bitrate=6000.7kbits/s
frame=  167 fps= 65 q=2.0 size=    4798kB time=00:00:05.53 bitrate=7096.3kbits/s
frame=  197 fps= 64 q=2.0 size=    7086kB time=00:00:06.53 bitrate=8876.1kbits/s
frame=  227 fps= 63 q=2.0 size=    9622kB time=00:00:07.54 bitrate=10452.8kbits/
frame=  253 fps= 62 q=2.0 size=   12418kB time=00:00:08.40 bitrate=12098.4kbits/
frame=  280 fps= 61 q=2.0 size=   14846kB time=00:00:09.30 bitrate=13064.2kbits/
frame=  308 fps= 60 q=2.0 size=   17218kB time=00:00:10.24 bitrate=13769.6kbits/
frame=  336 fps= 60 q=2.0 size=   19414kB time=00:00:11.17 bitrate=14228.1kbits/
frame=  364 fps= 59 q=2.0 size=   21634kB time=00:00:12.11 bitrate=14632.1kbits/
frame=  392 fps= 59 q=2.0 size=   24160kB time=00:00:13.04 bitrate=15170.4kbits/
frame=  419 fps= 58 q=2.0 size=   27546kB time=00:00:13.94 bitrate=16179.3kbits/
buffer underflow i=0 bufi=235191 size=235321
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=235191 size=235321
    Last message repeated 1 times
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=235191 size=235321
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=234590 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=234590 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=236614 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=236614 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=238638 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=238638 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=240662 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=240662 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=242686 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=242686 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=244710 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=244710 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=246734 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=246734 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=248758 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=248758 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=250782 size=252524
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=250782 size=252524
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=234494 size=234827
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=234494 size=234827
    Last message repeated 1 times
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=234494 size=234827
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=234387 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=234387 size=282771
    Last message repeated 1 times
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=234387 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=236411 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=236411 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=238435 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=238435 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=240459 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=240459 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=242483 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=242483 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=244507 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=244507 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=246531 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=246531 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=248555 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=248555 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=250579 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=250579 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=252603 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=252603 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=254627 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=254627 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=256651 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=256651 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=258675 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=258675 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=260699 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=260699 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=262723 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=262723 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=264747 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=264747 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=266771 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=266771 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=268795 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=268795 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=270819 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=270819 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=272843 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=272843 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=274867 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=274867 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=276891 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=276891 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=278915 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=278915 size=282771
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=280939 size=282771
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=280939 size=282771
buffer underflow i=0 bufi=233662 size=239203
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=233662 size=239203
    Last message repeated 1 times
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=233662 size=239203
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=235686 size=239203
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=235686 size=239203
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=237710 size=239203
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=237710 size=239203
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=235251 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=235251 size=279105
    Last message repeated 1 times
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=235251 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=237275 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=237275 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=239299 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=239299 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=241323 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=241323 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=243347 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=243347 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=245371 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=245371 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=247395 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=247395 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=249419 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=249419 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=251443 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=251443 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=253467 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=253467 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=255491 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=255491 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=257515 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=257515 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=259539 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=259539 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=261563 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=261563 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=263587 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=263587 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=265611 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=265611 size=279105
    Last message repeated 1 times
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=265611 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=267635 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=267635 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=269659 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=269659 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=271683 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=271683 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=273707 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=273707 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=275731 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=275731 size=279105
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=277755 size=279105
[vob @ 0000000001E17FD0] packet too large, ignoring buffer limits to mux it
[vob @ 0000000001E17FD0] buffer underflow i=0 bufi=277755 size=279105
frame=  441 fps= 57 q=2.0 Lsize=   32844kB time=00:00:14.68 bitrate=18326.5kbits
/s
video:31708kB audio:736kB global headers:0kB muxing overhead 1.232604%
Received signal 2: terminating.

--
dp


More information about the ffmpeg-user mailing list