Skip to content

Instantly share code, notes, and snippets.

@weblogix
Created October 3, 2020 01:34
Show Gist options
  • Save weblogix/c4a48f56c3ea13495e5c2d1278b01a2c to your computer and use it in GitHub Desktop.
Save weblogix/c4a48f56c3ea13495e5c2d1278b01a2c to your computer and use it in GitHub Desktop.
[ffmpeg snippets] #ffmpeg

ffmpeg -r 30 -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4

Here -r 30'' specify the frame rate 30 frames/sec. So if you want 10 sec movie with frame rate 30/sec, you make GIF animation that has total 300 frames, then use -r 30''.

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