Ubuntu records 30s .webm screencasts in Videos Folder via Ctrl+Shift+Alt+R, automatically convert them to GIF in Pictures Folder, and delete video file
Make sure to have ffmpeg
installed
- Save the
toGIF.sh
in your Videos folder, link - make it executable
chmod +x ~/Videos/toGIF.sh
- Go to Settings ---> Keyboard Shortcuts ---> New ShortCut
- Set a new shortcut like this
note: the command should be the path to shell script
- now whenever you take short screencasts, via default
Ctrl+Shift+Alt+R
, execute theShift+Ctrl+ALt+G
- the script will run in background and convert all .webm in Videos folder to .gif in Pictures Folder, and delete video file.
- Please let the screencast finish, and then initiate the conversion to GIF, otherwise, the GIF will be incomplete and the video will get deleted before its 30s duration.
Please take a look below for better understanding.
Step 1
Step 2