Opened 15 months ago

Last modified 15 months ago

#5987 new defect

ffmpeg freezes while converting live stream to hls

Reported by: ballot Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: hls h264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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?

Change History (2)

comment:1 Changed 15 months ago by ballot

additional info , os : win server 2012 x64,cpu : xeon e5 2670 x2

comment:2 Changed 15 months ago by cehoyos

  • Component changed from ffmpeg to undetermined
  • Keywords live stream removed
  • Priority changed from important to normal

To make this a valid ticket, please provide the command line you tested together with the complete, uncut console output.
Is x264 encoding required to reproduce the issue or does it also happen if you use a native encoder (mpegvideo)?
Is network input required to reproduce the issue or is it also reproducible with -f lavfi -i testsrc?

Note: See TracTickets for help on using tickets.