FFMPEG.js is an amazing project and it helped me building one of my latest projects: Device Frame. It basically builds ffmpeg (with a good set of defaults to keep the size small — as small as it can be). If the default build doesn’t support the filters and encoders you need, then you will need to build it yourself.
This is more of a note for me in the future, but this is what I did to get it working. (Note: I tried on macOS sierra and was getting compile errors).
Install Deps
sudo apt-get install automake libtool build-essential cmake
Download ffmpeg.js
git clone git@github.com:Kagami/ffmpeg.js.git
cd ffmpeg.js
git submodule init
git submodule update --recursive
Install Emscripten:
- Linux: Download
./emsdk update
./emsdk install latest
- Wait…
./emsdk activate latest
source ./emsdk_env.sh
Build ffmpeg.js
make all
If there are errors with fribidi:
cd build/fribidi/ && ./bootstrap && configure
You might see errors like:
./configure: line 4255: syntax error near unexpected token `2.2'
./configure: line 4255: `LT_PREREQ(2.2)'
Make sure you have libtool
installed.