[FFmpeg-user] Buffer queue overflow, dropping gives still frame video

Casey Bateman casey.bateman at hudl.com
Thu Sep 25 17:28:07 CEST 2014


Hey,

I am working to create a few custom video effects using FFmpeg. My requirements are to do the following:

[list]
1. the output must be 480p 16:9 video
2. overlay the video with a watermark
3. freeze frame a portion of the video and overlay a circle
4. add slow motion in the form of playing the clip full speed, then the slow motion portion, then the remainder of the clip
[/list]

the issue that I am seeing is that when I run this command, I get the "Buffer queue overflow, dropping" warning. The end of the video results in a still frame because of this. I have pumped far more complex filters through ffmpeg without this sort of issue. Any help would be greatly appreciated.

Command:
[code]ffmpeg -i "c:/source/ffmpeg/bin/temp/input001.mp4" -i "c:/source/ffmpeg/bin/temp/asset_Watermark.png" -i "c:/source/ffmpeg/bin/temp/asset_SpotShadowspotShadow_51/sd_2_0_frame%03d.png" -i "c:/source/ffmpeg/bin/temp/asset_SpotShadowspotShadow_51/hd_2_0_frame%03d.png" -filter_complex " [0:v] trim=end=15.4105,setpts=PTS-STARTPTS [mp4693c33d]; [mp4693c33d] scale=w=852:h=480:flags=lanczos [mp2296aefd]; [mp2296aefd] setdar=dar=16/9,setsar=sar=1/1 [mp1ffc8d99]; [mp1ffc8d99] split=3 [mpbe17ee65] [mp2ba35989] [mp8219966b]; [mpbe17ee65] fade=t=out:st=15.2605:d=0.15:c=white [mp673e0920]; [mp2ba35989] trim=start=1.6015472:end=2.5934096,setpts=PTS-STARTPTS [mpd62298bd]; [mpd62298bd] fade=t=in:st=0:d=0.15:c=white [mpfce3a00e]; [mpfce3a00e] setpts=3.125*PTS [mp79165fb4]; [mp8219966b] trim=start=2.5934096:end=154105000,setpts=PTS-STARTPTS [mp35244b64]; [mp673e0920] [mp79165fb4] [mp35244b64] concat=n=3 [mp25137f05]; [mp25137f05] split=3 [mp36b7ddd5] [mp2b1ed53f] [mpec84d772]; [mp36b7ddd5] trim=end_frame=1,setpts=PTS-STARTPTS [mpff46e5b4]; [mp2b1ed53f] trim=start_frame=1:end_frame=2,setpts=PTS-STARTPTS [mpe0477e61]; [mpec84d772] trim=start_frame=2,setpts=PTS-STARTPTS [mp60fccf95]; [2:v] fps=30,crop=w=852:h=480:x=792:y=545,setdar=dar=16/9,setsar=sar=1/1 [mpf1f4798b]; [mpf1f4798b] split=2 [mpe710b846] [mp6288fef8]; [mpe710b846] [mpe0477e61] overlay [mp1b626797]; [mp1b626797] [mp6288fef8] overlay [mp2bff8279]; [mpff46e5b4] [mp2bff8279] [mp60fccf95] concat=n=3 [mpfc66ff94]; [mpfc66ff94] [1:v] overlay=x=25:y=405 [mp2e1057b6]" -r 30 -y -c:v libx264 -pix_fmt yuv420p -level 3 -profile:v baseline -b:v 1500k -bt 1500k -s 852x480 -an -map [mp2e1057b6] "c:/source/ffmpeg/bin/temp/out.mp4"[/code]

Console Log:
[code]ffmpeg version N-63716-g763e714 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun  2 2014 22:01:56 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      52. 89.100 / 52. 89.100
  libavcodec     55. 66.100 / 55. 66.100
  libavformat    55. 42.100 / 55. 42.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  5.100 /  4.  5.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c:/source/ffmpeg/bin/temp/input001.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.37.100
  Duration: 00:00:18.50, start: 0.000000, bitrate: 1102 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 852x480 [SAR 640:639 DAR 16:9], 1101 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
Input #1, image2, from 'c:/source/ffmpeg/bin/temp/asset_Watermark.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: png, rgba, 170x60, 25 tbr, 25 tbn, 25 tbc
Input #2, image2, from 'c:/source/ffmpeg/bin/temp/asset_SpotShadowspotShadow_51/sd_2_0_frame%03d.png':
  Duration: 00:00:01.08, start: 0.000000, bitrate: N/A
    Stream #2:0: Video: png, rgba, 2560x1440 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
Input #3, image2, from 'c:/source/ffmpeg/bin/temp/asset_SpotShadowspotShadow_51/hd_2_0_frame%03d.png':
  Duration: 00:00:01.08, start: 0.000000, bitrate: N/A
    Stream #3:0: Video: png, rgba, 2560x1440 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 046016e0] using SAR=1/1
