Skip to content

Instantly share code, notes, and snippets.

@Apkawa
Created April 22, 2015 14:22
Show Gist options
  • Save Apkawa/69c1ab60719f7f4cb293 to your computer and use it in GitHub Desktop.
Save Apkawa/69c1ab60719f7f4cb293 to your computer and use it in GitHub Desktop.
ffmpeg cheatsheets
# 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