Open jitsunen opened 5 years ago
hello, I have the same problem as you. Have you solved it。
@leolwg , no I haven't solved it yet. I have two options right now:
a. Do a file sync between where nginx is writing to and a different folder from where nginx can serve HLS. The sync will be append only for existing files rather than create/delete the file. (Assuming nginx is creating/deleting the m3u8 files which leads to intermittent 404, I need to verify this) b. Use some alternative RTMP solution - ant media server.
I got some inotify events from my OS:
/hls/ CREATE stream2.m3u8.bak /hls/ MOVED_FROM stream2.m3u8.bak /hls/ MOVED_TO stream2.m3u8 /hls/ CREATE stream2-10839.ts /hls/ CREATE stream2.m3u8.bak /hls/ MOVED_FROM stream2.m3u8.bak /hls/ MOVED_TO stream2.m3u8 /hls/ CREATE stream2-10840.ts /hls/ CREATE stream2.m3u8.bak /hls/ MOVED_FROM stream2.m3u8.bak /hls/ MOVED_TO stream2.m3u8
It looks like the m3u8 file is getting created quite frequently which might be causing the intermittent 404s.
Hello, This is my error message,[ [error] xxx#:xxx *open() "/tmp/hls/livexxxx.m3u8" failed (2: No such file or directory)...],There are some differences from your error message.My guess is that this is due to nginx multi-process,This means that multiple RTMP Stream switch between different nginx processes,and make .m3u8 file miss.
@leolwg , I did OS (ubuntu) upgrades, restarted the machine and the errors magically went away. I think the restart might have magically fixed the issue. Still a mystery.
@jitsunen Are you serious? Big brother?????
@leolwg , Yes I am serious, I know it sounds crazy, but I tested multiple times and seems to be fine.
@jitsunen Well, congratulations. I'm going to find my BUG。。。。。。。。
@leolwg , my 404s came back. I have researched different ideas, for now I am going to try out Ant Media Server Community Edition.
@jitsunen Do you have WChat????
Hello,
I keep getting intermittent errors for my hls stream when the browser tries to download the m3u8 file.
Below is my nginx config. Any help would be much appreciated. I have tried
hls_cleanup off
, but that did not help.Thanks much