Skip to content

Instantly share code, notes, and snippets.

@secunit64
Last active December 1, 2020 20:50
Show Gist options
  • Select an option

  • Save secunit64/1638193 to your computer and use it in GitHub Desktop.

Select an option

Save secunit64/1638193 to your computer and use it in GitHub Desktop.
Encoding frames using ffmpeg

To convert the frames into a movie playabale in the visualization labs, the following command should be used:

ffmpeg -r 60 -f image2 -s 1920x1080 -i %04d.png -vcodec libx264 -crf 25  -pix_fmt yuv420p test.mp4

Will create a movie named movie.avi at 15fps from the files contained in the folder screens named frame0000.png, frame0001.png, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment