Firefox brings smooth video playback with the fastest AV1 decoder
hacks.mozilla.org
hacks.mozilla.org
https://www.youtube.com/watch?v=Fmdb-KmlzD8
My system consistently drops frames at the point the jeep drives up the hill and then recovers for the remainder of the video. Other than that it's fine.
You can enable AV1 on YouTube via TestTube (https://www.youtube.com/testtube) and you can check if a video is in AV1 via right clicking on the video and selecting Stats for Nerds. If it's AV1 the codec will be "av01".
Proof: https://i.imgur.com/JoT2wsM.png.
Nice web. I'd like it if such decisions were made in the user agent, but once again all the functionality is baked into webshites that reinvent the wheel badly and the user agent is just a dumb client :(
* More CPU but acceptable on a modernish system
* On FF it's dropping zero frames, on chrome a insignificant handful on mine
* Testtube cookie setting this seems to be 3rd party...resets easily depending on your cookie settings
* Seems solid enough to keep it as default & help push adoption
By the way, how is the progress for WebRender over Vulkan?
Can you give us some details? When? Can I somehow help in testing, for example in Firefox nightly? What hardware can be supported? What formats, h264 or/and vp9?
https://bugzilla.mozilla.org/show_bug.cgi?id=1210726
It's such a disappointment that this hasn't been fixed yet.
The Firefox Devs aren't just sitting there not clicking a button called "enable hardware acceleration"
sure the situation is better than it is with firefox, but having to use a patched chromium build isn't exactly ideal
https://bugs.chromium.org/p/chromium/issues/detail?id=463440
Patches exist to address it, though.
Out of curiosity how do you check that? I'm asking because I'd like to check it on my end.
My laptop is usually noisy when the CPU is in demand. I am a bit surprised because playing HD videos on YT does not make the fan too noisy (comparing to loading a website with a ton of JS,for example).
So, I concluded that some HW decoding was in use, somehow. I can, of course, be wrong.
There is no way that ffmpeg uses a HW decoding decoder under the hood? It may explain why it's so smooth. Besides, when I run VP9 video with MPV, it tells me that it is explicitly using HW decoding via vaapi. And MPV is based on ffmpeg libs for the playback, if I am not mistaken.
Thanks for your light!
Although it's possible to utilize hardware decoders with FFmpeg, frames need to be shown somehow. Downloading decoded frames back to CPU memory just to copy them back to GPU to display is not a good idea. Generally graphics adapters expect a lot more data coming to them, not from them. It may be so slow, that it makes the whole idea infeasible. To make hardware decoding actually useful, one needs to figure out how to combine everything together on GPU side. It's harder to do it in Firefox than in a video player, since browsers have a complex rendering model. And now even run in multiple processes.
> My laptop is usually noisy when the CPU is in demand.
Not only software codecs are highly optimized, CPUs are also power-efficient. 1080p VP9 decode on my Skylake laptop doesn't produce enough heat to start the fan.
If you want to test this right now, here is how to enable AV1 in Youtube and test videos.
Goto the youtube testtube page and click "Always Prefer AV1" https://www.youtube.com/testtube
AV1 Beta Launch Playlist
https://www.youtube.com/playlist?list=PLyqf6gJt7KuHBmeVzZteZ...
And click "stats for nerds", if it's working it should show "av01" under the Codecs tab.
[0] https://www.youtube.com/watch?v=Fmdb-KmlzD8&list=PLyqf6gJt7K...
They probably don't reencode 1440+p (there are 8K videos too) in AV1 as of yet.
On the other hand, I'm wondering how long this decoder will be relevant, especially considering it could still take a while before AV-1 video will be widespread on the web. I fully expect everyone and the kitchen sink will have hardware decoding before long, which is vastly superior over any software implementation.
It seems remarkably popular already.
This will allow early adopters and video producers to validate their content.
It will also allow people in five years who have a 5-year-old desktop to enjoy the content.
I’ve seen claims of benefits, and analysis versus h.264, but not the clear evidence that HEVC is going to become obsolete.
http://www.compression.ru/video/codec_comparison/hevc_2018/
As for HEVC's obsolescence, Leonardo Chiariglione, founder and chairman of MPEG, thinks AV1 has the bigger future because HEVC's licensing is too messy:
http://blog.chiariglione.org/a-crisis-the-causes-and-a-solut...
Try the AV1 test playlist: https://www.youtube.com/playlist?list=PLyqf6gJt7KuHBmeVzZteZ...
And you'll find many other YouTube videos encoded in AV1 up to 720p. Try popular music videos or movie trailers for examples. Check that it's AV1 by right clicking on the video and selecting Stats for Nerds.
In practice people seem to solve this by just using limited range all the time because it's much better to have limited range content displayed without expansion than to have full range content erroneously limited->full expanded and have a bunch of the range destroyed. If you try to stream to Twitch, for example, they tell you to use limited range, and it will look VERY bad in most players (not just Firefox!) if you disregard the advice. I've also had problems with full range uploads to YouTube that can't be attributed to Firefox.
EDIT: Checked my bug history. For the NVIDIA + Windows + Firefox combo, here is the workaround for range issues along with an explanation of why Mozilla has no way to fix it in this scenario. https://bugzilla.mozilla.org/show_bug.cgi?id=1229304#c8
See bug ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=1459526 Or just test this: https://bug1459526.bmoattachments.org/attachment.cgi?id=8984...
Firefox's video support in general is pretty poor compared to Chrome. It doesn't support RGB or 4:4:4/4:2:2 YUV video either.
>here is the workaround
I knew that bug too, but that's a different story. That is about Firefox having problem to playback limited range video properly with nV graphic card (and it's partially nVidia's fault than Firefox).
Chrome used to have that bug too, but they have fixed it.
(Firefox team on the other hand, didn't plan to fix it for Win7 at least: https://bugzilla.mozilla.org/show_bug.cgi?id=1410693#c1 ).