Last active
November 12, 2016 16:39
-
-
Save romuloceccon/dbf0b6569753bf8ec6ea to your computer and use it in GitHub Desktop.
avconv command lines to reduce video size
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
# https://trac.ffmpeg.org/wiki/Encode/H.264 | |
# https://trac.ffmpeg.org/wiki/Encode/AAC | |
# -map 0 -c copy: copy all remaining streams | |
# -pix_fmt yuv420p: be compatible with most players | |
# high quality video, high quality audio | |
avconv -i input.mov -map 0 -c copy -c:v libx264 -preset veryslow -pix_fmt yuv420p -crf 17 -c:a libfdk_aac -vbr 4 output.mov | |
# high quality *compatible* full-hd video, high quality audio | |
avconv -i input.mov -map 0 -c copy -c:v libx264 -preset veryslow -pix_fmt yuv420p -refs 4 -crf 17 -c:a libfdk_aac -vbr 4 output.mov | |
# medium-high quality video, high quality audio | |
avconv -i input.mov -map 0 -c copy -c:v libx264 -preset veryslow -pix_fmt yuv420p -crf 22 -c:a libfdk_aac -vbr 4 output.mov | |
# medium quality video, medium-high quality audio | |
avconv -i input.mov -map 0 -c copy -c:v libx264 -preset veryslow -pix_fmt yuv420p -crf 27 -c:a libfdk_aac -vbr 3 output.mov | |
# high quality video (resize to hd) | |
avconv -i input.mov -map 0 -c copy -c:v libx264 -preset veryslow -pix_fmt yuv420p -s 1280x720 -crf 17 output.mov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment