[FFmpeg-trac] #1604(undetermined:new): Rtmp streaming fps continually drops

FFmpeg trac at avcodec.org
Sat Jan 3 23:12:41 CET 2015


#1604: Rtmp streaming fps continually drops
-------------------------------------+-------------------------------------
             Reporter:  Pyriel0      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  rtmp         |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by junogoose):

 Just chiming in with my experiences. Not much to contribute, as the
 scenario is similar to the other posters. ... also wishing I had seen this
 post weeks ago (adding 'memory' to the search terms makes the difference).

 Using ffmpeg-20141217-git-3ba1050-win64-static on Win7 Pro. i5 quad core,
 8GB ram. Similar to what Pyriel0 noted 2 years ago, the issues only arise
 for bitrates > 1000k or so.

 Saving to local file works fine.


 {{{
 >ffmpeg -rtsp_transport tcp -i
 rtsp://viewuser:12345@neveu.myvnc.com/MediaInput/
 h264 -video_size 1280x720 -vcodec libx264 -pix_fmt + -framerate 12 -g 24
 -b:v 20
 48k -maxrate 3000k -bufsize 4096k -acodec libmp3lame -ac 1 -ar 44100 -ab
 32k -f
 flv rtmp://a.rtmp.youtube.com/live2/<stream key>


 ffmpeg version N-68500-g3ba1050 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Dec 17 2014 01:55:42 with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-av
 isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
 --enab
 le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-
 libcaca --
 enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
 --enable-lib
 modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-
 libopencore-amrw
 b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
 libschroedinge
 r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-
 libtwolame --en
 able-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      54. 15.100 / 54. 15.100
   libavcodec     56. 15.100 / 56. 15.100
   libavformat    56. 15.105 / 56. 15.105
   libavdevice    56.  3.100 / 56.  3.100
   libavfilter     5.  4.100 /  5.  4.100
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, rtsp, from
 'rtsp://viewuser:12345@neveu.myvnc.com/MediaInput/h264':
   Metadata:
     title           : Media Presentation
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: h264 (High), yuvj420p(pc), 1280x720 [SAR 1:1 DAR
 16:9],
 14.99 fps, 30 tbr, 90k tbn, 29.97 tbc
     Stream #0:1: Audio: adpcm_g726, 8000 Hz, mono, s16, 32 kb/s
 No pixel format specified, yuvj420p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 00000000053d0b40] using SAR=1/1
 [libx264 @ 00000000053d0b40] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2
 AVX
 [libx264 @ 00000000053d0b40] profile High, level 3.1
 [libx264 @ 00000000053d0b40] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4
 AVC cod
 ec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
 cabac=1 r
 ef=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_pski
 p=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0
 nr=0 deci
 mate=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=24
 keyint_min=2
 scenecut=40 intra_refresh=0 rc_lookahead=24 rc=abr mbtree=1 bitrate=2048
 ratetol
 =1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3000
 vbv_bufsize=4096 nal_
 hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
 Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/<stream key>
 ':
   Metadata:
     title           : Media Presentation
     encoder         : Lavf56.15.105
     Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007),
 yuvj420p(pc), 12
 80x720 [SAR 1:1 DAR 16:9], q=-1--1, 2048 kb/s, 14.99 fps, 1k tbn, 14.99
 tbc
     Metadata:
       encoder         : Lavc56.15.100 libx264
     Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100
 Hz, mono
 , s16p, 32 kb/s
     Metadata:
       encoder         : Lavc56.15.100 libmp3lame
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:1 (adpcm_g726 (g726) -> mp3 (libmp3lame))
 Press [q] to stop, [?] for help
 frame=   33 fps=0.0 q=0.0 size=       0kB time=00:00:03.34 bitrate=
 1.0kbits/s
 frame=   35 fps= 31 q=30.0 size=      99kB time=00:00:03.47 bitrate=
 232.7kbits/
 frame=   47 fps= 27 q=29.0 size=     194kB time=00:00:04.46 bitrate=
 356.4kbits/
 frame=   53 fps= 22 q=24.0 size=     278kB time=00:00:04.96 bitrate=
 458.7kbits/
 frame=   59 fps= 17 q=22.0 size=     475kB time=00:00:05.48 bitrate=
 709.8kbits/
 frame=   64 fps= 16 q=26.0 size=     573kB time=00:00:05.90 bitrate=
 795.4kbits/
 frame=   68 fps= 15 q=27.0 size=     686kB time=00:00:06.23 bitrate=
 901.8kbits/
 frame=   75 fps= 15 q=25.0 size=     792kB time=00:00:06.98 bitrate=
 929.2kbits/
 frame=   80 fps= 14 q=26.0 size=     926kB time=00:00:07.40
 bitrate=1024.7kbits/
 frame=   83 fps= 12 q=24.0 size=    1086kB time=00:00:07.67
 bitrate=1159.5kbits/
 frame=   88 fps= 12 q=27.0 size=    1185kB time=00:00:08.21
 bitrate=1182.6kbits/
 frame=   92 fps= 12 q=26.0 size=    1294kB time=00:00:08.55
 bitrate=1239.6kbits/
 [h264 @ 00000000059c4360] Cannot use next picture in error concealment
 [h264 @ 00000000059c4360] concealing 1362 DC, 1362 AC, 1362 MV errors in P
 frame

 [h264 @ 00000000056c33c0] negative number of zero coeffs at 44 35
 [h264 @ 00000000056c33c0] error while decoding MB 44 35
 [h264 @ 00000000056c33c0] concealing 805 DC, 805 AC, 805 MV errors in I
 frame
 frame=   99 fps= 12 q=26.0 size=    1396kB time=00:00:09.98
 bitrate=1145.2kbits/
 frame=  103 fps= 12 q=27.0 size=    1511kB time=00:00:10.46
 bitrate=1182.8kbits/
 frame=  107 fps= 11 q=27.0 size=    1679kB time=00:00:11.21
 bitrate=1226.3kbits/
 frame=  111 fps= 11 q=28.0 size=    1779kB time=00:00:11.54
 bitrate=1261.8kbits/
 [h264 @ 00000000056c33c0] Cannot use next picture in error concealment
 [h264 @ 00000000056c33c0] concealing 1358 DC, 1358 AC, 1358 MV errors in P
 frame

 frame=  118 fps= 11 q=27.0 size=    1884kB time=00:00:12.13
 bitrate=1272.5kbits/
 [h264 @ 00000000056c0c80] Cannot use next picture in error concealment
 [h264 @ 00000000056c0c80] concealing 1461 DC, 1461 AC, 1461 MV errors in P
 frame

 frame=  123 fps= 11 q=26.0 size=    1985kB time=00:00:12.45
 bitrate=1305.4kbits/
 [h264 @ 00000000056c3b00] out of range intra chroma pred mode at 10 4
 [h264 @ 00000000056c3b00] error while decoding MB 10 4
 [h264 @ 00000000056c3b00] concealing 3319 DC, 3319 AC, 3319 MV errors in I
 frame

 frame=  131 fps= 10 q=25.0 size=    2183kB time=00:00:13.81
 bitrate=1294.6kbits/
 frame=  134 fps= 10 q=19.0 size=    2283kB time=00:00:14.07
 bitrate=1328.5kbits/
 frame=  136 fps= 10 q=23.0 size=    2376kB time=00:00:14.25
 bitrate=1365.4kbits/
 frame=  139 fps=9.9 q=24.0 size=    2478kB time=00:00:14.52
 bitrate=1397.6kbits/
 frame=  141 fps=9.6 q=23.0 size=    2585kB time=00:00:14.67
 bitrate=1442.8kbits/
 frame=  146 fps=9.6 q=24.0 size=    2691kB time=00:00:16.04
 bitrate=1373.8kbits/
 frame=  152 fps=9.6 q=25.0 size=    2820kB time=00:00:16.88
 bitrate=1367.6kbits/
 [h264 @ 0000000005b85000] Cannot use next picture in error concealment
 [h264 @ 0000000005b85000] concealing 1447 DC, 1447 AC, 1447 MV errors in P
 frame

 frame=  155 fps=9.2 q=25.0 size=    3001kB time=00:00:17.83
 bitrate=1378.2kbits/
 frame=  160 fps=9.2 q=22.0 size=    3085kB time=00:00:19.98
 bitrate=1264.2kbits/
 frame=  167 fps=9.3 q=25.0 size=    3190kB time=00:00:20.54
 bitrate=1271.6kbits/
 frame=  170 fps=8.9 q=24.0 size=    3402kB time=00:00:20.79
 bitrate=1340.0kbits/
 frame=  175 fps=8.9 q=22.0 size=    3542kB time=00:00:21.19
 bitrate=1369.2kbits/
 frame=  180 fps=8.9 q=19.0 size=    3643kB time=00:00:21.63
 bitrate=1379.6kbits/
 frame=  182 fps=8.7 q=17.0 size=    3779kB time=00:00:21.82
 bitrate=1418.4kbits/
 [h264 @ 00000000059c4360] concealing 2710 DC, 2710 AC, 2710 MV errors in I
 frame

 frame=  186 fps=8.5 q=16.0 size=    3954kB time=00:00:22.22
 bitrate=1457.0kbits/
 [h264 @ 00000000059c4360] Cannot use next picture in error concealment
 [h264 @ 00000000059c4360] concealing 1511 DC, 1511 AC, 1511 MV errors in P
 frame

 frame=  190 fps=8.2 q=22.0 size=    4172kB time=00:00:22.53
 bitrate=1517.0kbits/
 frame=  192 fps=8.1 q=22.0 size=    4271kB time=00:00:22.71
 bitrate=1540.2kbits/
 frame=  194 fps=7.9 q=22.0 size=    4480kB time=00:00:22.87
 bitrate=1604.6kbits/
 [h264 @ 0000000005b85000] Cannot use next picture in error concealment
 [h264 @ 0000000005b85000] concealing 1659 DC, 1659 AC, 1659 MV errors in P
 frame

 frame=  196 fps=7.7 q=23.0 size=    4604kB time=00:00:23.01
 bitrate=1639.1kbits/
 frame=  200 fps=7.7 q=23.0 size=    4725kB time=00:00:24.22
 bitrate=1598.1kbits/
 frame=  206 fps=7.7 q=23.0 size=    4834kB time=00:00:27.09
 bitrate=1461.8kbits/
 frame=  210 fps=7.7 q=24.0 size=    4941kB time=00:00:29.11
 bitrate=1390.3kbits/
 frame=  215 fps=7.7 q=24.0 size=    5060kB time=00:00:29.64
 bitrate=1398.5kbits/
 frame=  218 fps=7.6 q=20.0 size=    5224kB time=00:00:29.86
 bitrate=1433.0kbits/
 frame=  222 fps=7.6 q=24.0 size=    5327kB time=00:00:30.20
 bitrate=1444.7kbits/
 frame=  228 fps=7.7 q=20.0 size=    5441kB time=00:00:30.77
 bitrate=1448.1kbits/
 frame=  232 fps=7.4 q=21.0 size=    5708kB time=00:00:31.10
 bitrate=1503.2kbits/
 frame=  235 fps=7.4 q=21.0 size=    5845kB time=00:00:31.81
 bitrate=1505.0kbits/
 [h264 @ 00000000056c33c0] negative number of zero coeffs at 5 37
 [h264 @ 00000000056c33c0] error while decoding MB 5 37
 [h264 @ 00000000056c33c0] concealing 684 DC, 684 AC, 684 MV errors in I
 frame
 frame=  240 fps=7.4 q=17.0 size=    5972kB time=00:00:32.89
 bitrate=1487.5kbits/
 frame=  242 fps=7.2 q=19.0 size=    6181kB time=00:00:33.05
 bitrate=1531.9kbits/
 [h264 @ 00000000056c0c80] Cannot use next picture in error concealment
 [h264 @ 00000000056c0c80] concealing 967 DC, 967 AC, 967 MV errors in P
 frame
 frame=  244 fps=7.0 q=14.0 size=    6363kB time=00:00:33.17
 bitrate=1571.3kbits/
 frame=  246 fps=7.0 q=20.0 size=    6462kB time=00:00:33.34
 bitrate=1587.7kbits/
 frame=  249 fps=7.0 q=21.0 size=    6560kB time=00:00:35.52
 bitrate=1512.6kbits/
 frame=  253 fps=7.0 q=21.0 size=    6657kB time=00:00:35.86
 bitrate=1520.4kbits/
 frame=  256 fps=6.8 q=18.0 size=    6928kB time=00:00:36.13
 bitrate=1570.5kbits/
 frame=  260 fps=6.8 q=20.0 size=    7037kB time=00:00:36.46
 bitrate=1580.9kbits/
 [h264 @ 0000000005b85000] concealing 2646 DC, 2646 AC, 2646 MV errors in I
 frame

 frame=  265 fps=6.8 q=15.0 size=    7148kB time=00:00:38.88
 bitrate=1505.8kbits/
 frame=  266 fps=6.8 q=19.0 size=    7250kB time=00:00:38.97
 bitrate=1523.9kbits/
 frame=  271 fps=6.8 q=16.0 size=    7379kB time=00:00:39.64
 bitrate=1524.6kbits/
 frame=  273 fps=6.7 q=18.0 size=    7537kB time=00:00:39.81
 bitrate=1550.8kbits/
 [h264 @ 00000000056c3b00] concealing 674 DC, 674 AC, 674 MV errors in I
 frame
 frame=  277 fps=6.6 q=17.0 size=    7776kB time=00:00:41.34
 bitrate=1540.7kbits/
 frame=  280 fps=6.4 q=18.0 size=    8030kB time=00:00:41.71
 bitrate=1577.0kbits/
 [h264 @ 00000000056c0c80] concealing 60 DC, 60 AC, 60 MV errors in I frame
 frame=  286 fps=6.5 q=21.0 size=    8137kB time=00:00:43.31
 bitrate=1539.2kbits/
 frame=  290 fps=6.4 q=21.0 size=    8375kB time=00:00:45.34
 bitrate=1513.0kbits/
 WriteN, RTMP send error 10054 (129 bytes)
 WriteN, RTMP send error 10053 (63 bytes)
 WriteN, RTMP send error 10038 (42 bytes)
 av_interleaved_write_frame(): Operation not permitted
 [flv @ 00000000053d00a0] Failed to update header with correct duration.
 [flv @ 00000000053d00a0] Failed to update header with correct filesize.
 frame=  292 fps=6.3 q=-1.0 Lsize=    8424kB time=00:00:46.79
 bitrate=1474.5kbits
 /s dup=0 drop=5
 video:8311kB audio:104kB subtitle:0kB other streams:0kB global headers:0kB
 muxin
 g overhead: 0.103250%
 [libx264 @ 00000000053d0b40] frame I:14    Avg QP:15.72  size:160659
 [libx264 @ 00000000053d0b40] frame P:158   Avg QP:18.42  size: 43366
 [libx264 @ 00000000053d0b40] frame B:120   Avg QP:25.83  size:  8177
 [libx264 @ 00000000053d0b40] consecutive B-frames: 33.2% 23.3% 38.0%  5.5%
 [libx264 @ 00000000053d0b40] mb I  I16..4:  5.2% 35.0% 59.9%
 [libx264 @ 00000000053d0b40] mb P  I16..4:  1.6%  1.9%  2.6%  P16..4:
 48.2% 13.6
 % 10.0%  0.0%  0.0%    skip:22.0%
 [libx264 @ 00000000053d0b40] mb B  I16..4:  0.1%  0.2%  0.1%  B16..8:
 35.3%  3.1
 %  1.3%  direct: 6.6%  skip:53.5%  L0:35.8% L1:59.5% BI: 4.7%
 [libx264 @ 00000000053d0b40] 8x8 transform intra:33.5% inter:19.9%
 [libx264 @ 00000000053d0b40] coded y,uvDC,uvAC intra: 86.3% 80.4% 61.6%
 inter: 3
 5.7% 21.9% 7.4%
 [libx264 @ 00000000053d0b40] i16 v,h,dc,p: 85%  4%  5%  6%
 [libx264 @ 00000000053d0b40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 21% 11%
 4%  7%
  7%  9%  7% 11%
 [libx264 @ 00000000053d0b40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 23% 11%
 5%  8%
  6% 10%  6% 10%
 [libx264 @ 00000000053d0b40] i8c dc,h,v,p: 31% 33% 30%  6%
 [libx264 @ 00000000053d0b40] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 00000000053d0b40] ref P L0: 76.6% 10.0%  8.6%  4.9%
 [libx264 @ 00000000053d0b40] ref B L0: 92.5%  7.3%  0.2%
 [libx264 @ 00000000053d0b40] ref B L1: 94.9%  5.1%
 [libx264 @ 00000000053d0b40] kb/s:1845.30
 Conversion failed!

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/1604#comment:23>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list