Skip to content

diffusionstudio/ffmpeg-wasm-lgpl-build

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFmpeg Wasm LGPL2.1 Build

This repositiory can be used to replicate the transpilation process of c/c++ code (FFmpeg) to Wasm.

You can find the output binaries here

Build

  1. Use docker (easy way)

Install latest docker and run build-with-docker.sh.

$ bash build-with-docker.sh
  1. Install emsdk (unstable way)

Setup the emsdk from HERE and run build.sh.

$ bash build.sh

If nothing goes wrong, you can find JavaScript files in wasm/packages/core/dist.

Configuration

--target-os=none --arch=x86_32 --enable-cross-compile --disable-x86asm --disable-inline-asm --disable-stripping --disable-programs --disable-doc --disable-debug --disable-runtime-cpudetect --disable-autodetect --extra-cflags='-O3 --closure 1 -I/src/build/include -s USE_PTHREADS=1' --extra-cxxflags='-O3 --closure 1 -I/src/build/include -s USE_PTHREADS=1' --extra-ldflags='-O3 --closure 1 -I/src/build/include -s USE_PTHREADS=1 -L/src/build/lib' --pkg-config-flags=--static --nm=llvm-nm --ar=emar --ranlib=emranlib --cc=emcc --cxx=em++ --objcc=emcc --dep-cc=emcc

About

Mirror of git://source.ffmpeg.org/ffmpeg.git

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 91.7%
  • Assembly 6.6%
  • Makefile 1.3%
  • C++ 0.2%
  • Objective-C 0.1%
  • Shell 0.1%