130 points · by slederer · 9y ago · 80 comments
Two ends of a WebRTC connection could even negotiate codecs based on power/processing needs, with one sending a WebAssembly codec to the other as a fallback if needed ("hey you don't support this thing that I support in hardware, but you are plugged in, so burn some more electrons on your end").
WebAssembly SIMD [1] will definitely help with performance here.
Completely unrealistic, but it would be interesting to have on the fly reprogramable FPGAs on die that can be assigned specific tasks on demand. This of course has tons of risks, but the pace that hardware moves is painful.
Worse yet, most Chromecasts and TVs don't support anything newer than H.264. It will be years before H.265 or any new competitor sees hardware support in most homes.
Now with H265, Bluray 4k profile is important, ergo 10 bit support is mandatory, as well as display output itself being able to handle signalling for Rec2020 HDR10 over HDMI 2.x (or equivalent DP).
I've always wanted this! "Hardware accelerated" would become a thing of the past, because everything could hardware accelerate itself. It would probably be more like ram than a graphics card, though, and could probably be designed so each application could specify how many gates it wants.
> This of course has tons of risks
Like what?
Oh great, one more thing to help ad networks to crank CPU usage of my browser to the extremes. Hope I'll be able to also disable that through about:config. :/
I have a n00b question though. How would I display the video in the browser using webassembly ? I mean using webassembly, I can do the decoding of the bits in the stream. But how to display those bits in the browser ? Do I use a canvas and directly dump the pixel buffer there ?
This codec is developed by the Alliance for Open Media, whose goal is to provide a patent-free video codec (more acurately, a video codec under a patent-umbrella protection). Let's not reproduce the HEVC fiasco (see "HEVC advance licensing terms" for more info).
AV1 is still in development at this time (the bitstream format changes slightly almost every day). However, the compression performance (VQ) is already very good ; and lots of huge companies are part of the Alliance ( Amazon, Google, Microsoft, Nvidia, Mozilla, ... see http://aomedia.org/about-us/ )
Apple is free to continue to devalue their products by refusing to support features, just as its customers are free to spend their money elsewhere.
> And then there we go again transcoding and adding software layers to make it work for everyone.
If that is what you want to do, that will work. If users want to support a platform that limits them to lesser quality, let them. Be explicit about why they are getting lesser quality.
Your software is not part of the Apple ecosystem, Apple is part of your software's ecosystem.
Nobody is going to wait for them.
I thought that AV1 is going to be the Opus of video codecs, but with the encoding being so compute intensive, how to you plan to tackle the problem?
AV1 has heavy interest from hardware companies: AMD. ARM, Broadcom, Intel, NVIDIA, and Realtek, among others are already members [0].
The project was based on Google's VP10 and Xiph's Daala.
The codec will be open and royalty-free.
The difference is AV1 will be here before MPEG-LA's next codec, and now virtually all chipmakers will support it within 8-12 months of the final spec being released, instead of having Google beg chip companies for the next 2-3 years to implement its codec with small/moderate success.
Additionally, I don't think anyone will want to pay MPEG-LA for its next codec, just because it shares a name with h.265.
The number of companies supporting H.265 far exceeds AV1/VP9 and the biggest wildcard is: Apple. You simply can't have a codec that doesn't work on iOS or OSX. End of story. And you already know who has won by looking at torrent sites which have almost zero AV1/VP9 content but lots of H.265.
And we already know that VP8 was riddled with patent infringements and ended up getting a license from MPEG-LA. VP9 has not yet been tested in this respect and could easily require royalties from implementers in the future.
And Apple is a patent contributor to H.265 so zero chance of adopting VP9.
> While Opus was adopted as a mandatory format for the WebRTC wire protocol, we don’t have a similar mandate for a video codec.
Now if we could play audio in all browsers using Opus. Even Apple started supporting Opus, but being Apple they messed things up and you can't use Ogg container there :(
Edit: I think the GPU usage was high due to using WebRender