Created
April 26, 2018 08:16
-
-
Save damien-monni/d3bef8067dab7353622beb72242a0e9e to your computer and use it in GitHub Desktop.
Revisions
-
damien-monni created this gist
Apr 26, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/bin/bash for completeFilename in ./*.mp4; do filename=$(basename "$completeFilename") f="${filename%.*}" echo $f ffmpeg -y -i "$filename" -vf palettegen palette.png ffmpeg -i "$filename" -i palette.png -filter_complex "scale=-1:-1:flags=lanczos[x];[x][1:v]paletteuse" "$f.gif" rm palette.png done