-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HLS - Multiple Problems #671
Comments
I have been debugging all night, and I have found that once a HLS live stream is actually running, if I pause it, it resumes from the same place. And it seems like the problem with joining a stream that has been running for a few minutes starts occurring once the first few .ts files are "cleaned up". If the stream is up to chunk 500, but 1,2 and 3 are missing, it won't start the stream at all (like its looking for the first few) I have inspected the m3u8 file, and it seems to be accurate, with removing earlier chunks that have been deleted, but I can't see the option X-PLAYLIST-TYPE. Here is a sample:
|
I would mark this as resolved. I added the following to the /hls location in the nginx httpd server:
This allows me to join a stream mid-broadcast, because it always gives me the most recent m3u8 file. Then I changed my HLS config to the following, which reduced stream latency to 10-12 seconds (which is pretty good - and probably the best I will get) - I also has to force a keyframe every second to be able to achieve such small HLS fragments:
I hope this helps other people stuck in this situation. |
Note: this config has not solved the stream resuming from the same place if paused, instead of jumping forwards to the current "live" position. I think I can live with what I have so far though. |
Need to update both the settings of encoder and media server, see HLS low latency settings |
I am having a few problems with HLS streaming (live stream, not VOD style).
Config:
FFmpeg command:
The text was updated successfully, but these errors were encountered: