Improve recording documentation
This commit is contained in:
parent
7536f95d1c
commit
5042f8de93
1 changed files with 21 additions and 8 deletions
|
@ -21,20 +21,15 @@ scrcpy --no-video --audio-codec=aac --record=file.aac
|
||||||
# .m4a/.mp4 and .mka/.mkv are also supported for both opus and aac
|
# .m4a/.mp4 and .mka/.mkv are also supported for both opus and aac
|
||||||
```
|
```
|
||||||
|
|
||||||
To disable playback while recording:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
scrcpy --no-playback --record=file.mp4
|
|
||||||
scrcpy -Nr file.mkv
|
|
||||||
# interrupt recording with Ctrl+C
|
|
||||||
```
|
|
||||||
|
|
||||||
Timestamps are captured on the device, so [packet delay variation] does not
|
Timestamps are captured on the device, so [packet delay variation] does not
|
||||||
impact the recorded file, which is always clean (only if you use `--record` of
|
impact the recorded file, which is always clean (only if you use `--record` of
|
||||||
course, not if you capture your scrcpy window and audio output on the computer).
|
course, not if you capture your scrcpy window and audio output on the computer).
|
||||||
|
|
||||||
[packet delay variation]: https://en.wikipedia.org/wiki/Packet_delay_variation
|
[packet delay variation]: https://en.wikipedia.org/wiki/Packet_delay_variation
|
||||||
|
|
||||||
|
|
||||||
|
## Format
|
||||||
|
|
||||||
The video and audio streams are encoded on the device, but are muxed on the
|
The video and audio streams are encoded on the device, but are muxed on the
|
||||||
client side. Two formats (containers) are supported:
|
client side. Two formats (containers) are supported:
|
||||||
- Matroska (`.mkv`)
|
- Matroska (`.mkv`)
|
||||||
|
@ -48,3 +43,21 @@ needs not end with `.mkv` or `.mp4`):
|
||||||
```
|
```
|
||||||
scrcpy --record=file --record-format=mkv
|
scrcpy --record=file --record-format=mkv
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## No playback
|
||||||
|
|
||||||
|
To disable playback while recording:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scrcpy --no-playback --record=file.mp4
|
||||||
|
scrcpy -Nr file.mkv
|
||||||
|
# interrupt recording with Ctrl+C
|
||||||
|
```
|
||||||
|
|
||||||
|
It is also possible to disable video and audio playback separately:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Record both video and audio, but only play video
|
||||||
|
scrcpy --record=file.mkv --no-audio-playback
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue