5 ms·
Does anyone know how hard it would be to port an h264 decoder to asm.js? If it worked, it could be used to shim h264 support into Firefox.
by jcampbell1 14y ago
Does anyone know how hard it would be to port an h264 decoder to asm.js? If it worked, it could be used to shim h264 support into Firefox.
- jeresig 14y agoI believe one has already been ported using Emscripten - but this was a while ago, I'd be curious to see how fast it runs now with Asm.js: https://github.com/mbebenita/Broadway https://github.com/mbebenita/Broadway
- robin_reala 14y agoFairly easily if you start with Broadway: it’s an Emscripten port of Android’s H264 software decoder that writes to a WebGL canvas. https://github.com/mbebenita/Broadway https://github.com/mbebenita/Broadway
- dave1010uk 14y agoThe reverse has been done: WebM has been ported to JavaScript with Emscripten, which means all browsers (IE9+) can play WebM to some degree. http://badassjs.com/post/17218459521/webm-and-webp-hand-ported-to-javascript-for-all http://badassjs.com/post/17218459521/webm-and-webp-hand-port...
- ysangkok 14y agoWasn't Firefox 20 supposed to have H264 support?
- fakeer 14y agoYes. But it hasn't somehow on Mac, because I have been reading it's already there on Windows(never tried myself though).