webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
741 stars 65 forks source link

www.youtube.com - see bug description #10669

Closed webcompat-bot closed 7 years ago

webcompat-bot commented 7 years ago

URL: https://www.youtube.com/watch?v=1La4QzGeaaQ

Browser / Version: Firefox 58.0 Operating System: Mac OS X 10.12 Tested Another Browser: Yes

Problem type: Something else Description: I don't see an 8k resolution option on this video Steps to Reproduce: I don't see an 8k resolution option on this video, but I see one when I use Chrome.

I see the option on a linux laptop with worse specs than this machine.

layout.css.servo.enabled: true Screenshot Description

From webcompat.com with ❤️

zoepage commented 7 years ago

Confirmed.

miketaylr commented 7 years ago

Description: I don't see an 8k resolution option on this video

In theory this should be possible: https://bugzilla.mozilla.org/show_bug.cgi?format=default&id=1222145

Maybe a UA sniffing thing? Or releated to EME or similar?

wisniewskit commented 7 years ago

Weird stuff. For me, on Linux both Chrome and Firefox get up to 8K. On OSX, only Chrome gets up to 8K (Firefox and Safari only get up to 1080p). On Windows 10, Firefox only gets up to 1080p, but Edge and Chrome both get up to 8K.

It doesn't seem to be EME (I can disable it on Linux, and still get the 8K option). YouTube's "Stats for nerds" view is also telling me that the video is using VP9 and Opus. And so my intuition is telling me that it's a YouTube issue, where it's choosing to simply not offer 8K for some devices.

wisniewskit commented 7 years ago

Also, a UA spoof to Chrome/Linux on Windows isn't adding the 8K option, nor is spoofing Chrome/Linux to act like Safari getting rid of it, so there must be something more to this.

wisniewskit commented 7 years ago

@jyavenard, do you have any ideas for why YouTube isn't offering 8K in some cases here, while it is in others?

jyavenard commented 7 years ago

@wisniewskit YouTube only offers 8K videos if your machine supports the VP9 codec. Not all machines have this feature enabled.

So, you'll need to have a machine on which VP9 is enabled to get 8K, it's one of the few codec we have controlled off, and there's no such restrictions.

Being a software decoder, you will likely struggle to play 8K properly. You need a machine with a VP9 hardware decoder , and even there, not all support this resolution. On Mac, VP9 in MSE is disabled by default due to performance issues. On linux, VP9 is enabled by default, so you get offered 8K streams. On Windows, VP9 is enabled on machine we deemed sufficiently fast to do so. Windows has support for VP9 hardware decoding which helps.

Even if h264 was offered in 8K resolution, on windows, we rely on the Microsoft H264 system decoder. It doesn't support 8K, maximum resolution supported is 4096x2304 https://msdn.microsoft.com/en-us/library/windows/desktop/dd797815(v=vs.85).aspx so no luck there either.

Few GPU supports 8K today anyway (be it VP9 or H264)

wisniewskit commented 7 years ago

Hmm, from the sound of that it seems like this isn't something we can really do anything about. @miketaylr, what are your thoughts?

jyavenard commented 7 years ago

We do plan to re-enable VP9 support on OS X on machines deemed fast enough (similar to windows). But for now, it's been recently disabled.

wisniewskit commented 7 years ago

@jyavenard, is there a way to force-enable it to truly verify if that's the issue? (I don't mind compiling my own moz-central build on OSX if necessary, to make sure that's all it is).

jyavenard commented 7 years ago

Yes: media.mediasource.webm.enabled

wisniewskit commented 7 years ago

Ah, makes sense :)

Yes, that's all it is. Is there a bug in bugzilla that I ought to dupe this issue to?

miketaylr commented 7 years ago

Sounds like we need to dupe this against whatever relevant Bugzilla bug there is to track the work.

jyavenard commented 7 years ago

We don't have a bug to track because I don't see what there is to track really. What resolutions are available depends on what YouTube decides it wants to offer. We are likely to never allow VP9 on all mac for performance reasons. So there's always be a case where 8K won't be offered....

wisniewskit commented 7 years ago

Then I suppose all we can do is close this one as "incomplete", unless the original reporter (or someone else) feels their system should support 8k video (at which point they should file a bug against Firefox, rather than a webcompat issue).