[FFmpeg-user] Concatenation buffer underflow problem
Dzung Nguyen
dzungng89 at gmail.com
Thu Aug 22 21:31:27 CEST 2013
On Tue, Aug 20, 2013 at 5:31 AM, Nicolas George <
nicolas.george at normalesup.org> wrote:
> Le duodi 2 fructidor, an CCXXI, Dzung Nguyen a écrit :
> > The problem is that the 2nd command has buffer underflow problem: packet
> > too large, ignoring buffer limit. How to fix it?
>
> Your message is mostly useless, as you post nowhere near enough information
> to reproduce your problem. Your complete command lines and full console
> output are a bare minimum.
>
> As is, I can only reply two generic warnings: first, do not rely on default
> values, specify codecs and encoding parameters; second, do not use MPEG-PS,
> especially as an intermediary format.
>
> Regards,
>
> --
> Nicolas George
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
So this is the complete output:
*1) Create subvideos:*
ffmpeg -y -loop 1 -r 1 -i resized0.png -q:v 0 -r 29.97 -t 30 0.mpg
ffmpeg version git-2013-08-06-a68b6ec Copyright (c) 2000-2013 the FFmpeg
developers
built on Aug 21 2013 11:58:24 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/home/andrey/ffmpeg_build
--extra-cflags=-I/home/andrey/ffmpeg_build/include
--extra-ldflags=-L/home/andrey/ffmpeg_build/lib --bindir=/home/andrey/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
--enable-libfreetype
libavutil 52. 41.100 / 52. 41.100
libavcodec 55. 22.100 / 55. 22.100
libavformat 55. 13.102 / 55. 13.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.100 / 3. 82.100
libswscale 2. 4.100 / 2. 4.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from 'resized0.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 1280x720 [SAR 300:300 DAR 16:9], 25
fps, 25 tbr, 25 tbn, 25 tbc
[mpeg @ 0x277e5e0] VBV buffer size not set, muxing may fail
Output #0, mpeg, to '0.mpg':
Metadata:
encoder : Lavf55.13.102
Stream #0:0: Video: mpeg1video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (png -> mpeg1video)
Press [q] to stop, [?] for help
frame= 900 fps=198 q=0.0 Lsize= 10620kB time=00:00:29.99
bitrate=2900.3kbits/s dup=898 drop=0
video:10570kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.475636%
*2) Concatenate using concat protocol. THIS IS WHERE THE ERROR ARE.*
ffmpeg -y -i "concat:0.mpg|1.mpg|2.mpg|3.mpg" -c copy output.mpg
ffmpeg version git-2013-08-06-a68b6ec Copyright (c) 2000-2013 the FFmpeg
developers
built on Aug 21 2013 11:58:24 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/home/andrey/ffmpeg_build
--extra-cflags=-I/home/andrey/ffmpeg_build/include
--extra-ldflags=-L/home/andrey/ffmpeg_build/lib --bindir=/home/andrey/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
--enable-libfreetype
libavutil 52. 41.100 / 52. 41.100
libavcodec 55. 22.100 / 55. 22.100
libavformat 55. 13.102 / 55. 13.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.100 / 3. 82.100
libswscale 2. 4.100 / 2. 4.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpeg, from 'concat:0.mpg|1.mpg|2.mpg|3.mpg':
Duration: 00:00:00.93, start: 0.533367, bitrate: 270363 kb/s
Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 1280x720 [SAR 1:1 DAR
16:9], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
Output #0, mpeg, to 'output.mpg':
Metadata:
encoder : Lavf55.13.102
Stream #0:0: Video: mpeg1video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
q=2-31, 104857 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpeg @ 0x317f160] buffer underflow i=0 bufi=12210 size=106615
[mpeg @ 0x317f160] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x317f160] buffer underflow i=0 bufi=12210 size=106615
[mpeg @ 0x317f160] buffer underflow i=0 bufi=14239 size=106615
[mpeg @ 0x317f160] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x317f160] buffer underflow i=0 bufi=14239 size=106615
[mpeg @ 0x317f160] buffer underflow i=0 bufi=16280 size=106615
[mpeg @ 0x317f160] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x317f160] buffer underflow i=0 bufi=16280 size=106615
[mpeg @ 0x317f160] buffer underflow i=0 bufi=18321 size=106615
[mpeg @ 0x317f160] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x317f160] buffer underflow i=0 bufi=18321 size=106615
[mpeg @ 0x317f160] buffer underflow i=0 bufi=20362 size=106615
[mpeg @ 0x317f160] packet too large, ignoring
More information about the ffmpeg-user
mailing list