phoboslab / jsmpeg

MPEG1 Video Decoder in JavaScript
MIT License
6.38k stars 1.43k forks source link

WebAssembly #156

Open samsonradu opened 7 years ago

samsonradu commented 7 years ago

Curious whether this library could be rewritten as a binary WebAssembly package. What would be the upsides/downsides and how do you see this great project moving forward?

phoboslab commented 7 years ago

Using WebAssembly would be neat! I haven't looked into it much, but this would probably imply a rewrite in a language that can compile to WebAssembly, right? Re-Implementing the decoder in C would be a fun project.

samsonradu commented 7 years ago

Would be indeed. I'm wondering if the current live-streaming performance cap is more due to the decoder speed or the big bandwidth that mpeg1 uses (compared to modern codecs)?