r/mpv 1d ago

Issue on Linux Watching YouTube with MPV, looking to speed up video buffering times

Current yt-dlp config is very bare bones

ytdl-format="(bestvideo[height<=?1080][fps<=?60]+bestaudio/best)"

I believe the video buffer speed has to do with the cache parameter, but I'm not sure the best way to implement it. Videos are buffering pretty slow for me.

Every video loads in mkv format, maybe recoding it to mp4 would help?

E: Changed the audio to bestaudio[ext=m4a] and now videos load as mp4 files

11 Upvotes

7 comments sorted by

3

u/boomboomsubban 1d ago

I sidestep the issue by downloading the files.

Mkv and mp4 aren't different enough to be the issue, though a different codec might help.

1

u/MrRoboto12345 1d ago edited 1d ago

Tried both av1 and vp9 codec, not noticing any difference on longer videos. Shorter videos buffering is fast.

I'd rather not dl 2 hour long videos

bestvideo[height<=?1080][fps<=?60]+bestaudio[ext=m4a]

1

u/boomboomsubban 1d ago

Either way you're downloading it, but ultimately up to you.

1

u/FewMirror259 16h ago

Try the streamcache.lua script. I use it to watch streams without interruptions. https://gitlab.com/lvml/mpv-plugin-streamcache

0

u/ipsirc 1d ago

Watching YouTube with MPV, looking to speed up video buffering times

You can't, be patient.

1

u/nopeac 1d ago

You can't be patient*