Skip to content

Instantly share code, notes, and snippets.

View T410's full-sized avatar

Tayyib Cankat T410

  • Accenture Song
  • Hamburg
View GitHub Profile
@T410
T410 / vid2gif.sh
Last active December 6, 2021 21:25
ffmpeg video2GIF
#!/bin/sh
palette="/tmp/palette.png"
filters="fps=15,scale=960:-1:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2