Skip to content

Instantly share code, notes, and snippets.

@bbuyukkahraman
Created June 18, 2016 12:33
Show Gist options
  • Save bbuyukkahraman/3ef92ae522545654d2cbc86fc50650d1 to your computer and use it in GitHub Desktop.
Save bbuyukkahraman/3ef92ae522545654d2cbc86fc50650d1 to your computer and use it in GitHub Desktop.
Install Homebrew OS X package manager:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install ffmpeg with x265 support:
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265
Convert video to x265:
ffmpeg -i input -c:v libx265 -preset medium -crf 28 -c:a aac -b:a 128k output.mp4
Uninstall ffmpeg:
brew uninstall ffmpeg
Uninstall homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment