-
Notifications
You must be signed in to change notification settings - Fork 5
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
Stream ends at the minute mark #7
Comments
So I added some debug to dump the pls that gets served up when the HLS player tries to refresh the playlist and here are the last few refreshes before playback stops and it no longer refreshes the playlist. It looks like it has one very short segment that rotates out and then it jumps from seq 30 to 32 and then Shinobi (and VLS) give up and stop refreshing. iOS seems unaffected by this though.
|
Problem solved! My code is a big mess right now but I will clone a new copy of your repo and then do a proper fix and submit a pull request. In a nutshell, if the last segment of the minute is less than 2 secs it breaks the stream. To fix this you simply check the duration of the previous segment and if it was less than expected then you inset the "#EXT-X-DISCONTINUITY" tag just before inserting the next segment. So for example you would have a playlist that looks like this:
I also got audio working by adding -c:a aac to the ffmpeg command line. I made a few other command line changes but now that I found the real fix I'm not sure any of them are actually needed. |
With my iPhone the stream makes it past the minute mark but with VLC on my desktop it ends at the minute mark. I added the camera in Shinobi but when I view it in the monitor it also ends at the minute mark and then I have to hit reconnect to get another minute. What am I missing here?
The text was updated successfully, but these errors were encountered: