4 ms·
The codec wars are almost over thanks to Moore's Law. The decoder will soon be streamed with the content, taking up more than a couple seconds of bandwidth. And
by sitkack 12y ago
The codec wars are almost over thanks to Moore's Law. The decoder will soon be streamed with the content, taking up more than a couple seconds of bandwidth. And not surprisingly, the decoder will be written in Javascript/WebCL. The codecs no longer have to be installed on the system, they can be pushed along side the content. Two to three years from now, on modern hardware, you will be able to use the codec of your choice.
- bzbarsky 12y agoIn two to three years, let's assume typical phone hardware is in fact fast enough to do realtime decoding of video with a shipped-along codec like this. How long do you estimate a typical phone battery will last while doing that?
- sitkack 12y agoThe majority of the code will be running on the GPU so it will actually be doing pretty good on battery life.
- astrange 12y agoThis would actually be a complete regression. I mean, what's the difference to you between Flash Player streamed per-page and Flash Player preinstalled and sandboxed? And a custom codec would just be a browser plugin, only in bytecode. What gives native playback its power and fan noise advantage over Flash is ASIC-based hardware decoding, which is difficult to customize. Though I'd be interested to see the battery life you get playing video in a loop with libavcodec compiled to JS...
- unwind 12y agoHow about a JavaScript-to-FPGA transpiler? :) Go grab a Zynq eval board (http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC702-G.htm http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC702-G...) and implement that, we'll stick around! :) In all seriousness, that would be really really cool. Especially if FPGA blocks become more common in general purpose/desktop processors. It should be possible to design some kind of signal-processing API/framework in JS that lends itself to FPGA synthesis behind the scenes, right?
- nl 12y agoIn theory a WebCL based codec could utilize hardware too.