Skip to content

Instantly share code, notes, and snippets.

@reedlaw
Created August 30, 2012 02:35
Show Gist options
  • Save reedlaw/3521817 to your computer and use it in GitHub Desktop.
Save reedlaw/3521817 to your computer and use it in GitHub Desktop.
Record Screencast in Ubuntu
sleep 3; avconv -f x11grab -r 25 -s 1280x720 -i :0.0+0,50 -f alsa -i hw:2,0 -vcodec libx264 -preset ultrafast -acodec libmp3lame -threads 0 output.mkv
@reedlaw
Copy link
Author

reedlaw commented Aug 30, 2012

This is a single line command you can run in Terminal to record your screen with audio. You need package avconv. Change hw:2,0 to whatever audio device you use to record (or use default for the built-in mic). Audacity can help you test out recording. You can change the screen size and offset with the -s and -i flags.

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