mpeg2 bufsize question

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

mpeg2 bufsize question

Dave P-3
Hello list,

How do you calculate bufsize?  No matter what value I choose, I get
underflow errors and my qscale value goes up:

c:\ffmpeg_x64\bin>ffmpeg -i C:\temp\vids\155064\155064.mov -c:v mpeg2video -q:v
2 -bufsize 1M -vf yadif=0,scale=1920:1080 -aspect 16:9 -c:a mp2 -b:a 384k -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 @ 00000000041C2D40] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3 sw
s_param:
[yadif @ 0000000001C5CBB0] mode:0 parity:-1 auto_enable:0
[scale @ 0000000001C5CCC0] w:1440 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuv420
p flags:0x4
Output #0, mpeg, 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 @ 0000000001D4DE60] warning: first frame is no keyframe
    Last message repeated 1 times
[mpeg2video @ 0000000001CC2C60] rc buffer underflow
    Last message repeated 6 times
frame=    7 fps=  0 q=31.0 size=      36kB time=00:00:00.20 bitrate=1473.1kbits/
rc buffer underflow
[mpeg2video @ 0000000001CC2C60] rc buffer underflow
    Last message repeated 5 times
frame=   14 fps= 12 q=31.0 size=      74kB time=00:00:00.43 bitrate=1397.5kbits/
rc buffer underflow
[mpeg2video @ 0000000001CC2C60] rc buffer underflow
    Last message repeated 5 times
frame=   21 fps= 12 q=31.0 size=      80kB time=00:00:00.66 bitrate= 982.1kbits/
rc buffer underflow
[mpeg2video @ 0000000001CC2C60] rc buffer underflow
    Last message repeated 5 times
frame=   28 fps= 12 q=31.0 size=     118kB time=00:00:00.90 bitrate=1073.0kbits/
rc buffer underflow
[mpeg2video @ 0000000001CC2C60] rc buffer underflow
    Last message repeated 4 times
frame=   34 fps= 12 q=31.0 size=     134kB time=00:00:01.10 bitrate= 996.9kbits/
rc buffer underflow
[mpeg2video @ 0000000001CC2C60] rc buffer underflow
    Last message repeated 5 times
frame=   41 fps= 12 q=31.0 size=     182kB time=00:00:01.33 bitrate=1117.1kbits/
rc buffer underflow
[mpeg2video @ 0000000001CC2C60] rc buffer underflow
    Last message repeated 5 times
frame=   48 fps= 12 q=31.0 size=     194kB time=00:00:01.56 bitrate=1013.4kbits/
rc buffer underflow
[mpeg2video @ 0000000001CC2C60] rc buffer underflow
    Last message repeated 5 times
frame=   55 fps= 12 q=31.0 size=     240kB time=00:00:01.80 bitrate=1091.2kbits/
rc buffer underflow
[mpeg2video @ 0000000001CC2C60] rc buffer underflow

Thanks,

dp
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Carl Eugen Hoyos
Dave P <lists.davep <at> gmail.com> writes:

> How do you calculate bufsize?  No matter what value I choose, I get
> underflow errors and my qscale value goes up:
>
> c:\ffmpeg_x64\bin>ffmpeg -i C:\temp\vids\155064\155064.mov -c:v mpeg2video
> -q:v 2 -bufsize 1M

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

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Peter B.
Zitat von Carl Eugen Hoyos <[hidden email]>:

> 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.)

Could this be related to the issue I'm experiencing, where "rc buffer  
underflow" appears, no matter what options I choose [1]?

Regards,
Pb


== References:
[1] http://ffmpeg.org/pipermail/ffmpeg-user/2012-January/004307.html

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Dave P-3
In reply to this post by Carl Eugen Hoyos
On Mon, Jan 16, 2012 at 18:20, Carl Eugen Hoyos <[hidden email]> 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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Carl Eugen Hoyos
Dave P <lists.davep <at> gmail.com> writes:

> If I omit the -bufsize option, I get a warning:
>
> [vob @ 0000000001E17FD0] VBV buffer size not set, muxing may fail

Could it be that muxrate the option you are searching for?

> 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

Any reason you are using -f vob for 1920x1080?
(You are probably again right that FFmpeg does not act completely reasonable but
otoh, I do not understand the option combination, how can ffmpeg?)

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Dave P-3
On Tue, Jan 17, 2012 at 12:25, Carl Eugen Hoyos <[hidden email]> wrote:

> Dave P <lists.davep <at> gmail.com> writes:
>
>> If I omit the -bufsize option, I get a warning:
>>
>> [vob @ 0000000001E17FD0] VBV buffer size not set, muxing may fail
>
> Could it be that muxrate the option you are searching for?
>
>> 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
>
> Any reason you are using -f vob for 1920x1080?
> (You are probably again right that FFmpeg does not act completely reasonable but
> otoh, I do not understand the option combination, how can ffmpeg?)
>
> Carl Eugen

I recall reading on here somewhere that -f vob was for program
streams.  I get the same result without it.
Muxrate values ranging from 2M to 25M still generate errors.

c:\ffmpeg_x64\bin>ffmpeg -i C:\temp\vids\155064\155064.mov -c:v mpeg2video -q:v
2 -vf yadif=0,scale=1920:1080 -aspect 16:9 -c:a mp2 -b:a 384k -t 10 -muxrate 5M
-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 @ 00000000020BFBC0] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3 sw
s_param:
[yadif @ 00000000020BFE00] mode:0 parity:-1 auto_enable:0
[scale @ 00000000020BFF60] w:1440 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuv420
p flags:0x4
[mpeg @ 0000000000327FD0] VBV buffer size not set, muxing may fail
Output #0, mpeg, 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 @ 00000000020BE130] warning: first frame is no keyframe
    Last message repeated 1 times
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=618 size=1152
    Last message repeated 1 times
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=969 size=1152
    Last message repeated 1 times
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=1101 size=1152
    Last message repeated 2 times
frame=   40 fps=  0 q=2.0 size=     182kB time=00:00:01.30 bitrate=1145.7kbits/s
buffer underflow i=1 bufi=954 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=954 size=1152
    Last message repeated 1 times
frame=   81 fps= 79 q=2.0 size=     450kB time=00:00:02.66 bitrate=1381.0kbits/s
buffer underflow i=0 bufi=32156 size=37438
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=34197 size=37438
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=36238 size=37438
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
    Last message repeated 1 times
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=2873 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=4914 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=6955 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=8996 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=11037 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=13078 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=15119 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=17160 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=19201 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=21242 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=23283 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=25324 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=27365 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=29406 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=31447 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=33488 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=35529 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=37570 size=38284
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=1318 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=3359 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=5400 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=7441 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=9482 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=11523 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=13564 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=15605 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=17646 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=19687 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=21728 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=23769 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=25810 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=27851 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=29892 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=31933 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=33974 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=36015 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=38056 size=39183
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=905 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=2946 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=4987 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=7028 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=9069 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=11110 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=13151 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=15192 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=17233 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=19274 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=21315 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=23356 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=25397 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=27438 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=29479 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=31520 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=33561 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=35602 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=37643 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=39684 size=40131
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=1585 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=3626 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=5667 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=7708 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=9749 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=11790 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=13831 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=15872 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=17913 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=19954 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=21995 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=24036 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=26077 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=28118 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=30159 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=32200 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=34241 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=36282 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=38323 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=40364 size=41496
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=900 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=2941 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=4982 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=7023 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=9064 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=11105 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=13146 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=15187 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=17228 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=19269 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=21310 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=23351 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=25392 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=27433 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=29474 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=31515 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=33556 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=35597 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=37638 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=39679 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=0 bufi=41720 size=42306
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=897 size=1152
buffer underflow i=1 bufi=897 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=630 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=363 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=96 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=981 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=714 size=1152
[mpeg @ 0000000000327FD0] buffer underflow i=1 bufi=447 size=1152
frame=   89 fps= 65 q=2.0 Lsize=     794kB time=00:00:02.93 bitrate=2215.2kbits/
s
video:646kB audio:142kB global headers:0kB muxing overhead 0.820771%

