From c4caa6b81d86cb82fa648612b1b4e4a405d8cab0 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 24 May 2023 21:28:40 +0200 Subject: [PATCH] Document --no-{video,audio}-playback PR #4033 --- doc/audio.md | 2 ++ doc/v4l2.md | 2 +- doc/video.md | 14 ++++++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/doc/audio.md b/doc/audio.md index 08868eaf..a437005c 100644 --- a/doc/audio.md +++ b/doc/audio.md @@ -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: diff --git a/doc/v4l2.md b/doc/v4l2.md index 62480478..23c99912 100644 --- a/doc/v4l2.md +++ b/doc/v4l2.md @@ -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*`) diff --git a/doc/video.md b/doc/video.md index 757d9324..e411cf0d 100644 --- a/doc/video.md +++ b/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