FFmpeg prebuilt binaries with proprietary codecs and build instructions for Window, Linux and macOS.
Downloads can be found here
node build[-h] [-c] [--version NW_VERSION] [--arch TARGET_ARCH] or npx nwjs-ffmpeg-prebuilt [-h] [-c] [-d] [--get-download-url] [--version NW_VERSION] [--arch TARGET_ARCH]
- -h, --help : Show the help message and exit
- -c, --clean : Clean the workspace, removes downloaded source code
- -v NW_VERSION, --version NW_VERSION : Build ffmpeg for the specified Nw.js version (latest from http://nwjs.io/versions.json if not specified)
- -a TARGET_ARCH, --arch TARGET_ARCH : Target architecture, x86, x64, arm
- -d, --download : Download Prebuild binaries.
- -p, --platform : Download platform, darwin, win, linux
- --get-download-url : Get Download Url for Prebuild binaries
- -o, --out : Output Directory
You can get the FFmpeg source code from here.
Using MP3 and H.264 codecs requires you to pay attention to the patent royalties and the license of the source code. Consult a lawyer if you do not understand the licensing constraints and using patented media formats in your application. For more information about the license of the source code, check here.