How To Record Screen In Linux?


Hi., today I am gonna show you simple script that I use to record my screen. Ffmeg is very usefull tool for video recording, editing, etc. Ffmpeg have a lot of options and one of them is recording screen with detailed options.

Here is my script.

-f x11grab

option specify input or source device which is  xorg screen device

-r 25

is record frame rate per second and 24,25 is generally used values

-s 1600×900

is screen resolution or pixel matrix for selected input

-i :0.0+0,0

is start pixel from left upper corner where we set now 0

-acodec pcm_s16le

is used to recording sound and set codec for sound encoding and compression

-vcodec libx264

is video codec used for compressing the screen

-threads 8

is a performance options that specifies how much cpu core (multiply core count with 2) will be used while processing

~ismail/downloads/video_$(date +”%Y-%m-%d-%H-%M”).mkv

is where the output will be saved and with the mkv enxtension we automatically specify video encoding format $(date +”%Y-%m-%d-%H-%M”) specifiy set file name with current time information and rendered as shell command and then added to the file name

I hope this simple tutorial make some help for you.


LEARN MORE  How To Change Ram Size On Running VM In Libvirt

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)