Skip to content

Instantly share code, notes, and snippets.

@l2dy
Forked from k06a/install-ffmpeg-with-h265.sh
Created April 11, 2018 15:24
Show Gist options
  • Save l2dy/d659d5496e18b4ae14eb35767a52af8b to your computer and use it in GitHub Desktop.
Save l2dy/d659d5496e18b4ae14eb35767a52af8b to your computer and use it in GitHub Desktop.
H265 with ffmpeg
brew install mp4box
brew install ffmpeg --with-fdk-aac --with-tools --with-freetype --with-libass --with-libvorbis --with-libvpx --with-x265 --HEAD
ffmpeg -i input.mov -c:v libx265 -c:a aac -preset ultrafast -an -x265-params crf=25 video.mp4
ffmpeg -i input.mov -c:a libfdk_aac -profile:a aac_he_v2 audio.aac
mp4box -add audio.aac -add video.mp4 output.mp4
ffmpeg -i output.mp4 -vcodec copy -acodec copy -tag:v hvc1 output_apple.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment