1 Star 0 Fork 64

ysdxhsw / escrcpy

forked from viarotel-org / escrcpy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0
viarotel-escrcpy

Escrcpy

📱 使用图形界面的 Scrcpy 显示和控制您的 Android 设备,由 Electron 驱动。English Document

viarotel-escrcpy

更多截图

特点

  • 🏃 同步:得益于 Web 技术,将更快速的与 Scrcpy 保持同步
  • 💡 定制化:支持对多个设备偏好进行独立配置,并且能够添加备注以及导入导出所有配置的功能
  • 🔗 反向供网:集成了 Gnirehtet 反向供网功能
  • 🎨 主题:支持浅色模式和深色模式,跟随系统切换
  • 😎 轻巧度:本机支持,仅显示设备屏幕
  • ⚡️ 性能:30~120 帧每秒,取决于设备
  • 🌟 质量:1920×1080 或更高
  • 🕒 低延迟:35~70 毫秒
  • 🚀 快速启动:显示第一张图片仅需约 1 秒钟
  • 🙅‍♂️ 非侵入性:不会在安卓设备上留下任何安装文件
  • 🤩 用户收益:无需账户、无广告、无需互联网连接
  • 🗽 自由:免费且开源软件

获取软件包

查看发布地址

快速上手

USB 连接

注意:如果手机上提示调试授权请点击允许

  1. 安卓手机需开启开发者模式并打开 USB 调试
  2. 打开 Escrcpy 并将安卓手机连接到你的电脑
  3. 这时 Escrcpy 设备列表应该已经检测到你的手机,点击开始镜像
  4. 开始享受吧

WIFI 连接

注意:如果首次无线连接失败,你可能需要无线配对请参阅 常见问题

注意:需同时开启无线调试功能,并在无线调试页面中获取你的当前设备的无线地址(通常为你连接 WIFI 时分配的 IP 地址)及端口号(默认为 5555)

  1. 同 USB 连接中的 1-2 步骤
  2. 将获取到的设备 IP 地址及端口号填写到 Escrcpy 中,然后点击连接设备
  3. 这时 Escrcpy 设备列表应该已经检测到你的手机,点击开始镜像
  4. 开始享受吧

macOS && Linux

注意:这些平台没有集成 Scrcpy 需要手动安装

  1. Linux 可参阅的 安装文档
  2. macOS 可参阅的 安装文档
  3. 安装上述依赖成功后步骤同 USB 连接 和 WIFI 连接

Gnirehtet 反向供网

注意: macOS 内部没有集成如需使用需要手动安装 安装文档

Windows 及 Linux 端内部集成了 Gnirehtet, 用于提供 PC 到安卓设备的反向供网功能。

快捷键

请参阅 scrcpy/doc/shortcuts

设备交互栏

  • 切换键
  • 主屏幕键
  • 返回键
  • 通知栏
  • 电源键
  • 重启设备
  • 截取屏幕
  • 安装应用
  • 反向供网(Gnirehtet)

偏好设置

持续完善中 目前支持以下常用配置

通用

  • Adb 路径
  • Scrcpy 路径
  • 文件存储路径(音视频录制及设备截图都保存在这里)
  • Gnirehtet 路径
  • Gnirehtet 修复
  • Scrcpy 追加参数
  • 更换主题
  • 调整语言
  • 开启调试

视频控制

  • 分辨率
  • 比特率
  • 刷新率
  • 视频编码
  • 屏幕旋转
  • 屏幕裁剪
  • 显示器
  • 视频缓冲
  • 接收器(v4l2)缓冲

设备控制

  • 展示触摸点
  • 保持清醒
  • 控制时关闭屏幕
  • 控制结束关闭屏幕
  • 控制时停止充电

窗口控制

  • 无边框模式
  • 全屏模式
  • 始终位于顶部
  • 禁用屏幕保护

音视频录制

  • 录制格式
  • 录制时长
  • 录制视频方向
  • 禁用视频录制
  • 禁用视频播放
  • 禁用音频录制
  • 禁用音频播放

音频控制

  • 音频源
  • 音频编码
  • 音频比特率
  • 音频缓冲
  • 音频输出缓冲

OTG

  • 启用 OTG
  • 仅键盘
  • 仅鼠标

摄像控制

  • 启用摄像
  • 摄像源
  • 摄像尺寸
  • 摄像比例
  • 摄像帧率

下一步做什么?

优先级从高到低

  1. 用户界面进行优化,制作合适的 Logo ✅
  2. 内置的软件更新功能 ✅
  3. 录制和保存音视频 ✅
  4. 添加设备快捷交互控制栏 ✅
  5. 支持自定义 Adb 及 Scrcpy 依赖 ✅
  6. 支持自定义设备名称,以及偏好设置的导出及导入 ✅
  7. 定制化,支持对单个设备进行独立配置 ✅
  8. 添加 macOS 及 linux 操作系统的支持 ✅
  9. 支持国际化 ✅
  10. 对深色模式的支持 ✅
  11. 添加 Gnirehtet 反向供网功能 ✅
  12. 添加新的相机镜像相关功能 ✅
  13. 更好的多屏协同 ✅
  14. 设备交互栏添加更多功能:文件推送、旋转屏幕、音频控制等功能 ✅
  15. 支持批量连接历史设备功能 ✅
  16. 支持使用内置终端执行自定义命令 ✅
  17. 添加独立的剪切板同步功能 🚧
  18. 支持通过界面从设备下载选中的文件 🚧
  19. 支持对设备进行分组,以及按组进行批量操作 🚧
  20. 添加对游戏的增强功能,如游戏键位映射 🚧

