LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

recordmydesktop

Record desktop screen to video file

TLDR

Record full screen
$ recordmydesktop -o [output.ogv]
copy
Record specific window
$ recordmydesktop --windowid $(xdotool selectwindow) -o [output.ogv]
copy
Record area
$ recordmydesktop -x [100] -y [100] --width [800] --height [600] -o [output.ogv]
copy
Record without sound
$ recordmydesktop --no-sound -o [output.ogv]
copy

SYNOPSIS

recordmydesktop [options]

DESCRIPTION

recordmydesktop is a lightweight screen recorder for Linux X11 sessions that captures desktop video and audio to Ogg Theora/Vorbis format. It can record the full screen, a specific window selected by ID, or a rectangular region defined by position and dimensions.Audio is captured from the default ALSA or OSS input device and can be disabled with --no-sound. Recording is stopped with Ctrl+C, after which the tool encodes the captured frames into the final output file. The --on-the-fly-encoding option encodes during recording to reduce post-processing time at the cost of higher CPU usage.

PARAMETERS

-o file

Output file.
--windowid id
Record specific window.
-x, -y
Starting position.
--width, --height
Recording dimensions.
--no-sound
Disable audio.
--fps n
Frames per second.
--delay n
Delay before start.
--on-the-fly-encoding
Encode while recording.

EXAMPLES

$ # Record full screen
recordmydesktop -o screencast.ogv

# Record window (click to select)
recordmydesktop --windowid $(xdotool selectwindow)

# Record region
recordmydesktop -x 0 -y 0 --width 1280 --height 720 -o region.ogv

# High quality
recordmydesktop --v_quality 63 --s_quality 10 -o hq.ogv

# No cursor
recordmydesktop --no-cursor -o nocursor.ogv
copy

CONTROLS

$ Ctrl+C       - Stop recording
Ctrl+Alt+P   - Pause (if enabled)
copy

INSTALL

sudo apt install recordmydesktop
copy
sudo pacman -S recordmydesktop
copy
sudo apk add recordmydesktop
copy
sudo zypper install recordmydesktop
copy

CAVEATS

X11 only (no Wayland). Output is Ogg format. Convert with ffmpeg for other formats.

HISTORY

recordmydesktop was created by John Googalidis as a simple, efficient screen recorder for Linux.

SEE ALSO

ffmpeg(1), peek(1), obs(1)

Copied to clipboard
Kai