mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Youtube 1080p and above.

Open spaghetti- opened this issue 13 years ago • 5 comments

At the moment mpv only supports 720p for youtube (maximum, even when I give it a 4K video). Is it hard to implement support for 1080p?

I took a look at the youtube module and _static_decrypt_signature(self, s, video_id, player_url, age_gate) from youtube-dl and there are some differences but it doesnt seem to make a difference.

I am decent at python and would attempt a fix but I'm not sure where to start.

spaghetti- avatar Nov 17 '13 11:11 spaghetti-

Youtube switched to its own DASH protocol, which is a reinvention of HLS, and which is not trivial to implement.

ghost avatar Nov 17 '13 12:11 ghost

"Kinda", as DASH is a MPEG standard.

http://en.m.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP

It likely will need support both in quvi and FFmpeg. That can take a while... Am 17.11.2013 13:19 schrieb "wm4" [email protected]:

Youtube switched to its own DASH protocol, which is a reinvention of HLS, and which is not trivial to implement.

— Reply to this email directly or view it on GitHubhttps://github.com/mpv-player/mpv/issues/343#issuecomment-28647518 .

divVerent avatar Nov 17 '13 12:11 divVerent

Thanks for replying even though I accidentally opened an issue here instead of over at chrippa/livestreamer

spaghetti- avatar Nov 17 '13 18:11 spaghetti-

I'm not sure if this is really the right way to do things, but you can easily just download the elementary streams and play them back at the same time. I already download the streams and throw them at an mp4box binary or ffmpeg in a few of my own projects.

marlencrabapple avatar Nov 21 '13 02:11 marlencrabapple

I'm not sure if this is really the right way to do things, but you can easily just download the elementary streams and play them back at the same time.

Hm, that seems to be right. I'm wondering whether mpv's timeline support could be used to merge the fragment into a single virtual timeline. But all in all, this messy stuff is probably best left to libavformat.

The unfortunate thing about livestreamer is that it (probably) doesn't support seeking?

ghost avatar Nov 21 '13 08:11 ghost