Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions doc/audio.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ available), unless `--require-audio` is set.

To disable audio:

```
```bash
scrcpy --no-audio
```

Expand All @@ -45,7 +45,7 @@ scrcpy --no-window
Without video, the audio latency is typically not critical, so it might be
interesting to add [buffering](#buffering) to minimize glitches:

```
```bash
scrcpy --no-video --audio-buffer=200
```

Expand All @@ -55,14 +55,14 @@ By default, the device audio output is forwarded.

It is possible to capture the device microphone instead:

```
```bash
scrcpy --audio-source=mic
```

For example, to use the device as a dictaphone and record a capture directly on
the computer:

```
```bash
scrcpy --audio-source=mic --no-video --no-playback --record=file.opus
```

Expand All @@ -85,7 +85,7 @@ Many sources are available:
An alternative device audio capture method is also available (only for Android
13 and above):

```
```bash
scrcpy --audio-source=playback
```

Expand Down Expand Up @@ -183,7 +183,7 @@ If you don't interact with the device (to watch a video for example), a higher
latency (for both [video](video.md#buffering) and audio) might be preferable to
avoid glitches and smooth the playback:

```
```bash
scrcpy --video-buffer=200 --audio-buffer=200
```

Expand Down
16 changes: 8 additions & 8 deletions doc/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Camera mirroring is supported for devices with Android 12 or higher.

To capture the camera instead of the device screen:

```
```bash
scrcpy --video-source=camera
```

Expand Down Expand Up @@ -34,7 +34,7 @@ scrcpy --video-source=camera --no-audio-playback --record=file.mp4

To list the cameras available (with their declared valid sizes and frame rates):

```
```bash
scrcpy --list-cameras
scrcpy --list-camera-sizes
```
Expand All @@ -48,7 +48,7 @@ not declared but supported._

It is possible to pass an explicit camera id (as listed by `--list-cameras`):

```
```bash
scrcpy --video-source=camera --camera-id=0
```

Expand All @@ -73,15 +73,15 @@ scrcpy --video-source=camera --camera-id=0 --camera-facing=front # error

It is possible to pass an explicit camera size:

```
```bash
scrcpy --video-source=camera --camera-size=1920x1080
```

The given size may be listed among the declared valid sizes
(`--list-camera-sizes`), but may also be anything else (some devices support
arbitrary sizes):

```
```bash
scrcpy --video-source=camera --camera-size=1840x444
```

Expand Down Expand Up @@ -117,7 +117,7 @@ scrcpy --video-source=camera --camera-size=1920x1080 -m3000 # error
To rotate the captured video, use the [video orientation](video.md#orientation)
option:

```
```bash
scrcpy --video-source=camera --camera-size=1920x1080 --orientation=90
```

Expand All @@ -128,7 +128,7 @@ By default, camera is captured at Android's default frame rate (30 fps).

To configure a different frame rate:

```
```bash
scrcpy --video-source=camera --camera-fps=60
```

Expand All @@ -140,7 +140,7 @@ The Android camera API also supports a [high speed capture mode][high speed].
This mode is restricted to specific resolutions and frame rates, listed by
`--list-camera-sizes`.

```
```bash
scrcpy --video-source=camera --camera-size=1920x1080 --camera-fps=240
```

Expand Down
2 changes: 1 addition & 1 deletion doc/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ As soon as a client connects over TCP on port 1234, the device will start
streaming the video. For example, VLC can play the video (although you will
experience a very high latency, more details [here][vlc-0latency]):

```
```bash
vlc -Idummy --demux=h264 --network-caching=0 tcp://localhost:1234
```

Expand Down
12 changes: 6 additions & 6 deletions doc/device.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ scrcpy -Sw # short version

Since Android 15, it is possible to change this setting manually:

```
```bash
# turn screen off (0 for main display)
adb shell cmd display power-off 0
# turn screen on
Expand Down Expand Up @@ -149,28 +149,28 @@ scrcpy --list-apps

An app, selected by its package name, can be launched on start:

```
```bash
scrcpy --start-app=org.mozilla.firefox
```

This feature can be used to run an app in a [virtual
display](virtual_display.md):

```
```bash
scrcpy --new-display=1920x1080 --start-app=org.videolan.vlc
```

The app can be optionally forced-stop before being started, by adding a `+`
prefix:

```
```bash
scrcpy --start-app=+org.mozilla.firefox
```

For convenience, it is also possible to select an app by its name, by adding a
`?` prefix:

```
```bash
scrcpy --start-app=?firefox
```

Expand All @@ -179,6 +179,6 @@ passing the package name is recommended.

The `+` and `?` prefixes can be combined (in that order):

```
```bash
scrcpy --start-app=+?firefox
```
2 changes: 1 addition & 1 deletion doc/mouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ options for this mouse mode to work. See
By default, mouse hover (mouse motion without any clicks) events are forwarded
to the device. This can be disabled with:

```
```bash
scrcpy --no-mouse-hover
```

Expand Down
4 changes: 2 additions & 2 deletions doc/recording.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The container is automatically selected based on the filename.
It is also possible to explicitly select a container (in that case the filename
needs not end with a known extension):

```
```bash
scrcpy --record=file --record-format=mkv
```

Expand Down Expand Up @@ -89,6 +89,6 @@ scrcpy --record=file.mkv --time-limit=20 # in seconds
The `--time-limit` option is not limited to recording, it also impacts simple
mirroring:

```
```bash
scrcpy --time-limit=20
```
2 changes: 1 addition & 1 deletion doc/tunnels.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ establishment (typically `27183`, see `--port`). It is also possible to force a
different tunnel port (it may be useful in more complex situations, when more
redirections are involved):

```
```bash
scrcpy --tunnel-port=1234
```

Expand Down
6 changes: 3 additions & 3 deletions doc/video.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ scrcpy --max-fps=15

The actual capture frame rate may be printed to the console:

```
```bash
scrcpy --print-fps
```

Expand Down Expand Up @@ -169,7 +169,7 @@ values are allowed when recording.

To rotate the video content by a custom angle (in degrees, clockwise):

```
```bash
scrcpy --angle=23
```

Expand Down Expand Up @@ -271,7 +271,7 @@ scrcpy --record=file.mkv --no-audio-playback

To disable video forwarding completely, so that only audio is forwarded:

```
```bash
scrcpy --no-video
```

Expand Down
4 changes: 2 additions & 2 deletions doc/virtual_display.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ scrcpy --new-display=1920x1080 --no-vd-system-decorations --start-app=org.fossif
By default, virtual display system decorations are enabled. To disable them, use
`--no-vd-system-decorations`:

```
```bash
scrcpy --new-display --no-vd-system-decorations
```

Expand All @@ -60,7 +60,7 @@ By default, when the virtual display is closed, the running apps are destroyed.

To move them to the main display instead, use:

```
```bash
scrcpy --new-display --no-vd-destroy-content
```

Expand Down
2 changes: 1 addition & 1 deletion doc/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ scrcpy

or with arguments (here to disable audio and record to `file.mkv`):

```
```bash
scrcpy --no-audio --record=file.mkv
```

Expand Down