--
dp
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Carl Eugen Hoyos
Dave P <lists.davep <at> gmail.com> writes:

> I recall reading on here somewhere that -f vob was for program
> streams.

I believe it tries to conform to the DVD standard (at least that is what I would
expect) and this standard is certainly not written for 1920x1080.
-f mpeg (or .mpg as output filename) forces mpeg program streams.

> I get the same result without it. Muxrate values ranging from 2M to 25M still
> generate errors.

I can now reproduce your problem (I originally tested with an Apple trailer that
starts with a still and only outputs the warnings / errors later).

I suspect the bug is that -bufsize (which is the right option) does not work
correctly with -qscale, a work-around is to change (current) line 377 in
libavformat/mpegenc.c "stream->max_buffer_size =" to a significantly larger
value, I tested "10*" successfully on mentioned trailer.
(The line is the one following the warning message "VBV buffer size not set".)

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Michael Niedermayer
In reply to this post by Dave P-3
On Mon, Jan 16, 2012 at 05:03:56PM -0500, Dave P wrote:
> Hello list,
>
> How do you calculate bufsize?  No matter what value I choose, I get

When you generate a mpeg file for XYZ lets say thats DVD then theres
a XYZ (DVD in this case) specification that lists what buffer size
this allows.

If you choose a value larger than what the spec allows then you dont
conform to the spec and some players will not corectly play the file.
too small and you get various over and underflows

note, "-target XYZ" will set these things correctly

[...]

--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Dave P-3
In reply to this post by Carl Eugen Hoyos
On Tue, Jan 17, 2012 at 18:11, Carl Eugen Hoyos <[hidden email]> wrote:
> Dave P <lists.davep <at> gmail.com> writes:
>
>> I recall reading on here somewhere that -f vob was for program
>> streams.
>
> I believe it tries to conform to the DVD standard (at least that is what I would
> expect) and this standard is certainly not written for 1920x1080.
> -f mpeg (or .mpg as output filename) forces mpeg program streams.
>
Thank you for mentioning -f mpeg.  I'll use that from now on.

>> I get the same result without it. Muxrate values ranging from 2M to 25M still
>> generate errors.
>
> I can now reproduce your problem (I originally tested with an Apple trailer that
> starts with a still and only outputs the warnings / errors later).
>
> I suspect the bug is that -bufsize (which is the right option) does not work
> correctly with -qscale, a work-around is to change (current) line 377 in
> libavformat/mpegenc.c "stream->max_buffer_size =" to a significantly larger
> value, I tested "10*" successfully on mentioned trailer.
> (The line is the one following the warning message "VBV buffer size not set".)
>
> Carl Eugen

Thanks again.  Will your edit make it to git eventually?

--
dp
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Dave P-3
In reply to this post by Michael Niedermayer
On Tue, Jan 17, 2012 at 19:42, Michael Niedermayer <[hidden email]> wrote:

> On Mon, Jan 16, 2012 at 05:03:56PM -0500, Dave P wrote:
>> Hello list,
>>
>> How do you calculate bufsize?  No matter what value I choose, I get
>
> When you generate a mpeg file for XYZ lets say thats DVD then theres
> a XYZ (DVD in this case) specification that lists what buffer size
> this allows.
>
> If you choose a value larger than what the spec allows then you dont
> conform to the spec and some players will not corectly play the file.
> too small and you get various over and underflows
>
> note, "-target XYZ" will set these things correctly

Yes, I've used the dv and dvd targets before, but only on sd files.
Is there any chance there will be more contemporary targets added,
like xdcam, hdv, atsc, or bluray?

Thanks,

dp
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Michael Niedermayer
On Tue, Jan 17, 2012 at 10:06:05PM -0500, Dave P wrote:

