Add support for RAW audio (WAV) recording

RAW audio forwarding was supported but not for recording.

Add support for recording a raw audio stream to a `.wav` file (and
`.mkv`).
This commit is contained in:
Romain Vimont
2023-11-13 09:35:18 +01:00
parent 1713422c13
commit 200488111e
8 changed files with 43 additions and 15 deletions

View File

@@ -19,6 +19,7 @@ To record only the audio:
scrcpy --no-video --record=file.opus
scrcpy --no-video --audio-codec=aac --record=file.aac
scrcpy --no-video --audio-codec=flac --record=file.flac
scrcpy --no-video --audio-codec=raw --record=file.wav
# .m4a/.mp4 and .mka/.mkv are also supported for opus, aac and flac
```
@@ -37,6 +38,7 @@ client side. Several formats (containers) are supported:
- Matroska (`.mkv`, `.mka`)
- OPUS (`.opus`)
- FLAC (`.flac`)
- WAV (`.wav`)
The container is automatically selected based on the filename.