citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

gifenc (231B)


      1 #!/bin/sh
      2 
      3 palette="/tmp/palette.png"
      4 
      5 filters="fps=15,scale=320:-1:flags=lanczos"
      6 
      7 ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
      8 ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2