screencast to gif script

This commit is contained in:
Nemo 2016-06-21 14:26:07 +05:30
parent ee40ca62cb
commit 1d7c8ec071
1 changed files with 7 additions and 0 deletions

7
screencast Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
TIMESTAMP=`date +"%Y-%m-%d_%H"`
TMP_AVI=$(mktemp /tmp/outXXXXXXXXXX.avi)
ffcast -s % ffmpeg -y -f x11grab -show_region 1 -framerate 15 \
-video_size %s -i %D+%c -codec:v huffyuv \
-vf crop="iw-mod(iw\\,2):ih-mod(ih\\,2)" $TMP_AVI \
&& convert -set delay 10 -layers Optimize $TMP_AVI /home/nemo/Desktop/GIFs/$TIMESTAMP.gif