videotools/gifify

3 lines
145 B
Plaintext
Raw Permalink Normal View History

2023-11-17 22:05:49 +00:00
#!/bin/sh
ffmpeg -ss "$1" -t "$2" -i "$3" -vf "fps=30,scale=650:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 "$4"