scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit e584dab35b77d87e7d2585d7c49f2bc1f1eefc9e
parent 1f5437c47d1c3cdc0970e18a9b908a1a7321771a
Author: z3bra <willy@mailoo.org>
Date:   Wed Feb  5 13:37:01 +0100

changed the gif thing... still not good enough

Diffstat:
instagram | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/instagram b/instagram @@ -59,9 +59,13 @@ function gifit() { test -z "$SCREEN" && SCREEN=0 RES=`xdpyinfo -ext XINERAMA | sed -n "s/^ head #$SCREEN: \([0-9x]*\) .*$/\1/p"` - mkdir $SSHOT_DIR/tmp - ffmpeg -f x11grab -s $RES -r 12 -i :0.$SCREEN $SSHOT_DIR/tmp/$1 + mkdir $SSHOT_DIR/tmp/ + ffmpeg -f x11grab -s $RES -r 8 -i :0.$SCREEN $SSHOT_DIR/tmp/record.mkv + ffmpeg -i $SSHOT_DIR/tmp/record.mkv -t 0:0:5 -f image2 $SSHOT_DIR/tmp/%03d.jpg + convert -delay 10 $SSHOT_DIR/tmp/*.jpg -coalesce -layers OptimizeTransparency $1 + + rm -rf $SSHOT_DIR/tmp/ } [[ "$1" = "--help" ]] && usage && exit 0