[libx264 @ 046016e0] MB rate (48600) > level limit (40500)
[libx264 @ 046016e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 046016e0] profile Constrained Baseline, level 3.0
[libx264 @ 046016e0] 264 - core 142 r2431 ac76440 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 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=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'c:/source/ffmpeg/bin/temp/2237cedd-450b-4918-9345-4679eb4c38ee.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.42.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 852x480 [SAR 1:1 DAR 71:40], q=-1--1, 1500 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
      encoder         : Lavc55.66.100 libx264
Stream mapping:
  Stream #0:0 (h264) -> trim
  Stream #1:0 (png) -> overlay:overlay
  Stream #2:0 (png) -> fps
  overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
frame=   14 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
frame=   27 fps= 25 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
frame=   60 fps= 38 q=37.0 size=     153kB time=00:00:00.43 bitrate=2888.7kbits/s
frame=   95 fps= 46 q=30.0 size=     312kB time=00:00:01.60 bitrate=1598.2kbits/s
frame=  125 fps= 48 q=30.0 size=     495kB time=00:00:02.60 bitrate=1559.9kbits/s
frame=  154 fps= 49 q=29.0 size=     670kB time=00:00:03.56 bitrate=1538.9kbits/s
frame=  181 fps= 50 q=29.0 size=     815kB time=00:00:04.46 bitrate=1494.2kbits/s
frame=  207 fps= 50 q=29.0 size=     986kB time=00:00:05.33 bitrate=1514.2kbits/s
frame=  235 fps= 51 q=30.0 size=    1170kB time=00:00:06.26 bitrate=1529.7kbits/s
frame=  256 fps= 50 q=30.0 size=    1291kB time=00:00:06.96 bitrate=1517.8kbits/s
frame=  284 fps= 50 q=30.0 size=    1456kB time=00:00:07.90 bitrate=1510.2kbits/s
frame=  312 fps= 50 q=30.0 size=    1629kB time=00:00:08.83 bitrate=1511.1kbits/s
frame=  340 fps= 51 q=29.0 size=    1766kB time=00:00:09.76 bitrate=1481.0kbits/s
frame=  360 fps= 50 q=29.0 size=    1857kB time=00:00:10.43 bitrate=1458.3kbits/s
[Parsed_concat_13 @ 0461bea0] Buffer queue overflow, dropping.
    Last message repeated 21 times
frame=  387 fps= 50 q=28.0 size=    1993kB time=00:00:11.33 bitrate=1440.8kbits/s
[Parsed_concat_13 @ 0461bea0] Buffer queue overflow, dropping.
    Last message repeated 25 times
frame=  413 fps= 50 q=28.0 size=    2117kB time=00:00:12.20 bitrate=1421.3kbits/s
[Parsed_concat_13 @ 0461bea0] Buffer queue overflow, dropping.
    Last message repeated 26 times
frame=  440 fps= 50 q=28.0 size=    2269kB time=00:00:13.10 bitrate=1419.1kbits/s
[Parsed_concat_13 @ 0461bea0] Buffer queue overflow, dropping.
    Last message repeated 25 times
frame=  466 fps= 50 q=27.0 size=    2386kB time=00:00:13.96 bitrate=1399.5kbits/s
[Parsed_concat_13 @ 0461bea0] Buffer queue overflow, dropping.
    Last message repeated 25 times
frame=  492 fps= 50 q=27.0 size=    2537kB time=00:00:14.83 bitrate=1401.1kbits/s
[Parsed_concat_13 @ 0461bea0] Buffer queue overflow, dropping.
    Last message repeated 1 times
[output stream 0:0 @ 0461b5a0] 100 buffers queued in output stream 0:0, something may be wrong.
frame=  968 fps= 54 q=-1.0 Lsize=    5060kB time=00:00:32.26 bitrate=1284.6kbits/s dup=189 drop=0

video:5055kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.092148%
[libx264 @ 046016e0] frame I:6     Avg QP:18.76  size: 36622
[libx264 @ 046016e0] frame P:962   Avg QP:22.31  size:  5152
[libx264 @ 046016e0] mb I  I16..4: 21.6%  0.0% 78.4%
[libx264 @ 046016e0] mb P  I16..4:  1.3%  0.0%  3.3%  P16..4: 30.9%  8.5%  2.8%  0.0%  0.0%    skip:53.2%
[libx264 @ 046016e0] final ratefactor: 20.71
[libx264 @ 046016e0] coded y,uvDC,uvAC intra: 60.0% 75.1% 22.7% inter: 8.4% 14.7% 0.2%
[libx264 @ 046016e0] i16 v,h,dc,p: 23% 45% 19% 13%
[libx264 @ 046016e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 36% 16%  4%  6%  5%  7%  4%  7%
[libx264 @ 046016e0] i8c dc,h,v,p: 52% 31% 13%  4%
[libx264 @ 046016e0] ref P L0: 83.7%  9.8%  6.5%
[libx264 @ 046016e0] kb/s:1283.26
[/code]

Casey Bateman



More information about the ffmpeg-user mailing list