Skip to content
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

Videos longer than 5 hours cut off at that mark (HLS VOD playlist too large) #500

Open
Horsearms opened this issue Dec 5, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Horsearms
Copy link

At 2:30, the sound cuts out, video stops playing at around 2:31. Throws error code -5, seems to be a buffer issue.
1733418305370727989379030124102

@iBicha iBicha added the bug Something isn't working label Dec 5, 2024
@iBicha
Copy link
Owner

iBicha commented Dec 5, 2024

Thanks, what are the steps to reproduce the issue? (let it run for two hours? skip to two hours? which videos? etc)

@Horsearms
Copy link
Author

Horsearms commented Dec 5, 2024 via email

@iBicha
Copy link
Owner

iBicha commented Dec 11, 2024

Thanks for confirming, it looks like Invidious (DASH) has no issues with very long videos, but playlet backend (HLS) reports wrong length and stops working when the wrong length (about two and a half hour) is reached.

@iBicha
Copy link
Owner

iBicha commented Dec 12, 2024

The good news is: I understand why this happens: for a very long video (say, 10 hours) the playlist file is very large. It is segmented into small chunks of about 6 seconds. Each chunk is its own video file, and its own url. This results in a file of 16k lines and close to 10 MB. Roku can't seem to handle that.
The bad news is: I don't think there's a possible workaround, unless Roku make a firmware update to raise this limitation. When I try to play the same HLS file in another player (say VLC) it plays fine.

The only way to fix this in the future is to switch to DASH for the playlet backend, which will take a while.

Right now, the only workaround is to use Invidious for really long videos. (I understand that most public instances struggle to play videos right now, but if you have your own private instance, long videos work fine)

@iBicha iBicha changed the title Videos longer than 2hr 30min cut off at that mark Videos longer than 2hr 30min cut off at that mark (HLS VOD playlist too large) Dec 12, 2024
@iBicha
Copy link
Owner

iBicha commented Dec 13, 2024

Update: I've found a way to improve things, which reduces the playlist size. After testing, an 11 hours video that was being detected as a 2h20m, is now detected as 4h57m. 357019d
The fix is in the Canary release, and will be part of the next release.

@Horsearms
Copy link
Author

Horsearms commented Dec 13, 2024 via email

@iBicha iBicha changed the title Videos longer than 2hr 30min cut off at that mark (HLS VOD playlist too large) Videos longer than 5 hours cut off at that mark (HLS VOD playlist too large) Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants