-
-
Save l2dy/d659d5496e18b4ae14eb35767a52af8b to your computer and use it in GitHub Desktop.
H265 with ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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