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.