Wednesday, 16 June 2021

Perintah scrcpy

scrcpy --help Usage: scrcpy [options] Options: --always-on-top Make scrcpy window always on top (above other windows). -b, --bit-rate value 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 width:height:x:y 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. -f, --fullscreen Start in fullscreen. -h, --help Print this help. --max-fps value Limit the frame rate of screen capture (only supported on devices with Android >= 10). -m, --max-size value 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). -n, --no-control Disable device control (mirror the device in read-only). -N, --no-display Do not display device (only when screen recording is enabled). -p, --port port Set the TCP port the client listens on. Default is 27183. --prefer-text Inject alpha characters and space as text events instead of key events. This avoids issues when combining multiple keys to enter a special character, but breaks the expected behavior of alpha keys in games (typically WASD). --push-target path Set the target directory for pushing files to the device by drag & drop. It is passed as-is to "adb push". Default is "/sdcard/". -r, --record file.mp4 Record screen to file. The format is determined by the --record-format option if set, or by the file extension (.mp4 or .mkv). --record-format format Force recording format (either mp4 or mkv). --render-expired-frames 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. -s, --serial serial The device serial number. Mandatory only if several devices are connected to adb. -S, --turn-screen-off Turn the device screen off immediately. -t, --show-touches Enable "show touches" on start, disable on quit. It only shows physical touches (not clicks from scrcpy). -v, --version Print the version of scrcpy. --window-borderless Disable window decorations (display borderless window). --window-title text Set a custom window title. --window-x value Set the initial window horizontal position. Default is -1 (automatic). --window-y value Set the initial window vertical position. Default is -1 (automatic). --window-width value Set the initial window width. Default is 0 (automatic). --window-height value Set the initial window width. Default is 0 (automatic). Shortcuts: Ctrl+f switch fullscreen mode Ctrl+g resize window to 1:1 (pixel-perfect) Ctrl+x Double-click on black borders resize window to remove black borders Ctrl+h Middle-click click on HOME Ctrl+b Ctrl+Backspace Right-click (when screen is on) click on BACK Ctrl+s click on APP_SWITCH Ctrl+m click on MENU Ctrl+Up click on VOLUME_UP Ctrl+Down click on VOLUME_DOWN Ctrl+p click on POWER (turn screen on/off) Right-click (when screen is off) power on Ctrl+o turn device screen off (keep mirroring) Ctrl+r rotate device screen Ctrl+n expand notification panel Ctrl+Shift+n collapse notification panel Ctrl+c copy device clipboard to computer Ctrl+v paste computer clipboard to device Ctrl+Shift+v copy computer clipboard to device Ctrl+i enable/disable FPS counter (print frames/second in logs) Drag & drop APK file install APK from computer
Share:

0 comments:

Post a Comment