Recording my steps to build minimal ffmpeg on September 1, 2020.
I mostly followed steps at https://trac.ffmpeg.org/wiki/CompilationGuide/macOS
- Clone repo & checkout release tag (we're building release v4.3.1)
~$ git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
~$ cd ffmpeg
~/ffmpeg$ git checkout n4.3.1
- Install brew dependencies
~/ffmpeg$ brew install automake fdk-aac git lame libass libtool libvorbis libvpx \
opus sdl shtool texi2html theora wget x264 x265 xvid nasm
- Prepare output folders
~/ffmpeg$ mkdir -p output/bin
- Configure with vpx
~/ffmpeg$ ./configure --prefix=$PWD/output \
--pkg-config-flags="--static" \
--bindir=$PWD/output/bin \
--disable-everything \
--enable-ffmpeg \
--enable-protocol=pipe \
--enable-protocol=file \
--enable-parser=mjpeg \
--enable-decoder=mjpeg \
--enable-demuxer=image2pipe \
--enable-filter=pad \
--enable-filter=crop \
--enable-filter=scale \
--enable-muxer=webm \
--enable-encoder=libvpx_vp8 \
--enable-libvpx \
--enable-static
- Make & install to the
output/bin
~/ffmpeg$ make && make install