c3d2-web/scripts/encode_gif.sh

8 lines
189 B
Bash
Executable File

#!/bin/sh
if=$1
of=`basename "$if"|sed -e 's/\..\+//'`
ffmpeg -i "$if" -ss 10 -r 0.002 -b 100k -bt 100M -s 512x288 "$of.%05d.jpg" && \
convert -delay 50 -loop 0 "$of.?????.jpg" "$of.gif"