常见问题

电脑连接设备后无法检测到

  1. 请重新插拔你的设备,并确认设备同意了 USB 调试授权窗口。
  2. 如果还不行,你的电脑可能缺少必要的驱动程序,请使用第三方工具 如:驱动精灵,安装必要的驱动后重试。

无法输入中文

该问题是已知的, Scrcpy 似乎并未直接对中文输入进行测试和支持 需要在手机端安装第三方输入法 以下输入法经测试可以很好支持

  • 搜狗输入法
  • QQ 输入法
  • 谷歌拼音输入法
  • Gboard

无线连接提示: 目标计算机积极拒绝访问

第一次无线连接可能需要配对 或 插入 USB 以保证与电脑建立连接即授权成功后方可使用

通过数据线连接后点击无线模式没有反应

请再点一次,或点击刷新设备,一般不会超过两次,如果还不行,请提供机型和安卓版本信息到 Issues

设备交互控制栏为什么不设计为自动跟踪吸附的悬浮菜单?

采用悬浮菜单方案不可避免地会增加对 Scrcpy 的耦合性,并增加与 Scrcpy 同步更新的难度。许多类似的 ScrcpyGUI 软件在使用此方案后不得不投入大量精力,最终因更新困难而放弃开发。因此,综合考虑,我们决定采用现有的方案,并期待 Scrcpy 未来能够增加原生交互控制栏的支持。

某些设备连接镜像后可以看到画面但是无法操作

注意:以小米手机为例,不仅需要开启 USB 调试还需要开启 USB 调试(安全设置)也就是允许通过 USB 调试修改权限或模拟点击的功能

可供参阅的详细说明 鼠标和键盘不工作的原因

下载软件包时提示报毒导致无法正常下载

经过反馈,有时在 Windows 环境下,由于软件包没有进行证书签名,可能会被 Windows Defender 误认为有害而导致拦截提示,可以尝试以下解决方法

  1. 打开 Windows 安全中心
  2. 选择 病毒和威胁防护
  3. 病毒和威胁防护设置 下,点击 管理设置
  4. 找到 实时保护,如果权限允许,可以尝试点击关闭。如果无法关闭实时保护,请跳过此步骤。
  5. 向下滑动页面,找到 排除项,点击 添加或删除排除项
  6. 添加您下载软件包的文件夹路径作为排除项,即将该文件夹添加到排除列表中。

获取设备列表失败或开始镜像/录屏报错

该问题一般是 AdbScrcpy 依赖路径错误导致的,可以尝试以下解决方法

  1. 在菜单中选择 偏好设置,然后在 Global 模式 下点击右上角的 重置配置
  2. 接下来,进入 设备列表 页面,并尝试重新开启镜像功能。
  3. 如果问题仍然存在,请确保您已下载并安装了最新版本的 Escrcpy
  4. 按下 Ctrl + Shift + I 进入开发者工具,并查看是否有任何报错信息。
  5. 如果有报错,请截图并在 反馈问题 页面中提交您的问题。

macOS 关闭窗口选择最小化到托盘后顶部右侧状态栏找不到图标

这个一般是状态栏图标过多导致无法展示 Escrcpy 的图标 推荐用以下工具解决

macOS 安装成功后打开提示文件损坏

这个通常是因为软件包本身没有签名导致的,可以尝试以下解决方法

  1. 终端中执行 sudo spctl --master-disable 以允许任何来源
  2. 终端中执行 sudo xattr -r -d com.apple.quarantine [AppPath] 以尝试修复提示软件包损坏

获得帮助

因为是开源项目 全靠爱发电 所以支持有限 更新节奏不固定

注意:非 BUG 或计划外的需求,有偿处理;至于金额,根据问题难易程度,你觉得帮助了多少,看着给吧(维护这些项目已经耗费了大量精力,还要免费花时间解答问题就说不过去了吧...所以白嫖的一律不通过。)

致谢

该项目的诞生离不开以下开源项目

支持项目

如果该项目帮到你的话,可以请我喝杯咖啡,让我更有精神完善该项目 😛

viarotel-wepay viarotel-alipay
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright (C) 2023 viarotel Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

📱 使用图形化的 Scrcpy 显示和控制您的 Android 设备,由 Electron 驱动 展开 收起
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ysdxhsw/escrcpy.git
git@gitee.com:ysdxhsw/escrcpy.git
ysdxhsw
escrcpy
escrcpy
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891