909 points · by TD-Linux · 8y ago · 243 comments
I know Google provided a free hardware decode block for VP8, and I assume also for VP9 (since there appears to have been some, though not universal, hardware acceleration for that according the the Wikipedia article). I'm hoping they'll soon (or already) have the same for VP1.
I see Apple, Nvidia, Intel, Allegro, AMD, and a bunch of other silicon vendors are also members of the Alliance for Open Media, so I expect to see hardware acceleration within the next 2-3 years. I'll be impressed if it's earlier.
Edit: maybe hardware acceleration earlier. If the standard was released recently with the collaboration of the silicon industry, it's likely the current in-design/early-production silicon already has an implementation of the important parts of the codec, so we can expect consumer products with at least partial acceleration within 6 months.
For what it's worth, Intel shipped "hybrid" implementations of HEVC and VP9 for older products where the CPU does some work but the GPU's shader cores do shader-y bits (https://www.anandtech.com/show/10610/intel-announces-7th-gen...). I don't know how far that approach gets you, especially in mobile settings where you really care about power use. But you might see that before complete hardware decoders everywhere.
A use case that might be interesting before full hardware acceleration is to provide an improved still image format. The graph in the post is a great demonstration that improving video encoding and improving image encoding are closely related these days. AV1 has backing and went through IP review that may help it avoid being mired in a patent mess like previous proposals to replace JPEG. (Apple is using .heic, based on HEVC intra coding. Android'll support .heic in the next major version, but the HEVC patent situation will likely constrain how many external tools, platforms, etc. pick it up.) There's work on defining an AVIF format (https://github.com/AOMediaCodec/av1-avif) and tech demos look great (https://people.xiph.org/~tdaede/av1stilldemo/). So, maybe fewer ugly JPEG artifacts in our future, partly thanks to that deringing filter mentioned at the end of Monty's post.
(I said more or less the stuff about stills above, with a couple more details and links, at https://news.ycombinator.com/item?id=16699000)
https://parisvideotech.com/pvt-4-les-formats-et-codecs-du-fu...
A mobile device needs to be able to hardware-encode it as well - countless hours of 4k/60 video are taken on phones.
[1]: https://www.forbes.com/sites/insertcoin/2018/04/07/ninjas-ne...
You can tell that they do if you read the scene standards.
They care much much more about this than most people do. Even a lot of people that work with video professionally don’t care as much about codecs and codec support as these guys do.
https://en.wikipedia.org/wiki/Standard_(warez)#Video_standar...
So no, I don’t believe that “real” scene groups would start using a new codec unless it was widely supported. The scene standards, then, would not include such codecs. Failure to follow scene standards will have your releases nuked in the scene.
As for the torrent sites, if someone puts up videos using codecs that cause the videos to stutter or plain fail to play then the torrent users will learn to associate whoever encoded those videos with videos that don’t work and they will avoid torrents with that person or group name in them.
The data from YouTube or Netflix dwarfs what you'd get from a torrent distributor of a show or whatever.
Some pirate/niche markets may adopt a codec solely for some arbitrary reason, but those reasons (say, maximum compression, good open source tools) are normally orthogonal to what a streaming business usually needs (compression, but also hardware/software compatibility for all sorts of form factors, and commercial unencumberment).
It was far from clear 15 years ago when xiph released Theora (aka vp3, ancestor of av1) that going up against mighty MPEG, with their enormous war chest from a decade of royalties, and dozens of patents (and the money to defend them) that success in the end was even possible much less assured.
It's really a wonderful story of the triumph of open source philosophy over the IP licensing model.
The story here isn't that the Big Evil companies behind the MPEG codecs were beaten by the Good companies behind the Alliance for Open Media -- the story is that the pool of companies is kinda-sorta the same or comparable, with plenty of them playing both sides, a fact not lost on the founder of MPEG [1][2].
[1] http://blog.chiariglione.org/2018/01/28/ [2] https://news.ycombinator.com/item?id=16261313
It’s not an “open source philosophy over the IP licensing model.” It’s bankrolling a codec with content, device, and middleman revenues rather than content player revenues. The $_ dollars that Sony or Panasonic got for every DVD player through patent licensing has simply been replaced by the $_ that Google gets for every ad impression on YouTube or sale in the Google Play Store. It’s not a philosophical shift, merely a business model shift enabled by Internet video distribution.
3-5 years will tell whether it's a triumph or a tragedy. It's certainly not possible to know today. Fans were quite sure Beta meant the end of VHS, but there are so many other (more important, in many cases) factors than the technology.
Here's a video he created a few years ago, taking apart some popular misconceptions about how digital audio works: https://xiph.org/video/vid2.shtml
He does. I love his posts. Some say you don't really understand something until you can explain it to someone else. By that metric he's probably in the top 5 codec folks in the world today.
Any idea how many more articles are planned, so that can adjust my expectations a bit?
Can we somehow convince you to part-time more technical blogs and videos? Like others here said, you have a knack for writing really accessible technical articles without them feeling dumbed down.
I don't know if you're just more into doing the hands-on work of developing the codec (I can imagine that's exciting), or if it's a question of technically not being hired to do that.
In the latter case, maybe "The People" could vote with their wallet to convince the higher-ups otherwise?
Like, Ubuntu lets us decide what we want them to spend our donations on. If we had that with xiph.org and it had a section that said "more technical blogs!", or maybe even something like patreon a set-up where you can pledge to automated repeat donations for each blog entries, wouldn't be surprised if there were enough nerds willing to send donations specifically to justify to the managers that you may spend more time on outreach.
Intel implemented VP9/h265 decoding in its processors just recently.
So we have to buy new processors.
Software encoder/decoder implementations will also be a thing in the interim, until the hardware is ready.
MSU's comparison: http://www.streamingmedia.com/Articles/News/Online-Video-New...
x265 complained about the recent MSU test: http://www.x265.org/x265-incorrectly-represented-msus-2017-c...
But equally x265 likes to refer to MSU comparisons when the results make x265 look good: http://www.x265.org/
An x265 post referencing another paper which says HEVC outperforms AV1. The post insinuates AV1 might not be royalty-free. Reads like an attempt to spread fear, uncertainty, and doubt: http://www.x265.org/excited-av1-closing-doors/
But indeed it's a little bit ironic for someone advocating for HEVC to be concerned about patent royalties and licensing.
At transloadit we’ve been testing the reference implementation but to encode a video it’s about 20x slower than h264 still :) there will be many improvements to speed up but it’s expected to remain a lot slower (up to 4x as slow) or so I’ve read.
In markdown that would put the 4 in italics, where it's not supposed it still works as emphasis, but can be a bit confusing.
People like it because it has better licensing.
That is definitely going to change when real optimized encoders are written, especially since all the major CPU/GPU manufacturers are part of the Alliance for Open Media.
That said, I hate to criticize them too much for this detail, in fact, congratulations are in order. It’s been a great engineering effort so far, and hopefully this will continue with the reference implementation evolving into some highly optimized players and encoders.
Aside from the engineering accomplishment you can imagine that it took quite a bit of business effort and coordination to get all these players together and on the same page.
I’d make a bet whoever first proposed the extension name has never been involved with user experience design. But again it’s relative. An excellent chef made a great meal, if just the garnish on top is not perfect it’s not a lot to complain about.
I see “regular users” making decisions based on container file formats all the time, as to whether the file will be playable on their favorite device: DVD player, smartphone, portable music player etc.
It’s not very reliable, or accurate, but if you see an .mkv that’s usually h.264 or hevc, .webm is vp8/vp9 and .avi will play on your DVD.
There’s really no technical reason why file extensions should reflect the container format.
If I rename “BunnyVideo.mkv” to “BunnyVideo.av1” VLC will still play it just fine. But now I can tell at first glance that it will not play on my legacy Smart TV or last year netbook with no hardware decoding.
Whether that AV1 video is actually in a MKV or WebM container doesn’t really matter at all to your average user. It only matters if it will play.
Maybe it would be even better to just have .av1.mkv instead, but double file extensions don’t work on Windows and people think it’s a trick to get you to run malware.
I'm pretty tech savvy and I haven't downloaded a video file to my computer from the internet in years.
..So there you have it from an "unbiased^, first impression" -standpoint.
^ Unbiased in terms of any exposure / prior knowledge of this project.
For more history on this, see https://en.wikipedia.org/wiki/DivX#History
Source: worked at DivX
My question is, at what level do these encoders work at? Are they basically specialized SIMD instructions, or are they fully featured chips that take raw data as input and produce byte streams in the format of the protocol? Or somewhere in between?
Then you have APIs that try to disassemble all the typical stages of video codec processing that applications can call and GPU drivers can implement, which serve as a bridge between hardware-assisted decode and application code. These are APIs like DXVA or one of the several in use with Linux [6].
[1] https://en.wikipedia.org/wiki/Unified_Video_Decoder [2] https://en.wikipedia.org/wiki/Video_Coding_Engine [3] https://en.wikipedia.org/wiki/Nvidia_PureVideo [4] https://en.wikipedia.org/wiki/Nvidia_NVENC [5] https://github.com/hermanhermitage/videocoreiv [6] https://wiki.archlinux.org/index.php/Hardware_video_accelera...
For example, if I understand the Chroma-from-Luma prediction; then the maths involved is just 2-d linear regression (once for U vs. L once for V vs L.). That's a pretty generic task. Even when with the domain-specialisation that it is done over pixels in an encoding block, we are still talking about concepts common to all codecs.
So maybe there existing acceleration hardware can already do it. But even if it can, the require primitive needs to be exposed to software if new protocols are to benefit from it. So my question (and maybe Boxxed's too) is whether the hardware interface is low-level enough for such adaptability.
Does anyone have any evidence of this claim?
And six months ago they had improved on that to do live streaming with 32 cores: https://bitmovin.com/constantly-evolving-video-landscape-dis...
Twitch wants to use AV1 for live streaming. Here's a talk on the "switching frame" feature of AV1 for use in live streaming: https://www.youtube.com/watch?v=o5sJX6VA34o
From the article, near the end.
(although might not be up to spec which was published only recently: https://aomedia.org/the-alliance-for-open-media-kickstarts-v... )
I don't dispute that it is theoretically possible - of course it is, people are making this codec for actual use, and I'm looking forward to it - just that it doesn't seem doable right now.
Not sure how they can make this statement.
VP8 was patent encumbered all over the place and eventually required licensing from MPEG-LA. Surely AV1 would be infringing on at least some of HEVC's expansive patent pool. Unless of course Google is willing to indemnify user's against patent infringement lawsuit. Which would be really big news.
Matt Frost of Google is quoted as saying:
"Obviously, if we have an open source codec, we need to take very strong steps, and be very diligent in making sure that we are in fact producing something that's royalty free. So we have an extensive IP diligence process which involves diligence on both the contributor level – so when Google proposes a tool, we are doing our in-house IP diligence, using our in-house patent assets and outside advisors – that is then forwarded to the group, and is then again reviewed by an outside counsel that is engaged by the alliance. So that's a step that actually slows down innovation, but is obviously necessary to produce something that is open source and royalty free."
The original source is a video, but this quote transcript is on Wikipedia: https://en.wikipedia.org/wiki/AV1#cite_note-frost-sme2017-16
For decades, companies like Sony, Sharp, NTT, etc., bankrolled that R&D by licensing patents to the technology, and selling devices incorporating the technology.
Today, the Internet enables new monetization models. Companies like Apple and Google can directly monetize video content through iTunes and Google Play (or indirectly through Youtube). They can use that to bankroll their investment in new video codecs.
Was it? Can you name a single patent? MPEG-LA never did.
https://arstechnica.com/information-technology/2013/03/googl...
The never do. It's like the mob: "pay us or you'll be in trouble". You can either pay the MPEGLA (and by the way, you will never know who inside the MPEGLA decided to sue you), or face consequences (and discover which patents are supposedly infringed)
Yes, it probably would, but if these patents are owned by members of AOM it is not an issue
AOMedia Video 1 (AV1), is an open, royalty-free video coding format designed for video transmissions over the Internet. It is being developed by the Alliance for Open Media (AOMedia), a consortium of firms from the semiconductor industry, video on demand providers, and web browser developers, founded in 2015.
http://www.streamingmedia.com/Articles/News/-76781.aspx
http://carlodaffara.conecta.it/an-analysis-of-webm-and-its-p...
http://www.fosspatents.com/2013/03/patent-clouds-remain-over...
http://www.fosspatents.com/2013/03/next-patent-infringement-...
All of that was covered in the article as well.
Something about the medium and the message here.