[FFmpeg-user] Too many packets buffered for output stream 0:0

Nick Bright nick.bright at valnet.net
Fri Jun 22 21:04:05 EEST 2018


I'm attempting to use ffmpeg to stream from an IP Video Camera to 
YouTube Live, using ffmpeg version N-46347-g649d7ca47-static on CentOS 7 
with x264-0.148-11.20160614gita5e06b9.el7.x86_64.

So far, all of my searches regarding this error have resulted in a 
suggested work around of -max_muxing_queue_size, but I have tried many 
size parameters and the error persists.

My command is:

VBR="1000k"                                    # Bitrate de la vidéo en sortie
FPS="30"                                       # FPS de la vidéo en sortie
QUAL="medium"                                  # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"  # URL de base RTMP youtube

SOURCE="rtsp://XXXXXXXXXXXXX/videoMain"              # Source UDP (voir les annonces SAP)
KEY="XXXXXXXXX"
ffmpeg \
     -i "$SOURCE" -deinterlace \
     -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \
     -acodec libmp3lame -ar 8000 -threads 6 -crf 23 -b:a 128k -bufsize 512k \
     -max_muxing_queue_size 2147483647 \
-f flv "$YOUTUBE_URL/$KEY"

I've attached the full output of the command when attempting to run the 
stream.

-- 
-----------------------------------------------
-  Nick Bright                                -
-  Vice President of Technology               -
-  Valnet -=- We Connect You -=-              -
-  Tel 888-332-1616 x 315 / Fax 620-331-0789  -
-  Web http://www.valnet.net/                 -
-----------------------------------------------
- Are your files safe?                        -
- Valnet Vault - Secure Cloud Backup          -
- More information & 30 day free trial at     -
- http://www.valnet.net/services/valnet-vault -
-----------------------------------------------

-------------- next part --------------
ffmpeg version N-46347-g649d7ca47-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 20.103 / 58. 20.103
  libavformat    58. 17.100 / 58. 17.100
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[rtsp @ 0x5804d80] UDP timeout, retrying with TCP
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://XXXXXXXXXXXXX/videoMain':
  Metadata:
    title           : IP Camera Video
    comment         : videoMain
  Duration: N/A, start: 0.044878, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 90k tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (pcm_mulaw (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[libx264 @ 0x58635c0] VBV bufsize set but maxrate unspecified, ignored
[libx264 @ 0x58635c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x58635c0] profile High, level 3.1
[libx264 @ 0x58635c0] 264 - core 155 r2901 7d0ff22 - 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=60 keyint_min=6 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
Too many packets buffered for output stream 0:0.577014:32:22.77 bitrate=  -0.0kbits/s dup=0 drop=4 speed=N/A    
[libx264 @ 0x58635c0] frame I:1     Avg QP:18.82  size:122122
[libx264 @ 0x58635c0] frame P:2     Avg QP:21.45  size:  5356
[libx264 @ 0x58635c0] frame B:6     Avg QP:30.13  size:  1175
[libx264 @ 0x58635c0] consecutive B-frames: 11.1%  0.0%  0.0% 88.9%
[libx264 @ 0x58635c0] mb I  I16..4:  6.1% 24.4% 69.4%
[libx264 @ 0x58635c0] mb P  I16..4:  0.1%  1.2%  0.6%  P16..4: 17.7%  3.0%  1.3%  0.0%  0.0%    skip:76.1%
[libx264 @ 0x58635c0] mb B  I16..4:  0.0%  0.0%  0.1%  B16..8: 12.5%  0.7%  0.2%  direct: 0.2%  skip:86.3%  L0:36.0% L1:61.8% BI: 2.2%
[libx264 @ 0x58635c0] 8x8 transform intra:25.9% inter:43.6%
[libx264 @ 0x58635c0] coded y,uvDC,uvAC intra: 85.0% 47.7% 24.0% inter: 2.1% 1.2% 0.0%
[libx264 @ 0x58635c0] i16 v,h,dc,p: 13% 19% 27% 41%
[libx264 @ 0x58635c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 35% 16%  3%  4%  2% 11%  3%  6%
[libx264 @ 0x58635c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 31%  9%  6%  5%  4%  8%  5%  7%
[libx264 @ 0x58635c0] i8c dc,h,v,p: 47% 25% 19%  9%
[libx264 @ 0x58635c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x58635c0] ref P L0: 89.4%  2.5%  7.4%  0.7%
[libx264 @ 0x58635c0] ref B L0: 91.5%  8.1%  0.4%
[libx264 @ 0x58635c0] ref B L1: 93.9%  6.1%
[libx264 @ 0x58635c0] kb/s:3052.01
Conversion failed!


More information about the ffmpeg-user mailing list