Skip to content

Instantly share code, notes, and snippets.

@StevenPuttemans
Created June 14, 2017 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StevenPuttemans/5c427f03769dd2f5e0d27208be483163 to your computer and use it in GitHub Desktop.
Save StevenPuttemans/5c427f03769dd2f5e0d27208be483163 to your computer and use it in GitHub Desktop.
Create video from frames using FFMPEG

Using FFMPEG a video can be generated from frames using

ffmpeg -r 1/5 -i img%03d.png -c:v libx264 -vf fps=25 -pix_fmt yuv420p out.mp4

Parameters

  • r = ratio if you want to downscale the video
  • i = format of the images, adapt it to your needs!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment