Skip to content

Instantly share code, notes, and snippets.

@rg3915
Last active February 23, 2016 14:34
Show Gist options
  • Save rg3915/6c81209e15add0f56d22 to your computer and use it in GitHub Desktop.
Save rg3915/6c81209e15add0f56d22 to your computer and use it in GitHub Desktop.
How to record screencast on the Linux with ffmpeg

Install ffmpeg.

$ sudo apt-get install ffmpeg

Run command on terminal or create a rec.sh

ledate=$(date +"%Y%m%d-%H%M%S")
ffmpeg -f x11grab -s 1366x768 -r 25 -i :0.0 -acodec pcm_s16le -f alsa -ac 2 -i pulse ~/desktop_$ledate.mkv

If run rec.sh...

$ ./rec.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment