[FFmpeg-user] Buffer queue overflow, dropping.

Hugo Mallet hugomallet06 at gmail.com
Thu Sep 19 13:53:00 CEST 2013


Hi,

I am trying to overlay a rtmp stream over a movie (i'm using the red5
demo). It works, but when i try to add an audio stream to the output,
firstly the output is available later than without audio, and secondly i
have those logs repeated many times:

Buffer queue overflow, dropping.     513kB time=00:00:04.17
bitrate=1007.2kbits/s
[Parsed_overlay_1 @ 0x7feb3b42cc80] Buffer queue overflow, dropping.
    Last message repeated 150 times

I do not understand the problem, is there a solution?

*The executed command is:*
ffmpeg -i startrekintodarkness_flv.flv -i
'rtmp://localhost/oflaDemo/red5StreamDemo live=1' -filter_complex '[1:v]
scale=100:100 [w];[0:v][w] overlay=10:main_h-overlay_h-10 [outv]' -map
[outv] -c:v flv -s '848x368' -map 0:a:0 -f flv
'rtmp://localhost/oflaDemo/test'

*The trace:*
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 18 2013 17:44:18 with Apple clang version 4.1
(tags/Apple/clang-421.11.65) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.1 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-librtmp
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, flv, from 'startrekintodarkness_flv.flv':
  Metadata:
    encoder         : Lavf54.63.104
  Duration: 00:01:05.46, start: 0.000000, bitrate: 751 kb/s
    Stream #0:0: Video: flv1, yuv420p, 848x368, 200 kb/s, 23.98 tbr, 1k
tbn, 1k tbc
    Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
[flv @ 0x7feb3b825600] Estimating duration from bitrate, this may be
inaccurate
Input #1, flv, from 'rtmp://localhost/oflaDemo/red5StreamDemo live=1':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: flv1, yuv420p, 480x320, 1k tbr, 1k tbn, 1k tbc
    Stream #1:1: Audio: nellymoser, 8000 Hz, mono, flt
Output #0, flv, to 'rtmp://localhost/oflaDemo/test':
  Metadata:
    encoder         : Lavf54.63.104
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 848x368,
q=2-31, 200 kb/s, 1k tbn, 23.98 tbc
    Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16p
Stream mapping:
  Stream #0:0 (flv) -> overlay:main (graph 0)
  Stream #1:0 (flv) -> scale (graph 0)
  overlay (graph 0) -> Stream #0:0 (flv)
  Stream #0:1 -> #0:1 (mp3 -> libmp3lame)
Press [q] to stop, [?] for help
Buffer queue overflow, dropping.     513kB time=00:00:04.17
bitrate=1007.2kbits/s
[Parsed_overlay_1 @ 0x7feb3b42cc80] Buffer queue overflow, dropping.
    Last message repeated 150 times
Buffer queue overflow, dropping.     595kB time=00:00:13.16 bitrate=
370.1kbits/s
[Parsed_overlay_1 @ 0x7feb3b42cc80] Buffer queue overflow, dropping.
    Last message repeated 224 times
Buffer queue overflow, dropping.     608kB time=00:00:23.04 bitrate=
216.1kbits/s
[Parsed_overlay_1 @ 0x7feb3b42cc80] Buffer queue overflow, dropping.
    Last message repeated 227 times
Buffer queue overflow, dropping.     631kB time=00:00:32.91 bitrate=
157.1kbits/s
[Parsed_overlay_1 @ 0x7feb3b42cc80] Buffer queue overflow, dropping.
    Last message repeated 234 times
Buffer queue overflow, dropping.     660kB time=00:00:42.99 bitrate=
125.8kbits/s
[Parsed_overlay_1 @ 0x7feb3b42cc80] Buffer queue overflow, dropping.
    Last message repeated 253 times
Buffer queue overflow, dropping.     662kB time=00:00:53.68 bitrate=
100.9kbits/s
[Parsed_overlay_1 @ 0x7feb3b42cc80] Buffer queue overflow, dropping.
    Last message repeated 276 times
Failed to update header with correct duration.e=00:00:08.42 bitrate=
671.5kbits/s
[flv @ 0x7feb3b8c3c00] Failed to update header with correct filesize.
frame=  161 fps= 33 q=31.0 Lsize=    1617kB time=00:01:05.46 bitrate=
202.3kbits/s
video:551kB audio:1023kB subtitle:0 global headers:0kB muxing overhead
2.667387%


Thank you for your help.

Hugo


More information about the ffmpeg-user mailing list