install
brew install scrcpy
use USB:
scrcpy
wireless:
adb shell ip route | awk '{print $9}'
adb tcpip [port number]
adb connect [device ip:port number]
scrcpy
Capture configuration
configuration | description |
---|---|
--max-fps 15 | max fps |
--bit-rate 2M | bitrate |
--print-fps | print framerate tp console |
--encoder _ | Show available encoders |
--encoder OMX.qcom.video.encoder.avc | Use encoder |
--record file.mp4 | Record the screen while mirroring |
--display-buffer=50 | add 50 ms buffering for display |
--tcpip=192.168.1.1:5555 | use TCP/IP (wireless) default port is 5555 |
--window-title '我的设备' | wondow tittle |
--window-borderless | Without border |
--always-on-top | window always on top |
--fullscreen | fullscreen |
--no-control | Read-only,disable controls |
--stay-awake | To prevent the device from sleeping after a delay when the device is plugged in |
评论区