> On Tue, Jan 17, 2012 at 19:42, Michael Niedermayer <[hidden email]> wrote:
> > On Mon, Jan 16, 2012 at 05:03:56PM -0500, Dave P wrote:
> >> Hello list,
> >>
> >> How do you calculate bufsize?  No matter what value I choose, I get
> >
> > When you generate a mpeg file for XYZ lets say thats DVD then theres
> > a XYZ (DVD in this case) specification that lists what buffer size
> > this allows.
> >
> > If you choose a value larger than what the spec allows then you dont
> > conform to the spec and some players will not corectly play the file.
> > too small and you get various over and underflows
> >
> > note, "-target XYZ" will set these things correctly
>
> Yes, I've used the dv and dvd targets before, but only on sd files.
> Is there any chance there will be more contemporary targets added,
> like xdcam, hdv, atsc, or bluray?
If someone can point me to a accurate list of what exact parameters
these need then it should be easy to add anything that we support
through manually specified paramaters as a simple target

[...]
--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Dave P-3
In reply to this post by Carl Eugen Hoyos
On Tue, Jan 17, 2012 at 18:11, Carl Eugen Hoyos <[hidden email]> wrote:

> Dave P <lists.davep <at> gmail.com> writes:
>
>> I recall reading on here somewhere that -f vob was for program
>> streams.
>
> I believe it tries to conform to the DVD standard (at least that is what I would
> expect) and this standard is certainly not written for 1920x1080.
> -f mpeg (or .mpg as output filename) forces mpeg program streams.
>
>> I get the same result without it. Muxrate values ranging from 2M to 25M still
>> generate errors.
>
> I can now reproduce your problem (I originally tested with an Apple trailer that
> starts with a still and only outputs the warnings / errors later).
>
> I suspect the bug is that -bufsize (which is the right option) does not work
> correctly with -qscale, a work-around is to change (current) line 377 in
> libavformat/mpegenc.c "stream->max_buffer_size =" to a significantly larger
> value, I tested "10*" successfully on mentioned trailer.
> (The line is the one following the warning message "VBV buffer size not set".)
>
> Carl Eugen

I did some tests with similar command lines from the original message.
 Some editing programs complain about files produced with "-f mpeg" as
having mpeg2video in mpeg1 system streams.  It's not a problem for
ff-based players/decoders, though.

c:\ffmpeg_x64\bin>ffmpeg -formats | findstr "mpeg"

 DE ffmetadata      FFmpeg metadata in text format
 DE mpeg            MPEG-1 System format
  E mpeg1video      raw MPEG-1 video
  E mpeg2video      raw MPEG-2 video
 DE mpegts          MPEG-2 transport stream format
 D  mpegtsraw       MPEG-2 raw transport stream format
 D  mpegvideo       raw MPEG video
 DE yuv4mpegpipe    YUV4MPEG pipe format

c:\ffmpeg_x64\bin>ffmpeg -formats | findstr "vob"

  E vob             MPEG-2 PS format (VOB)

Thanks,

--
dp
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mpeg2 bufsize question

Tim Nicholson
In reply to this post by Michael Niedermayer
On 18/01/12 00:42, Michael Niedermayer wrote:

> On Mon, Jan 16, 2012 at 05:03:56PM -0500, Dave P wrote:
>> Hello list,
>>
>> How do you calculate bufsize?  No matter what value I choose, I get
>
> When you generate a mpeg file for XYZ lets say thats DVD then theres
> a XYZ (DVD in this case) specification that lists what buffer size
> this allows.
>
> If you choose a value larger than what the spec allows then you dont
> conform to the spec and some players will not corectly play the file.
> too small and you get various over and underflows
>

Nice explanation.

I have found, when experimenting that I often get a single

"[mpeg2video @ 0x17f79c0] rc buffer underflow" at the start of coding,
but then no further errors.

Is that cause for concern, and indicative of too small a buffer, or just
a singularity as the system gets going?

Files seem to play OK.

--
Tim

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                       
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user