Last active
February 14, 2024 03:31
-
-
Save jerlendds/9fb4c0e546c825adb31421a825139e02 to your computer and use it in GitHub Desktop.
mp42gif
This file contains 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
#!/bin/bash | |
ffmpeg \ | |
-i "$1" \ | |
-r "$2" \ | |
-vf "scale=512:-1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \ | |
"$1.gif" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment