[FFmpeg-user] "Buffer queue overflow, dropping" when using concat
Octavio Alvarez
octalff at alvarezp.org
Thu May 17 05:36:04 EEST 2018
Hi, everybody!
I am getting a huge amount of "Buffer queue overflow, dropping." when
using concat. This is my ffmpeg call:
ffmpeg -y \
-i camera.mts \
\
-f lavfi -i
'color=c=red:duration=675.8339800513014:s=1920x1080:r=30000/1001' \
\
-filter_complex
'[0:a]adelay=675833.9800513014|675833.9800513014[audio_out]' -map
'[audio_out]' -ss 670 -t 10 track-camera-audio.flac \
\
-filter_complex '[1]null[p];[p][0:v]concat=n=2:v=1[video_out]' -map
'[video_out]' -ss 670 -t 10 track-camera-video.mkv
If I remove the line for the audio file (From -filter_complex to output
file) then video file gets created just fine. I get a lot of "Past
duration [N] too large" but the video track gets created correctly
without Buffer queue overflow messages.
Same if I remove the output line (the one for the video file, from the
-filter_complex to the output file). The audio file gets created just fine.
This is the full output. After a while I decide to Ctrl+C and the
track-camera-video.mkv file is less than 1 KB and the
track-camera-audio.flac is 8KB, so it looks like it did nothing.
[Wed May 16 21:28:11 -0500 -- alvarezp at laptop:~/handson/debug]
$ ffmpeg -y -i camera.mts -f lavfi -i
'color=c=red:duration=675.8339800513014:s=1920x1080:r=30000/1001'
-filter_complex
'[0:a]adelay=675833.9800513014|675833.9800513014[audio_out]' -map
'[audio_out]' -ss 670 -t 15 track-camera-audio.flac -filter_complex
'[1]null[p];[p][0:v]concat=n=2:v=1[video_out]' -map '[video_out]' -ss
670 -t 15 track-camera-video.mkv
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Debian 7.3.0-16)
configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg
--disable-mips32r2 --disable-mips32r6 --disable-mips64r6
--disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-msa
--disable-libopencv --disable-podpages --disable-stripping
--enable-avfilter --enable-avresample --enable-gcrypt --enable-gnutls
--enable-gpl --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libfdk-aac
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libilbc --enable-libkvazaar
--enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtesseract
--enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid
--enable-libzvbi --enable-nonfree --enable-opengl --enable-postproc
--enable-pthreads --enable-shared --enable-version3 --enable-libwebp
--incdir=/usr/include/x86_64-linux-gnu
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened
--enable-frei0r --enable-chromaprint --enable-libx264
--enable-libiec61883 --enable-libdc1394 --enable-vaapi --disable-opencl
--enable-libmfx --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, mpegts, from 'camera.mts':
Duration: 01:02:22.75, start: 1.433367, bitrate: 15646 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr,
90k tbn, 59.94 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
stereo, fltp, 384 kb/s
Input #1, lavfi, from
'color=c=red:duration=675.8339800513014:s=1920x1080:r=30000/1001':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080
[SAR 1:1 DAR 16:9], 29.97 tbr, 29.97 tbn, 29.97 tbc
Stream mapping:
Stream #0:0 (h264) -> concat:in1:v0 (graph 1)
Stream #0:1 (ac3) -> adelay (graph 0)
Stream #1:0 (rawvideo) -> null (graph 1)
adelay (graph 0) -> Stream #0:0 (flac)
concat (graph 1) -> Stream #1:0 (libx264)
Press [q] to stop, [?] for help
[flac @ 0x5620ad6cbcc0] encoding as 24 bits-per-sample
Output #0, flac, to 'track-camera-audio.flac':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Audio: flac, 48000 Hz, stereo, s32 (24 bit), 128 kb/s
Metadata:
encoder : Lavc58.18.100 flac
[libx264 @ 0x5620ad667980] using SAR=1/1
[libx264 @ 0x5620ad667980] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
[libx264 @ 0x5620ad667980] profile High, level 4.0
[libx264 @ 0x5620ad667980] 264 - core 155 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2018 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #1, matroska, to 'track-camera-video.mkv':
Metadata:
encoder : Lavf58.12.100
Stream #1:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 1k tbn, 29.97 tbc
(default)
Metadata:
encoder : Lavc58.18.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 7 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 38 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 47 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 46 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 45 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 47 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 47 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 47 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 47 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 48 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 49 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 49 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 51 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 49 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 51 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 49 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 51 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 49 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 47 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 49 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 48 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 51 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 50 times
[Parsed_concat_1 @ 0x5620adb2f640] Buffer queue overflow, dropping.N/A
speed= 0x
Last message repeated 49 times
Thank you,
Octavio.
More information about the ffmpeg-user
mailing list