Created
January 9, 2015 12:39
-
-
Save jorgeramirez/acfb6facc1c12bbcc0bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# screencast script with ffmpeg | |
# author: Jorge Ramírez <jorgeramirez1990 at gmail dot com> | |
# help: ./record-screen.sh <record-name> | |
DEST_DIR=./recordings | |
if [ ! -d "$DEST_DIR" ]; then | |
mkdir -p $DEST_DIR | |
fi | |
ffmpeg -f x11grab -r 10 -s 1366x768 -i :0.0 -f alsa -i pulse -vcodec libx264 -preset ultrafast -crf 0 -threads 0 $DEST_DIR/$1.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment