Skip to content

Instantly share code, notes, and snippets.

@rinthel
Last active November 11, 2022 09:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rinthel/f4df3023245dd3e5a27218e8b3d79926 to your computer and use it in GitHub Desktop.
Save rinthel/f4df3023245dd3e5a27218e8b3d79926 to your computer and use it in GitHub Desktop.
ffmpeg emscripten build
# reference: https://itnext.io/build-ffmpeg-webassembly-version-ffmpeg-js-part-2-compile-with-emscripten-4c581e8c9a16
# tested in macos / emscripten 1.38.48
emconfigure ./configure \
--disable-x86asm --disable-inline-asm --disable-doc --disable-stripping \
--nm="$EMSDK/upstream/bin/llvm-nm -g" \
--ar=emar --cc=emcc --cxx=em++ --objcc=emcc --dep-cc=emcc
emmake make -j8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment