Last active
January 23, 2026 15:51
-
-
Save wteuber/28fd2efe46738399475807aedc3e713e to your computer and use it in GitHub Desktop.
Convert video to animated GIF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Convert all mp4 videos in the current directory to animated GIF files. | |
| # https://github.com/ImageOptim/gifski?tab=readme-ov-file#from-ffmpeg-video | |
| for f in *.mp4; do | |
| ffmpeg -i "$f" -f yuv4mpegpipe - | gifski --fps 15 --width 480 -o "${f%.mp4}.gif" - | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/17221481/fastest-way-to-create-animated-gifs-from-mp4/79873032#79873032