Added longopts to tuxrecord2.

This commit is contained in:
Johannes Findeisen 2026-10-15 03:34:39 +02:00
commit e585472da0
2 changed files with 25 additions and 20 deletions

View file

@ -34,15 +34,19 @@ tuxrecord2
# Record for N seconds
tuxrecord2 -d 30
tuxrecord2 --duration 30
# Specify output directory
tuxrecord2 -o /path/to/dir
tuxrecord2 --output /path/to/dir
# Use a custom filename prefix
tuxrecord2 -p myrec
tuxrecord2 --prefix myrec
# Use a specific ALSA capture device
tuxrecord2 -D hw:1,0
tuxrecord2 --device hw:1,0
# Encode to FLAC (lossless) or MP3 (lossy) in real time
tuxrecord2 -f flac
@ -54,14 +58,14 @@ tuxrecord2 -D pipewire
## Options
| Option | Description |
| -------------- | -------------------------------------------------------- |
| `-o <dir>` | Output directory (default: current directory) |
| `-d <secs>` | Stop automatically after `<secs>` seconds |
| `-p <prefix>` | Filename prefix instead of `tuxrecord2` |
| `-D <device>` | ALSA capture device (default: `default`; `pipewire` on PipeWire systems) |
| `-f, --format <fmt>` | Output format: `wav`, `flac` or `mp3` (default: `wav`) |
| `-h, --help` | Show help |
| Option | Description |
| ----------------------- | -------------------------------------------------------- |
| `-o, --output <dir>` | Output directory (default: current directory) |
| `-d, --duration <secs>` | Stop automatically after `<secs>` seconds |
| `-p, --prefix <prefix>` | Filename prefix instead of `tuxrecord2` |
| `-D, --device <device>` | ALSA capture device (default: `default`; `pipewire` on PipeWire systems) |
| `-f, --format <fmt>` | Output format: `wav`, `flac` or `mp3` (default: `wav`) |
| `-h, --help` | Show help |
Run `arecord -l` to list available ALSA capture devices. On systems with
PipeWire, list the PipeWire source nodes with `pactl list short sources`