Last active
June 4, 2019 02:33
-
-
Save ReidWilliams/618f7b8760f4e6561d4842318ba20d1b to your computer and use it in GitHub Desktop.
ffmpeg cheatsheet
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
# images to video at 10 images per second, 64x64 resolution, named like 000000.jpg | |
# -start_number 12 starts at image 12 | |
# -vframes 100 creates a video with 100 frames | |
# the -pix_fmt option makes it quicktime compatible | |
ffmpeg -y -r 10 -f image2 -s 64x64 -start_number 12 -i %06d.jpg -vframes 100 -pix_fmt yuv420p -vcodec libx264 ./video.mp4 | |
# match image names by file glob | |
ffmpeg -y -r 10 -f image2 -s 1920x1080 -pattern_type glob -i "*.jpg" -pix_fmt yuv420p -vcodec libx264 ../video.mp4 | |
# video to images, image size of 160x128, 10 frames per second, named like 000000.png, | |
# starting at 000100.png | |
ffmpeg -i video.mp4 -s 160x128 -vf fps=10 -start_number 100 %06d.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment