Skip to content

Instantly share code, notes, and snippets.

@athoik
Created November 10, 2013 06:50
Show Gist options
  • Save athoik/7394739 to your computer and use it in GitHub Desktop.
Save athoik/7394739 to your computer and use it in GitHub Desktop.
Create video slideshow from images
https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
Using a single image as an input
If you want to create a video out of just one image, this will do (output video duration is set to 30 seconds with -t 30):
ffmpeg -loop 1 -i img.png -c:v libx264 -t 30 -pix_fmt yuv420p out.mp4
ffmpeg -loop 1 -i img.png -c:v libx264 -r 2 -t 10 -pix_fmt yuv420p out1.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment