arut / nginx-rtmp-module

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

Some HLS options do not seem to work and other issues #682

Open maksbotan opened 9 years ago

maksbotan commented 9 years ago

Hi. Don't know if bug or just my misunderstanding, so posting here anyway :)

I've noticed that hls_fragment and hls_playlist_length do not have any effect, no matter what I set I have this in .m3u8 files:

#EXT-X-TARGETDURATION:48
#EXTINF:47.747,

As far as I understand, it means that rtmp module is using fragment length of 48s, which is strange. Moreover, I noticed, that rtmp module cleans out fragments while they are still in the playlist. As a result, Chrome on Android, for example, tries to download first fragment in playlist, gets 404 and refuses to continue. And one more issue: it seems that rtmp module creates .m3u8 file for stream only after writing first fragment for it (after stream is started), thus leading to a 48 second delay. Can this be worked around?

I'm using nginx-1.9.4 with nginx-rtmp-module-1.1.7.

nurwin commented 9 years ago

+1 I've some issue like that. have you see #671 issue? maybe it can help you.

winlinvip commented 1 year ago

Need to update both the settings of encoder and media server, see HLS low latency settings