侧边栏壁纸
博主头像
可乐呢o3o博主等级

少些比较,多些谦虚。

  • 累计撰写 53 篇文章
  • 累计创建 67 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

MAC下使用scrcpy进行安卓投屏

liuker
2022-04-29 / 0 评论 / 0 点赞 / 25 阅读 / 2091 字

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

configurationdescription
--max-fps 15max fps
--bit-rate 2Mbitrate
--print-fpsprint framerate tp console
--encoder _Show available encoders
--encoder OMX.qcom.video.encoder.avcUse encoder
--record file.mp4Record the screen while mirroring
--display-buffer=50add 50 ms buffering for display
--tcpip=192.168.1.1:5555use TCP/IP (wireless)
default port is 5555
--window-title '我的设备'wondow tittle
--window-borderlessWithout border
--always-on-topwindow always on top
--fullscreenfullscreen
--no-controlRead-only,disable controls
--stay-awakeTo prevent the device from sleeping after a delay when the device is plugged in
0

评论区