Skip to content

Instantly share code, notes, and snippets.

@aslushnikov
Last active September 2, 2020 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aslushnikov/abf71be5a0b12c33b320044785fcb3bc to your computer and use it in GitHub Desktop.
Save aslushnikov/abf71be5a0b12c33b320044785fcb3bc to your computer and use it in GitHub Desktop.
Compiling ffmpeg on Mac OS 10.15

Compiling minimal FFMPEG on Mac OS 10.15

Recording my steps to build minimal ffmpeg on September 1, 2020.

I mostly followed steps at https://trac.ffmpeg.org/wiki/CompilationGuide/macOS

  1. 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
  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
  1. Prepare output folders
~/ffmpeg$ mkdir -p output/bin
  1. 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
  1. Make & install to the output/bin
~/ffmpeg$ make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment