HLS live broadcast via ffmpeg, How to get a client to start playing from the very beginning? From the 1st segment

Is there a way, perhaps through the option or the ffmpeg flag, to force the client player to always start the playlist from the very beginning, when streaming in real time, and not in real time in the middle stream?

Say that the user came to 1mm after the start of the stream, instead of starting to look at 1 million, the player will start at the beginning of the video in such a minute.

Here is my ffmpeg command:

ffmpeg -f "screen capture" -s 1280x720 -r 30 -i :0.0+nomouse -f alsa -ac 2 -i pulse -async 30 -vcodec libx264 -pix_fmt yuv420p -acodec libfdk_aac -ar 44100 -b:a 64k -threads 0 -s 640x360 -f hls -g 1 -hls_time 1 -hls_list_size 1 -hls_allow_cache 0 /hls/#{@stream_name}/index.m3u8

Thank!

+4
source share
1 answer

-hls_list_size 0, . 0 , hls_list_size.

: -hls_time 1 . Apple 10 , .

+2

All Articles