~/Videos/YYYY-MM-DD-HH-MM-SS.mp4. Override with --output or the config file.
Basic Usage
otter-rec is a toggle. One invocation starts recording, the next stops it.
--region select opens the same drag-to-select UI as otter-screenshot and otter-shot. Drag a rectangle, or pass --region X,Y,W,H for fixed global logical coordinates. --window active captures the focused window through ext_foreign_toplevel_image_capture_source_manager_v1.
Hardware Encoding
otter-rec probes your GPU at startup and selects the best available hardware encoder.| GPU vendor | Primary encoder family |
|---|---|
| NVIDIA | NVENC (h264_nvenc, hevc_nvenc, av1_nvenc) |
| Intel | Quick Sync / QSV (h264_qsv, hevc_qsv, av1_qsv) |
| AMD | VAAPI (h264_vaapi, hevc_vaapi, av1_vaapi) |
--hevc for HEVC, or --av1 for AV1. Both flags work for any vendor.
Hardware encoders come from your distribution’s FFmpeg packages. Make sure
libavcodec, libavformat, libavutil, and libswscale are installed and built with the encoder backends you need.Configuration
otter-rec reads~/.config/otter-shell/otter-rec.conf on startup.
output: destination file path. Empty writes to~/Videos/YYYY-MM-DD-HH-MM-SS.mp4source: capture source hint for encoder path selectionmode:fullscreen,region, orwindowcodec:h264,hevc, orav1force_portal:truealways uses xdg-desktop-portal source selection (same as--portal)fps: target frame rate (default30)seconds: fixed duration in seconds;0records until stoppedbitrate: target bitrate in bits per second (default12000000, 12 Mbps)
Hotkey Setup
Portal Mode
Pass--portal to force an xdg-desktop-portal ScreenCast session before recording. The portal presents its own source picker (screen, window, or region, depending on your compositor). otter-rec records through its own in-process capture and encoder path once the session is established.
Portal detection checks for a live Wayland socket, PipeWire and session bus sockets in the runtime directory, then verifies org.freedesktop.portal.ScreenCast.version before proceeding.
Set force_portal = true in the config file to make portal mode the default.
otter-rec uses only Wayland capture paths. X11 is not supported. If you are running under XWayland, make sure your compositor exposes the required Wayland protocols.

