Created
April 22, 2015 14:22
-
-
Save Apkawa/69c1ab60719f7f4cb293 to your computer and use it in GitHub Desktop.
ffmpeg cheatsheets
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
# Example resize to 480p and deshake video | |
ffmpeg -i input.mov \ | |
-vcodec libx264 \ | |
-vf "deshake,scale=-1:480,scale=trunc(iw/2)*2:trunc(ih/2)*2" \ | |
-acodec copy \ | |
-y output.mp4 \ | |
# Example convert all MOV files in folder | |
find . -name "*.MOV" -exec ffmpeg -i '{}' -vcodec libx264 -vf "deshake,scale=-1:480,scale=trunc(iw/2)*2:trunc(ih/2)*2" -an -y '{}.mp4' ';' | |
# Example make 60 fps from images. | |
ffmpeg -framerate 60 -i 'image/image%05d.jpeg' -vcodec libx264 -r 60 -f avi output.video |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment