[FFmpeg-trac] #5987(ffmpeg:new): ffmpeg freezes while converting live stream to hls

FFmpeg trac at avcodec.org
Fri Dec 2 18:53:10 EET 2016


#5987: ffmpeg freezes while converting live stream to hls
-------------------------------------+-------------------------------------
             Reporter:  ballot       |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  ffmpeg       |                  Version:
             Keywords:  hls live     |  unspecified
  stream h264                        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Hi guys i am just trying to restream a live stream as hls
 but ffmpeg doesnt give an error doesnt crash does not exit process
 it just hangs,stucks,freezes whatever you call
 because of that my live stream stops and i have to restart it every 5-10
 minutes by my hand and not sure what is the reason

 here is my commandline

 {{{
 ffmpeg -loglevel debug -thread_queue_size 32768 -i "http://goo.gl/MOFvg5"
 -preset veryfast -f hls -hls_time 5 -hls_list_size 5 -hls_allow_cache 1
 -hls_flags delete_segments -segment_list_flags +live -hls_base_url
 "../ts/" -hls_segment_filename "C:\nginx\html\ts\stream-%%3d.ts" -y
 "C:\nginx\html\hls\stream.m3u8" > log.txt
 }}}

 i tried 32 bit , 64 bit , nightly builds, 3.2 version all are same

 here is example output log

 {{{
 Clipping frame in rate conversion by 0.140266
 [libx264 @ 000000000064dfc0] frame=3818 QP=20.23 NAL=2 Slice:B Poc:100
 I:128  P:663  SKIP:2795 size=
 2873 bytes
 [h264 @ 0000000002c07120] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0000000002c07120] nal_unit_type: 1, nal_ref_idc: 0
     Last message repeated 7 times
 Clipping frame in rate conversion by 0.140266
 [libx264 @ 000000000064dfc0] frame=3819 QP=21.74 NAL=0 Slice:B Poc:98
 I:98   P:359  SKIP:3134 size=
 1487 bytes
 [h264 @ 0000000002c04f60] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0000000002c04f60] nal_unit_type: 1, nal_ref_idc: 2
     Last message repeated 7 times
 Clipping frame in rate conversion by 0.140266
 [libx264 @ 000000000064dfc0] frame=3820 QP=22.39 NAL=0 Slice:B Poc:102
 I:24   P:387  SKIP:3180 size=
 1316 bytes
 [h264 @ 00000000027f5020] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 00000000027f5020] nal_unit_type: 1, nal_ref_idc: 2
     Last message repeated 7 times
 Clipping frame in rate conversion by 0.140266
 }}}
 this is the last log i receive

 when i dont use loglevel i receive something like this
 {{{
   Metadata:
     encoder         : Lavf57.52.100
     Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR
 16:9], q=-1--1, 30 fps, 90k t
 bn, 30 tbc (default)
     Metadata:
       encoder         : Lavc57.63.103 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
     Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s
     Metadata:
       encoder         : Lavc57.63.103 aac
 Stream mapping:
   Stream #0:0 (h264) -> overlay:main (graph 0)
   Stream #1:0 (png) -> overlay:overlay (graph 0)
   fps (graph 0) -> Stream #0:0 (libx264)
   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
 Press [q] to stop, [?] for help
 frame=22033 fps= 30 q=29.0 size=N/A time=00:12:14.84 bitrate=N/A dup=2
 drop=0 speed=1.01x
 }}}

 and it just stucks without giving error?

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


More information about the FFmpeg-trac mailing list