WebM support
Kagami opened this issue · comments
WebM is a powerful feature of modern web. It allows to easily attach interesting/funny video fragments and much more effecient (in both VP8 and VP9 variants) than good old GIF format. It's also broadly supported - in 3 major browsers of 4, so almost no issues with cross-browser shims.
What do you think?
https://github.com/Kagami/ffmpeg.js — means we can play DSD in browser :-)
@Kagami could you play these files: http://5ht.co/dxd/ with your emscripten ffmpeg port?
DSD-thread: https://erlach.co/mu/508
@Kagami @5HT Welcome again…
(fucking mail notifications)
Yes, ffmpeg has DSD decoder. And I can play these files with mpv (which uses libavcodec underneath). So possible to add to ffmpeg.js.
It would be better to compile some lightweight decoder to asm.js/wasm though, like this one. And add it as plugin to e.g. Aurora.js framework for playing in browser because ffmpeg.js is not indeted for realtime decoding, but for video-on-deman encoding instead.
Hm, no, https://github.com/szechyjs/dsd is something different. But you get my point.
Compile the minimal decoder to JS and create Aurora.js plugin. Here is example: https://github.com/audiocogs/flac.js/tree/master/src
You need to implement demuxer and decoder classes with calls to asm.js code for the actual decoding logic.