jonasof / videoconverter.js-wasm-demo

https://jonasof.github.io/videoconverter.js-wasm-demo - Demonstration for WebAssembly version of videoconverter.js, see https://github.com/bgrins/videoconverter.js/issues/43
24 stars 2 forks source link

Instructions on building WAMS ffmpeg. #1

Open PaulKinlan opened 7 years ago

PaulKinlan commented 7 years ago

Super quick question. Do you have instructions on how you built with WASM support?

I love this demo, but I am seeing a huge perf impact on WASM in Chrome vs ASM.js and I'd like to dive into it more.

jonasof commented 7 years ago

The code is on "webassembly" branch on my fork of videoconverter.js - https://github.com/jonasof/videoconverter.js/tree/webassembly

For more information see the original issue on videoconverter.js: https://github.com/bgrins/videoconverter.js/issues/43 and pull request https://github.com/bgrins/videoconverter.js/pull/63.

Basically to build WASM version you need the "income" version of emscripten and change one line of build_lgpl.sh. See the pull request and commit https://github.com/jonasof/videoconverter.js/commit/cd5de5f98dcf398f2e8939a0a4271547cd6499dc. Note that my code also uses the pull request https://github.com/bgrins/videoconverter.js/pull/55 which is not merged in current master branch of videoconverter.js.

picitujeromanov commented 6 years ago

it's not possible to compile with all codecs

Superfantastisch commented 6 years ago

@picitujeromanov - Try to update to FFmpeg version 3.3. This solved my problem.

picitujeromanov commented 6 years ago

I'm actually crashing on 'endian test failed' by emconfigure ./configure --disable-thread --disable-asm \ --host=i686-pc-linux-gnu \ --disable-cli --enable-static --disable-gpl --prefix=$(pwd)/../dist