-
-
Save ftrivino/86dfe2f14e57ecda2051b34d5530c26f to your computer and use it in GitHub Desktop.
ffmpeg: h264 encoding, simple
This file contains hidden or 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
* crf | |
ffmpeg -i input -c:v libx264 -preset slow -crf 22 -c:a copy output.mkv | |
* 2pass | |
ffmpeg -y -i input -c:v libx264 -preset medium -b:v 555k -pass 1 -an -f mp4 /dev/null && \ | |
ffmpeg -i input -c:v libx264 -preset medium -b:v 555k -pass 2 -c:a libfdk_aac -b:a 128k output.mp4 | |
* lossless | |
ffmpeg -i input -c:v libx264 -preset ultrafast -qp 0 output.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment