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 快捷鍵
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 |