c3d2-web/scripts/encode_gif.sh

8 lines
156 B
Bash
Executable File

#!/bin/sh
if=$1
of=$2
ffmpeg -i "$if" -ss 10 -r 0.002 -b 100k -bt 100M -s 320x180 "$of.%05d.jpg" && \
convert -delay 50 -loop 0 "$of.?????.jpg" "$of.gif"