Skip to content

Commit

Permalink
#33: add example v4l2loopback commandline
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Nov 24, 2023
1 parent 52c47fd commit 82622bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,21 @@ wl-screenrec --audio
wl-screenrec --audio --audio-device alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor # capture desktop audio (example, use `pactl list short sources` to figure out what you should put here)
```

Record with history
Record with history:
```bash
wl-screenrec --history 10 & # record the most recent 10 seconds into memory, not writing into the file
# ... some important event occurs
killall -USR1 wl-screenrec # flush the most recent 10 seconds onto the file, and start appending to the file like recording normally
```

Capture to [v4l2loopback](https://github.com/umlaeute/v4l2loopback) (for Zoom, etc):

```bash
sudo modprobe v4l2loopback
v4l2-ctl --list-devices # find "Dummy video device" device. /dev/video6 in my case.
wl-screenrec --ffmpeg-muxer v4l2 -f /dev/video6
```

# All options

```text
Expand Down

0 comments on commit 82622bb

Please sign in to comment.