mattdesl / mp4-h264

[project suspended] MP4 + H264 encoding for the browser with WASM
MIT License
223 stars 12 forks source link

[Question] Where can I learn more resources about how this worked? #10

Open chipweinberger opened 3 years ago

chipweinberger commented 3 years ago

Was this an emscripten project? The small file size of ~20KB is exactly what I need so I'm curious, how did you even achieve this? Can you share what you are comfortable with?

chipweinberger commented 3 years ago

Also, sorry in advance for creating an "issue" about this.

mattdesl commented 3 years ago

All of the code for this project is still present in this repository, but I have removed the C dependency (minih264e) that does the actual H264 encoding, and also removed the WASM binaries. That is left as an exercise to the reader if they wish to build from source. :smile:

You can also see mp4-wasm which is an offshoot of this repository, aiming to solve some similar problems without any patent concerns.

chipweinberger commented 3 years ago

Thanks! Very useful, Matt.

rahbari commented 3 years ago

I want to compile ffmpeg h264 decoder with SIMD enabled to WASM. I looked at minih264e codes which contains inline Neon ASM which seems it's compiled to WASM in your project so it can use SIMD, but Emscripten docs says it does not support x86 or any other native inline SIMD assembly. Would you please tell me how SIMD code can be compiled to WASM? or in general how ffmpeg h264 decoder can be compiled with SIMD enabled. Thank you so much

takeern commented 11 months ago

I want to compile ffmpeg h264 decoder with SIMD enabled to WASM. I looked at minih264e codes which contains inline Neon ASM which seems it's compiled to WASM in your project so it can use SIMD, but Emscripten docs says it does not support x86 or any other native inline SIMD assembly. Would you please tell me how SIMD code can be compiled to WASM? or in general how ffmpeg h264 decoder can be compiled with SIMD enabled. Thank you so much

@rahbari Is there any new progress on this issue?