mirror of
https://github.com/captn3m0/Scripts.git
synced 2024-09-27 22:22:53 +00:00
7 lines
366 B
Bash
Executable File
7 lines
366 B
Bash
Executable File
#!/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 |