Record screen with ffmpeg on Linux

ffmpegThere are many screen capture utilities for recording your desktop on Linux:

  • Kazam
  • Istanbul
  • recordMyDesktop
  • SimpleScreenRecorder
  • glc
  • Xvidcap
  • Vokoscreen

Updated the article to use avconv instead of ffmpeg.

  • To record video
    avconv -f x11grab -r 25 -s 1280x720 -i :0.0+0,0 -vcodec libx264 -pre lossless_ultrafast -threads 0 video.mkv
  • To record video + audio
    avconv -f alsa -i pulse -f x11grab -r 25 -s 1280x720 -i :0.0+0,0 -acodec libfaac -vcodec libx264 -pre:0 lossless_ultrafast -threads 0 video.mkv

Here‘s my previous post on how to take screenshots from the cmdline using import.

2 thoughts on “Record screen with ffmpeg on Linux”


Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s