Skip to content

Instantly share code, notes, and snippets.

@dvgamerr
Created April 24, 2023 16:39
Show Gist options
  • Save dvgamerr/419a5f20058293ed92846d75a60c1873 to your computer and use it in GitHub Desktop.
Save dvgamerr/419a5f20058293ed92846d75a60c1873 to your computer and use it in GitHub Desktop.
MP4 to Gif windows
choco install ffmpeg gifski
REM Hi-Resolution Gif
ffmpeg -i movie.mp4 -vf scale=720:-1 ./frame%04d.png
gifski -o movie.gif ./frame*.png
REM Normal gif
ffmpeg -y -i movie.mp4 -vf "fps=23,scale=720:-1:flags=lanczos" movie.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment