by rossmohax · 5y ago · 0 comments
Eventually the ubiquity of hardware acceleration plus Moore's Law should make even lackluster hardware encoders generally available so average joes can use AV1 without needing to wait a day for a half hour of footage.
https://netflixtechblog.com/netflix-now-streaming-av1-on-and...
https://netflixtechblog.com/svt-av1-an-open-source-av1-encod...
https://www.youtube.com/watch?v=k3Yk6FrjMkQ
You can tell if it's playing back in AV1 in your browser by right-clicking on the video and selecting "Stats for Nerds" to find out the video and the audio codecs. On my system in Firefox it's AV1 for video and Opus for audio.
For that video the file size savings are a bit hit and miss. AV1 saves a lot versus H.264 at 1080p, saves a little bit at 720p and 480p, and saves a bit more at 360p.
The 1080p results for that video are:
- AV1 50.28MiB
- VP9 69.12MiB
- H.264 106.68MiB
So a clear win at 1080p for AV1 versus VP9 and H.264.
Sometimes YouTube's AV1 encodes can actually end up being bigger than the H.264 versions due to the vagaries of automated transcoding.
When AV1 support was newly added to Firefox I used this 1080p60 video as a benchmark for my system:
https://www.youtube.com/watch?v=Fmdb-KmlzD8
Over the course of the development of Firefox's AV1 support and the switch to the dav1d decoder (https://code.videolan.org/videolan/dav1d) that video has gone from being unwatchable due to too many dropped frames to now playing back smoothly.
My system still struggles with AV1 above 1080p in Firefox though.
When you say “many” videos are AV1-encoded, it makes me wonder why other videos aren’t AV1-encoded, if supported. Presumably there is some cost/benefit analysis at Google to decide which formats to use, and it is decided that a particular video should not be encoded using AV1 due to the resulting impact on disk/CPU/network usage (more disk, more CPU, less network egress).
I also suppose YouTube has a massive pool of low-priority batch services for transcoding and can do last-minute encoding for unpopular videos / unpopular formats, so YouTube’s tradeoff will not be the same as your tradeoff. I just wonder what the tradeoff is.