-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Buffer next videos in the playlist #6437
Comments
It's almost possible, but needs a bit of massaging. mpv can already pre-buffer videos from a playlist, even ones from a remote source, since e277fad. The problem is that youtube videos are not real URLs until they're processed by the With a bit of refactoring, this could be made to where |
Oh, nice. It would be great if it could be made to work with youtube/ytdl URLs! |
I have a working prototype if anyone would like to try: https://gist.github.com/bitingsock/f9a87ea158035d4a36899b559d611228 |
So it looks like when the demuxer reaches eof it checks for prefetch and the url has to be resolved at that time. Can the prefetch code be recalled after this point to try again? |
@bitingsock I've tried to get it to work by fiddling with line 6 value but can't get it doesn't buffer before the next video. Don't know if I'm doing anything wrong. Maybe I will try on another machine (though the script seems to be windows only..can it be made to work on nix?) |
I think if you remove ".exe" from line 2 it should work on *nix. Keep in mind, the active cache shown in mpv does not include the the prefetch buffer. I had to monitor network traffic in order to verify. |
I've discovered that a lot of usefulness of my script doesn't actually work :( |
At least for youtube, we can get internal audio urls by |
This is my
|
I would like to load a Youtube playlist and buffer them before they start playing. For example if I load a playlist with 5 videos and I'm still on the first video which has fully buffered I would then like it for mpv to start buffering video 2 then video 3 etc. so I don't have to wait for it to download only once start to play video 2. Is it currently possible to do this? If not, is it possible to add a way to do this?
The text was updated successfully, but these errors were encountered: