9951 explained code solutions for 126 technologies

ffmpegHow to record video from screen in Ubuntu

This command will start capturing, press Ctrl+C when finished:

ffmpeg -video_size 1280x720 -framerate 25 -f x11grab -i :0.0+100,200 out.mp4ctrl + c

resulting video size to capture


capture 720p video

-framerate 25

set frame rate to 25 per second

-f x11grab

grab video from X11 device

-i :0.0+100,200

set coordinates of top left corner to capture video (100 pixels horizontally and 200 pixels vertically)


resulting video file