arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.39k stars 3.51k forks source link

Delete m3u8 !! #1337

Open alinasrin opened 5 years ago

alinasrin commented 5 years ago

Hi I have an problem with hls ! configure rtmp: allow play all; live on; hls on; hls_path /hls/live; hls_fragment 1s; hls_playlist_length 2s; hls_fragment_naming system; This is my configuration. With this setting, the m3u8 file is deleted a few times. This will cause the video to be confused. Does anyone have a solution? Thanks

hamwong commented 5 years ago

I think hls_playlist_length 2s is too short, 30-60s make more reasonable, I think fragment 1s is also too short, even your GOP have set less then 1 sec, I use 3 instead

chongchuanbing commented 3 years ago

hls_cleanup off;