Scrcpy 下载地址:https://github.com/Genymobile/scrcpy/releases
Github 的 Release 页面下载太慢,可以打开https://d.serctl.com/把网址粘贴到里面下载
使用帮助:
1. 选项
1.1 渲染
比特率 | -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. |
裁剪屏幕 | -c, --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. |
屏幕尺寸 | -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). |
渲染过期的帧 | --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. |
1.2 窗口选项
全屏 | -f, --fullscreen | Start in fullscreen. |
置顶窗口 | -T, --always-on-top | Make scrcpy window always on top (above other windows). |
窗口标题 | --window-title text | Set a custom window title. |
隐藏窗口 | -N, --no-display | Do not display device (only when screen recording is enabled). |
1.3 屏幕录制
录制格式 | -F, --record-format | Force recording format (either mp4 or mkv). |
录屏至文件 | -r, --record file.mp4 | Record screen to file. The format is determined by the -F/--record-format option if set, or by the file extension (.mp4 or .mkv). |
1.4 手机选项
关闭手机屏幕 | -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). |
将发送的文件保存至 | --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/". |
反向控制 | -n, --no-control | Disable device control (mirror the device in read-only). |
1.5 网络
端口 | -p, --port port | Set the TCP port the client listens on. Default is 27183. |
序列号 | -s, --serial serial | The device serial number. Mandatory only if several devices are connected to adb. |
1.6 帮助
帮助 | -h, --help | Print this help. |
版本 | -v, --version | Print the version of scrcpy. |
2 快捷键
注: scrcpy升级以后, Ctrl被更换成了Alt键
2.1 窗口
全屏 | Ctrl+f | switch fullscreen mode |
像素级匹配 | Ctrl+g | resize window to 1:1 (pixel-perfect) |
移除黑边 | Ctrl+x 在黑边上双击 | resize window to remove black borders |
关闭手机屏幕 | Ctrl+o | turn device screen off (keep mirroring) |
启动手机 | Right-click | power on |
显示帧率 | Ctrl+i | enable/disable FPS counter |
2.2 按键
主页 | Ctrl+h 中键单击 | click on HOME |
后退 | Ctrl+b Ctrl+Backspace 右击 (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) |
展开通知面板 | Ctrl+n | expand notification panel |
关闭通知面板 | Ctrl+Shift+n | collapse notification panel |
2.3 传输
复制手机剪切板到电脑 | Ctrl+c | copy device clipboard to computer |
粘贴电脑剪切板到手机 | Ctrl+v | paste computer clipboard to device |
复制电脑剪切板到手机 | Ctrl+Shift+v | copy computer clipboard to device |
从电脑安装APK文件 | 拖放 APK 文件 | install APK from computer |