Ubuntu Manpages

scrcpy

Display and control your Android device

scrcpy [options]

scrcpy provides display and control of Android devices connected on USB (or over TCP/IP). It does not require any root access.

Make scrcpy window always on top (above other windows).

Encode the video at the given bit-rate, expressed in bits/s. Unit suffixes are supported: 'K' (x1000) and 'M' (x1000000).

Default is 8000000.

Crop the device screen on the server.

The values are expressed in the device natural orientation (typically, portrait for a phone, landscape for a tablet). Any --max-size value is computed on the cropped size.

Start in fullscreen.

Print this help.

Limit the framerate of screen capture (only supported on devices with Android >= 10).

Limit both the width and height of the video to value. The other dimension is computed so that the device aspect-ratio is preserved.

Default is 0 (unlimited).

Disable device control (mirror the device in read-only).

Do not display device (only when screen recording is enabled).

Set the TCP port the client listens on.

Default is 27183.

Inject alpha characters and space as text events instead of key events.

This avoids issues when combining multiple keys to enter special characters, but breaks the expected behavior of alpha keys in games (typically WASD).

Set the target directory for pushing files to the device by drag & drop. It is passed as-is to "adb push".

Default is "/sdcard/".

Record screen to file.

The format is determined by the --record-format option if set, or by the file extension (.mp4 or .mkv).

Force recording format (either mp4 or mkv).

By default, to minimize latency, scrcpy always renders the last available decoded frame, and drops any previous ones. This flag forces to render all frames, at a cost of a possible increased latency.

The device serial number. Mandatory only if several devices are connected to adb.

Turn the device screen off immediately.

Enable "show touches" on start, disable on quit.

It only shows physical touches (not clicks from scrcpy).

Print the version of scrcpy.

Disable window decorations (display borderless window).

Set a custom window title.

Set the initial window horizontal position.

Default is -1 (automatic).

Set the initial window vertical position.

Default is -1 (automatic).

Set the initial window width.

Default is 0 (automatic).

Set the initial window height.

Default is 0 (automatic).

switch fullscreen mode

resize window to 1:1 (pixel-perfect)

resize window to remove black borders

Click on HOME

Click on BACK

Click on APP_SWITCH

Click on MENU

Click on VOLUME_UP

Click on VOLUME_DOWN

Click on POWER (turn screen on/off)

turn screen on

turn device screen off (keep mirroring)

rotate device screen

expand notification panel

collapse notification panel

copy device clipboard to computer

paste computer clipboard to device

copy computer clipboard to device

enable/disable FPS counter (print frames/second in logs)

install APK from computer

Specify the path to adb.

Specify the path to server binary.

scrcpy is written by Romain Vimont.

This manual page was written by Yangfl for the Debian Project (and may be used by others).

Report bugs to https://github.com/Genymobile/scrcpy/issues.

Copyright © 2018 Genymobile Genymobile

Copyright © 2018-2019 Romain Vimont

Licensed under the Apache License, Version 2.0.

https://github.com/Genymobile/scrcpy