mirror of https://github.com/Genymobile/scrcpy
Document --no-{video,audio}-playback
PR #4033 <https://github.com/Genymobile/scrcpy/pull/4033>
This commit is contained in:
parent
1efbfe1175
commit
c4caa6b81d
|
@ -24,6 +24,8 @@ To disable audio:
|
|||
scrcpy --no-audio
|
||||
```
|
||||
|
||||
To disable only the audio playback, see [no playback](video.md#no-playback).
|
||||
|
||||
## Audio only
|
||||
|
||||
To play audio only, disable the video:
|
||||
|
|
|
@ -35,7 +35,7 @@ To start `scrcpy` using a v4l2 sink:
|
|||
|
||||
```bash
|
||||
scrcpy --v4l2-sink=/dev/videoN
|
||||
scrcpy --v4l2-sink=/dev/videoN --no-playback # disable playback window
|
||||
scrcpy --v4l2-sink=/dev/videoN --no-video-playback # disable playback window
|
||||
```
|
||||
|
||||
(replace `N` with the device ID, check with `ls /dev/video*`)
|
||||
|
|
14
doc/video.md
14
doc/video.md
|
@ -161,8 +161,8 @@ scrcpy --display-buffer=50 --v4l2-buffer=300
|
|||
|
||||
## No playback
|
||||
|
||||
It is possible to capture an Android device without displaying a playback
|
||||
window. This option is available if either [recording](recording.md) or
|
||||
It is possible to capture an Android device without playing video or audio on
|
||||
the computer. This option is useful when [recording](recording.md) or when
|
||||
[v4l2](#video4linux) is enabled:
|
||||
|
||||
```bash
|
||||
|
@ -170,6 +170,16 @@ scrcpy --v4l2-sink=/dev/video2 --no-playback
|
|||
scrcpy --record=file.mkv --no-playback
|
||||
```
|
||||
|
||||
It is also possible to disable video and audio playback separately:
|
||||
|
||||
```bash
|
||||
# Send video to V4L2 sink without playing it, but keep audio playback
|
||||
scrcpy --v4l2-sink=/dev/video2 --no-video-playback
|
||||
|
||||
# Record both video and audio, but only play video
|
||||
scrcpy --record=file.mkv --no-audio-playback
|
||||
```
|
||||
|
||||
|
||||
## No video
|
||||
|
||||
|
|
Loading…
Reference in New Issue