scrcpy投屏工具

一、README.md文档翻译

本文翻译自:https://github.com/Genymobile/scrcpy/blob/master/README.md

注:已经有中文翻译的了,可以直接看:https://github.com/Genymobile/scrcpy/wiki/README.zh-Hans

 

1. scrcpy (v2.0)

发音为“screen copy”

此应用程序镜像通过 USB 或 TCP/IP 连接的 Android 设备(视频和音频),并允许使用计算机的键盘和鼠标控制设备。 它不需要任何root访问权限(实测用户手机也可以用)。 它适用于 Linux、Windows 和 macOS。

 

2. 它着重于:

亮度:原生,仅显示设备屏幕
性能:30~120fps,取决于设备
画质:1920×1080以上
低延迟:35~70ms
低启动时间:显示第一张图像约 1 秒
非侵入性:Android 设备上没有安装任何东西
用户利益:无帐户、无广告、无需互联网
自由:自由和开源软件

 

3. 其特点包括:

音频转发(Android >= 11) https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md
记录 https://github.com/Genymobile/scrcpy/blob/master/doc/recording.md
在 Android 设备屏幕关闭的情况下进行镜像 https://github.com/Genymobile/scrcpy/blob/master/doc/device.md#turn-screen-off
双向复制粘贴 https://github.com/Genymobile/scrcpy/blob/master/doc/control.md#copy-paste
可配置的质量 https://github.com/Genymobile/scrcpy/blob/master/doc/video.md
Android 设备屏幕作为网络摄像头 (V4L2)(仅限 Linux)//https://github.com/Genymobile/scrcpy/blob/master/doc/v4l2.md
物理键盘/鼠标模拟 (HID) https://github.com/Genymobile/scrcpy/blob/master/doc/hid-otg.md
OTG模式 https://github.com/Genymobile/scrcpy/blob/master/doc/hid-otg.md#otg
和更多…

 

4. 先决条件

Android 设备至少需要 API 21 (Android 5.0)。

API >= 30 (Android 11+) 支持音频转发。

确保您在设备上启用了 USB 调试。####

在某些设备上,您还需要启用一个附加选项 USB 调试(安全设置)(这是与 USB 调试不同的一项)以使用键盘和鼠标对其进行控制。 设置此选项后,需要重新启动设备。

请注意,在 OTG 模式下运行 scrcpy 不需要 USB 调试。

 

5. 获取此App

Linux https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md
Windows https://github.com/Genymobile/scrcpy/blob/master/doc/windows.md //Window直接安转这个工具就可以使用了
macOS https://github.com/Genymobile/scrcpy/blob/master/doc/macos.md

 

6. 用户文档

该应用程序提供了许多功能和配置选项。 它们记录在以下页面中:

Device https://github.com/Genymobile/scrcpy/blob/master/doc/device.md
Video https://github.com/Genymobile/scrcpy/blob/master/doc/video.md
Audio https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md
Control https://github.com/Genymobile/scrcpy/blob/master/doc/control.md
Window https://github.com/Genymobile/scrcpy/blob/master/doc/window.md
Recording https://github.com/Genymobile/scrcpy/blob/master/doc/recording.md 看测试现象应该有用
Tunnels https://github.com/Genymobile/scrcpy/blob/master/doc/tunnels.md
HID/OTG https://github.com/Genymobile/scrcpy/blob/master/doc/hid-otg.md
Video4Linux https://github.com/Genymobile/scrcpy/blob/master/doc/v4l2.md
Shortcuts https://github.com/Genymobile/scrcpy/blob/master/doc/shortcuts.md


7. Resources

FAQ https://github.com/Genymobile/scrcpy/blob/master/FAQ.md
翻译 (到目前已经不需要了)
Build instructions 编译指令 https://github.com/Genymobile/scrcpy/blob/master/doc/build.md
Developers https://github.com/Genymobile/scrcpy/blob/master/doc/develop.md


8. Articles
Introducing scrcpy https://blog.rom1v.com/2018/03/introducing-scrcpy/
Scrcpy now works wirelessly https://www.genymotion.com/blog/open-source-project-scrcpy-now-works-wirelessly/
Scrcpy 2.0, with audio https://blog.rom1v.com/2023/03/scrcpy-2-0-with-audio/

 

二、使用笔记

1. 选择投哪个屏

# dumpsys window displays | grep mDisplayId
  Display: mDisplayId=3 rootTasks=0
  Display: mDisplayId=2 rootTasks=0
  Display: mDisplayId=0 rootTasks=2

scrcpy --display=0

 

posted on 2023-05-16 22:15  Hello-World3  阅读(485)  评论(0编辑  收藏  举报

导航