mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-07-28 11:48:39 +00:00
feat: sync scrcpy
This commit is contained in:
parent
c31f965412
commit
fc8f465ea2
50 changed files with 1480 additions and 307 deletions
|
@ -189,7 +189,7 @@ The client uses 4 threads:
|
|||
recording,
|
||||
- the **controller** thread, sending _control messages_ to the server,
|
||||
- the **receiver** thread (managed by the controller), receiving _device
|
||||
messages_ from the client.
|
||||
messages_ from the server.
|
||||
|
||||
In addition, another thread can be started if necessary to handle APK
|
||||
installation or file push requests (via drag&drop on the main window) or to
|
||||
|
@ -214,7 +214,7 @@ When a new decoded frame is available, the decoder _swaps_ the decoding and
|
|||
rendering frame (with proper synchronization). Thus, it immediatly starts
|
||||
to decode a new frame while the main thread renders the last one.
|
||||
|
||||
If a [recorder] is present (i.e. `--record` is enabled), then its muxes the raw
|
||||
If a [recorder] is present (i.e. `--record` is enabled), then it muxes the raw
|
||||
H.264 packet to the output video file.
|
||||
|
||||
[stream]: https://github.com/Genymobile/scrcpy/blob/ffe0417228fb78ab45b7ee4e202fc06fc8875bf3/app/src/stream.h
|
||||
|
@ -282,6 +282,15 @@ meson x -Dserver_debugger=true
|
|||
meson configure x -Dserver_debugger=true
|
||||
```
|
||||
|
||||
If your device runs Android 8 or below, set the `server_debugger_method` to
|
||||
`old` in addition:
|
||||
|
||||
```bash
|
||||
meson x -Dserver_debugger=true -Dserver_debugger_method=old
|
||||
# or, if x is already configured
|
||||
meson configure x -Dserver_debugger=true -Dserver_debugger_method=old
|
||||
```
|
||||
|
||||
Then recompile.
|
||||
|
||||
When you start scrcpy, it will start a debugger on port 5005 on the device.
|
||||
|
|
28
docs/FAQ.md
28
docs/FAQ.md
|
@ -3,6 +3,26 @@
|
|||
|
||||
如果在此文档没有解决你的问题,描述你的问题,截图软件控制台中打印的日志,一起发到QQ群里提问。
|
||||
|
||||
# adb问题
|
||||
## ADB版本之间的冲突
|
||||
```
|
||||
adb server version (41) doesn't match this client (39); killing...
|
||||
```
|
||||
当你的电脑中运行不同版本的adb时,会发生此错误。你必须保证所有程序使用相同版本的adb。
|
||||
现在你有两个办法解决这个问题:
|
||||
1. 任务管理器找到adb进程并杀死
|
||||
2. 配置QtScrcpy的config.ini中的AdbPath路径指向当前使用的adb
|
||||
|
||||
## 手机通过数据线连接电脑,刷新设备列表以后,没有任何设备出现
|
||||
随便下载一个手机助手,尝试连接成功以后,再用QtScrcpy刷新设备列表连接
|
||||
|
||||
# 控制问题
|
||||
## 可以看到画面,但无法控制
|
||||
有些手机(小米等手机)需要额外打开控制权限,检查是否USB调试里打开了允许模拟点击
|
||||
|
||||
.jpg)
|
||||
|
||||
# 其它
|
||||
## 支持声音(软件不做支持)
|
||||
[关于转发安卓声音到PC的讨论](https://github.com/Genymobile/scrcpy/issues/14#issuecomment-543204526)
|
||||
|
||||
|
@ -21,19 +41,11 @@ QtScrcpy.exe>属性>兼容性>更改高DPI设置>覆盖高DPI缩放行为>由以
|
|||
## 无法输入中文
|
||||
手机端安装搜狗输入法/QQ输入法就可以支持输入中文了
|
||||
|
||||
## 可以看到画面,但无法控制
|
||||
有些手机(小米等手机)需要额外打开控制权限,检查是否USB调试里打开了允许模拟点击
|
||||
|
||||
.jpg)
|
||||
|
||||
## 可以控制,但无法看到画面
|
||||
控制台错误信息可能会包含 QOpenGLShaderProgram::attributeLocation(vertexIn): shader program is not linked
|
||||
|
||||
一般是由于显卡不支持当前的视频渲染方式,config.ini里修改下解码方式,改成1或者2试试
|
||||
|
||||
## 手机通过数据线连接电脑,刷新设备列表以后,没有任何设备出现
|
||||
随便下载一个手机助手,尝试连接成功以后,再用QtScrcpy刷新设备列表连接
|
||||
|
||||
## 错误信息:AdbProcess::error:adb server version (40) doesnt match this client (41)
|
||||
任务管理找到adb进程并杀死,重新操作即可
|
||||
|
||||
|
|
11
docs/TODO.md
11
docs/TODO.md
|
@ -1,21 +1,22 @@
|
|||
最后同步scrcpy 31bd95022bc525be42ca273d59a3211d964d278b
|
||||
最后同步scrcpy 3c0fc8f54f42bf6e7eca35b352a7d343749b65c4
|
||||
|
||||
# TODO
|
||||
## 低优先级
|
||||
- [单独线程统计帧率](https://github.com/Genymobile/scrcpy/commit/e2a272bf99ecf48fcb050177113f903b3fb323c4)
|
||||
- text转换 https://github.com/Genymobile/scrcpy/commit/c916af0984f72a60301d13fa8ef9a85112f54202?tdsourcetag=s_pctim_aiomsg
|
||||
- 关闭number lock时的数字小键盘处理 https://github.com/Genymobile/scrcpy/commit/cd69eb4a4fecf8167208399def4ef536b59c9d22
|
||||
- mipmapping https://github.com/Genymobile/scrcpy/commit/bea7658807d276aeab7d18d856a366c83ee05827
|
||||
|
||||
## 中优先级
|
||||
- 脚本
|
||||
- 某些机器软解不行
|
||||
- opengles 3.0 兼容性参考[这里](https://github.com/libretro/glsl-shaders/blob/master/nnedi3/shaders/yuv-to-rgb-2x.glsl)
|
||||
- 通过host:track-devices实现自动连接 https://www.jianshu.com/p/2cb86c6de76c
|
||||
- 旋转 https://github.com/Genymobile/scrcpy/commit/d48b375a1dbc8bed92e3424b5967e59c2d8f6ca1
|
||||
|
||||
## 高优先级
|
||||
- linux打包以及版本号
|
||||
- 关于
|
||||
- 旋转
|
||||
- ubuntu自动打包
|
||||
- 版本号抽离优化
|
||||
- 音频转发 https://github.com/rom1v/sndcpy
|
||||
|
||||
# mark
|
||||
## ffmpeg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue