How to screencast with FFmpeg – YouTube

How to screencast with FFmpeg

In this YouTube video, I go through how to screencast with FFmpeg. The configuration at first may look a little bit confusing but once you know what each parameter means, it becomes easy to apply any changes or improvements.

In case you don’t want to watch the video, I explain the parameters here briefly,

  • -f x11grab – records from screen
  • -s 1920x1080 – video size (here full HD)
  • -r 30 – frames per second
  • -i :0+1366,0– record from display :0 with starting X offset of 1366 and Y offset of 0. If you have a single monitor no need to set X and Y offsets
  • -f pulse – records voice from Pulse Audio
  • -i default – uses default input device for recording Pulse Audio
  • -c:v libx264 – setting video codec
  • -c:a flac – setting audio codec

There are also some other useful commands that I explain here as well.

To get display number run,

$ echo $DISPLAY #example output :0

To get the display dimension,

$ xdpyinfo | grep 'dimensions:'|awk '{print $2}'

That’s all for this video. If you are interested don’t forget to check out my YouTube channel or check the YouTube section of the site.

Happy weekend!

Inline/featured images credits