[FFmpeg-trac] #6218(ffmpeg:new): FFMpeg RTSP to .m3u8 conversion

FFmpeg trac at avcodec.org
Sat Mar 4 16:11:36 EET 2017


#6218: FFMpeg RTSP to .m3u8 conversion
-------------------------------------+-------------------------------------
             Reporter:  ankit.gupta  |                     Type:  defect
               Status:  new          |                 Priority:  critical
            Component:  ffmpeg       |                  Version:
             Keywords:               |  unspecified
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 Using FFMpeg to convert RTSP to .m3u8 using below command

 ffmpeg -i rtsp://root:kastle@192.168.17.153/axis-media/media.amp -r 100
 -crf 25 -preset faster -maxrate 500k -bufsize 1500k -c:v libx264 -hls_time
 4 -hls_list_size 2 -hls_wrap 2 -start_number 1 -tsp_transport tcp -y
 Z:/playlist.m3u8

 For one of the camera in same network this command works well. For another
 camera there is frequent error with message
 "max delay reached, need to consume packet
 RTP missed 10 packets"

 Below is the console output, that I cancelled in between

 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 24 packets
 [h264 @ 000000000039cae0] error while decoding MB 35 27, bytestream -40
 [h264 @ 000000000039cae0] concealing 590 DC, 590 AC, 590 MV errors in I
 frame
 Input #0, rtsp, from 'rtsp://root:kastle@192.168.17.153/axis-
 media/media.amp':
   Metadata:
     title           : Session streamed with GStreamer
     comment         : rtsp-server
   Duration: N/A, start: 0.100133, bitrate: N/A
     Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive),
 1024x576
 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc
 No pixel format specified, yuvj420p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 000000000055efc0] using SAR=1/1
 [libx264 @ 000000000055efc0] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2
 [libx264 @ 000000000055efc0] profile High, level 4.0
 Output #0, hls, to 'Z:/playlist.m3u8':
   Metadata:
     title           : Session streamed with GStreamer
     comment         : rtsp-server
     encoder         : Lavf57.56.100
     Stream #0:0: Video: h264 (libx264), yuvj420p(pc), 1024x576 [SAR 1:1
 DAR 16:9
 ], q=-1--1, 100 fps, 90k tbn, 100 tbc
     Metadata:
       encoder         : Lavc57.64.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 500000/0/0 buffer size: 1500000 vbv_delay:
 -1
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 [h264 @ 00000000028f4240] error while decoding MB 35 27, bytestream -40
 [h264 @ 00000000028f4240] concealing 590 DC, 590 AC, 590 MV errors in I
 frame
 frame=   38 fps=0.0 q=35.0 size=N/A time=00:00:00.14 bitrate=N/A dup=25
 drop=0 s
 frame=   71 fps= 68 q=35.0 size=N/A time=00:00:00.47 bitrate=N/A dup=48
 drop=0 s
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 111 packets
 [h264 @ 00000000028f4240] error while decoding MB 31 28, bytestream -7
 [h264 @ 00000000028f4240] concealing 530 DC, 530 AC, 530 MV errors in I
 frame
 frame=  188 fps= 67 q=35.0 size=N/A time=00:00:01.64 bitrate=N/A dup=161
 drop=0
 frame=  225 fps= 68 q=35.0 size=N/A time=00:00:02.01 bitrate=N/A dup=187
 drop=0
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 122 packets
 [h264 @ 00000000028f4240] error while decoding MB 41 26, bytestream -15
 [h264 @ 00000000028f4240] concealing 648 DC, 648 AC, 648 MV errors in I
 frame
 frame=  248 fps= 64 q=35.0 size=N/A time=00:00:02.24 bitrate=N/A dup=203
 drop=0
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 1 packets
 frame=  388 fps= 50 q=35.0 size=N/A time=00:00:03.64 bitrate=N/A dup=340
 drop=0
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 1 packets
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 1 packets
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 1 packets
 frame=  411 fps= 49 q=35.0 size=N/A time=00:00:03.87 bitrate=N/A dup=358
 drop=0
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 66 packets
 [h264 @ 00000000028f4240] error while decoding MB 12 1, bytestream -27
 [h264 @ 00000000028f4240] concealing 2277 DC, 2277 AC, 2277 MV errors in I
 frame

 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 1 packets
 frame=  445 fps= 48 q=35.0 size=N/A time=00:00:04.21 bitrate=N/A dup=387
 drop=0
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 4 packets
 frame=  472 fps= 47 q=35.0 size=N/A time=00:00:04.48 bitrate=N/A dup=410
 drop=0
 frame=  492 fps= 46 q=35.0 size=N/A time=00:00:04.68 bitrate=N/A dup=424
 drop=0
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 576 packets
 [h264 @ 00000000028f4240] error while decoding MB 54 26, bytestream -40
 [h264 @ 00000000028f4240] concealing 635 DC, 635 AC, 635 MV errors in I
 frame
 frame=  512 fps= 46 q=35.0 size=N/A time=00:00:04.88 bitrate=N/A dup=438
 drop=0
 [rtsp @ 00000000004e0480] max delay reached. need to consume packet
 [rtsp @ 00000000004e0480] RTP: missed 1 packets
 frame= 1109 fps= 44 q=35.0 Lsize=N/A time=00:00:11.06 bitrate=N/A dup=1034
 drop=
 0 speed=0.434x
 video:380kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing o
 verhead: unknown
 [libx264 @ 000000000055efc0] frame I:5     Avg QP:22.54  size: 63740
 [libx264 @ 000000000055efc0] frame P:279   Avg QP:31.95  size:   173
 [libx264 @ 000000000055efc0] frame B:825   Avg QP:41.15  size:    27
 [libx264 @ 000000000055efc0] consecutive B-frames:  0.7%  0.2%  0.3% 98.8%
 [libx264 @ 000000000055efc0] mb I  I16..4: 29.7% 33.1% 37.2%
 [libx264 @ 000000000055efc0] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:
 1.1%  0.1
 %  0.0%  0.0%  0.0%    skip:98.7%
 [libx264 @ 000000000055efc0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:
 0.0%  0.0
 %  0.0%  direct: 0.0%  skip:100.0%  L0:32.1% L1:67.9% BI: 0.0%
 [libx264 @ 000000000055efc0] 8x8 transform intra:33.4% inter:12.7%
 [libx264 @ 000000000055efc0] coded y,uvDC,uvAC intra: 59.4% 35.8% 10.1%
 inter: 0
 .1% 0.1% 0.0%
 [libx264 @ 000000000055efc0] i16 v,h,dc,p: 51% 12% 31%  6%
 [libx264 @ 000000000055efc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 53% 15% 16%
 2%  0%
  1%  1%  2% 11%
 [libx264 @ 000000000055efc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 10% 18%
 5%  2%
  4%  3%  3% 38%
 [libx264 @ 000000000055efc0] i8c dc,h,v,p: 61% 11% 27%  2%
 [libx264 @ 000000000055efc0] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 000000000055efc0] ref P L0: 83.4% 16.6%
 [libx264 @ 000000000055efc0] ref B L0: 92.4%  7.6%
 [libx264 @ 000000000055efc0] ref B L1: 95.6%  4.4%
 [libx264 @ 000000000055efc0] kb/s:281.02
 Exiting normally, received signal 2.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6218>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list