Skip to content

Instantly share code, notes, and snippets.

@samelie
Created September 2, 2014 21:35
Show Gist options
  • Save samelie/4d980e4952a9b7bfe63d to your computer and use it in GitHub Desktop.
Save samelie/4d980e4952a9b7bfe63d to your computer and use it in GitHub Desktop.
ffmpeg all options in brew
change owner of brew to root, which is common for files in /usr/local directory ( opposed to either /home or /Users )
sudo chown root /usr/local/bin/brew
and/or add the admin group
sudo chown root:admin /usr/local/bin/brew
sudo brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-openssl --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools --with-x265 --with-faac --with-lame --with-x264 --with-xvid
@samelie
Copy link
Author

samelie commented Jun 29, 2015

./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-gpl --enable-libx264 --enable-libfdk-aac --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-libass --enable-openssl --enable-avresample --enable-opengl --enable-librtmp --enable-libfaac --enable-libwebp

@samelie
Copy link
Author

samelie commented Jul 15, 2015

ffmpeg -i MVI_0139.AVI -codec:v libx264 -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -codec:a libfdk_aac -b:a 128k -preset fast -profile:v baseline -pix_fmt yuv420p vid1.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment