Git Product home page Git Product logo

qtscrcpy's People

Contributors

barry-ran avatar feyxiexzf avatar frzmtrsprt avatar ifdu-code avatar jabin-ma avatar jaredtao avatar leiyu-uniontech avatar liangent avatar matteobaccan avatar msnh2012 avatar rainbowxie avatar re2zero avatar shengyu7697 avatar shenzhigang avatar thelumbee avatar yamakuzure avatar yxtj avatar zeroo28 avatar zxfksie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qtscrcpy's Issues

关于和平精英脚本

很高兴大佬弄了和平精英按键脚本映射支持,我和朋友试玩了几局,发现有一点小bug,就是小眼睛按键能用但是视角转不动,我不会编程搜了好多看了好多关于脚本的修改,自己弄了好多天还是搞不定,就连某个按键想要换成左下角的Ctrl都不会了。。。。我太难了,希望大佬更新一下脚本呗~~感激不尽

VideoForm::mouseReleaseEvent函数判断逻辑不严谨

void VideoForm::mouseReleaseEvent(QMouseEvent *event)
{
if (ui->videoWidget->geometry().contains(event->pos())) {
if (!m_controller) {
return;
}
event->setLocalPos(ui->videoWidget->mapFrom(this, event->localPos().toPoint()));
m_controller->mouseEvent(event, ui->videoWidget->frameSize(), ui->videoWidget->size());
}
}

如果这时候坐标越界了(即超过可是的video区域),界面可能处在拖动位置的中间。

无法使用

启动或提示 libpng warning:known incorrect sRGB profile

获取ip地址不严谨

现在的方法只能获取手机和电脑都通过wifi连接下,实际上是无法获取到用户手机的真实IP地址的,

另外一种情况是手机开热点,电脑连接,这时候手机和电脑也在同一个局域网;

adb -s **** shell ifconfig

可以考虑通过,获取wlan swlan rmnet_data下的ip地址;
wlan对于手机和电脑普通wifi连接;
swlan,手机开热点给电脑连接;
rmnet_data手机的真实ip地址;

也不可以不用考虑的这么细致,这个只是个人看法;

关于适配屏幕

Hi~ 大佬你好鸭,有一些异形屏手机投屏之后,尺寸会被挤压,希望能更新拉伸~ 谢谢大佬_(:з」∠)_

Can't we Install after building ?

PC client
Set up the Qt development environment on the target platform (Qt >= 5.9.7, vs >= 2015 (not support mingw))
Clone the project
Open the project root directory all.pro with QtCreator
Compile and run

@barry-ran ... i was wondering how do i install it permanently on my linux system !
Do i have to always run it through QtCreator ?
Would be nice if i could install it as an app and launch it directly !!!

无线功能很不稳定

Android:9
rom:funtouchOS_9
打开了usb调试模式
7月第一次安装是可以无线的 后来就一直不行了
按教程走到启动adbd后
点击无线连接会等待1min 然后返回链接失败 可是重复点击就显示已经链接了 哪怕是点击无线断开后点击无线连接 仍然显示已经链接 然后刷新列表
`update devices...
adb run
AdbProcess::out:List of devices attached

AdbProcess::error:* daemon not running; starting now at tcp:5037

  • daemon started successfully

update devices...
adb run
AdbProcess::out:List of devices attached
9bbd2b54 device

get ip...
adb run
AdbProcess::out:wlan0 Link encap:UNSPEC Driver icnss
inet addr:192.168.8.100 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::9663:72ff:fe8c:d09f/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4541 errors:0 dropped:0 overruns:0 frame:0
TX packets:5580 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3000
RX bytes:3178241 TX bytes:791819

start devices adbd...
adb run
AdbProcess::out:restarting in TCP mode port: 5555

wireless connect...
adb run
AdbProcess::out:failed to connect to 192.168.8.100:5555

wireless connect...
adb run
AdbProcess::out:already connected to 192.168.8.100:5555

wireless disconnect...
adb run
AdbProcess::out:disconnected 192.168.8.100

update devices...
adb run
AdbProcess::out:List of devices attached
9bbd2b54 device
192.168.8.100:5555 offline

wireless connect...
adb run
wait for the end of the current command to run

AdbProcess::out:failed to connect to 192.168.8.100:5555

wireless connect...
adb run
AdbProcess::out:already connected to 192.168.8.100:5555

update devices...
adb run
AdbProcess::out:List of devices attached
9bbd2b54 device
192.168.8.100:5555 offline
`

画面上下颠倒

设备型号: ZTEBA610T

问题:
画面与手机外框垂直方向颠倒,但操作与外框方向一致(自上向下滑动可以划出通知栏)

能否支持坚果R1,三星、华为的大屏模式呢?

可以通过一线通接上一个HDMI的欺骗器,启动大屏模式后,在通过无线的方式或其他方式连接到锤子坚果的TNT或三星的DEX模式,那就太牛了。现在有太多人为了使用大屏模式,买了触控屏。但也有很多人喜欢大屏模式,比如TNT,但是已经有笔记本或PC了,如果能用这种方式解决,应该还是很有市场的,哪怕收费,都会有很多人买的呢。

VideoForm::mouseMoveEvent界面拖动的BUG;

void VideoForm::mouseMoveEvent(QMouseEvent *event)
{
if (ui->videoWidget->geometry().contains(event->pos())) {
if (!m_controller) {
return;
}
event->setLocalPos(ui->videoWidget->mapFrom(this, event->localPos().toPoint()));
m_controller->mouseEvent(event, ui->videoWidget->frameSize(), ui->videoWidget->size());
} else {
if (event->buttons() & Qt::LeftButton) {
move(event->globalPos() - m_dragPosition);
event->accept();
}
}
}

move(event->globalPos() - m_dragPosition);这会导致拖动的时候,界面被误操作拖动;

是否考虑支持音频?

barry你好,
我是一名手机开发者,想问一下是否有考虑过接一下音频的部分。
android Q版本之后可以通过capture audio的权限获取音频了

server模块重试机制待完善

正向代理连接的逻辑可以进一步完善,重连socket可能一直连接不上,这时候可以之后,尝试在server模块内,重启服务;

在按键映射功能中添加对游戏手柄的支持

对于很多游戏来说(比如崩坏三,第五人格,阴阳师和一些动作或格斗类游戏),手柄会比鼠标键盘更适合。目前QtScrcpy已经支持了鼠标键盘的按键映射,希望添加对于游戏手柄的按键映射。
技术上可以考虑使用qt的gamepad包来实现游戏手柄的输入逻辑,接下来就可以使用现有的方法映射并传给手机了。
可能的难点在摇杆(D-pad)的映射上。摇杆是360度的,不能简单地对应成某个按键,需要单独添加一类操作。

Video aspect is permanent

Try to connect devices with different aspect ratio (tablets for example) and picture would look stretched/narrow

画面问题

屏幕横屏之后,退出横屏,画面会出现拉伸(王牌战士)

一些建议

建议做一个选项去处边框(这个软件很低的延迟和流畅度真的是很好,但是直播的话会有个大边框)
建议做一个设置保存(因为每次打开软件都要重新设置更高的码率分辨率)
开放更高的码率(这个我觉得可做可不做233)

鼠标滚动问题

很好用,比SCRCPY流畅,用起来也更方便。只有一个小问题:

我的手机是三星S7 Edge/Android 8.0。鼠标滚轮对于PC应用而言,每滚动一下相当于3行。在手机上每滚动一下相当于翻页,和空格键或者翻页键的效果差不多,这个可以接受。微信朋友圈也OK,但是公众号文章的话,每滚动一次会翻十几页,短文章直接就到底了。

在64位Windows 7和10下面均测试过,同样的问题。麻烦看一下。

使用安兔兔软件测试多点触控,对比scrcpy的延迟比较明显,对比感觉是数据接收对比比较耗时

1、手机上安装安兔兔测试软件,使用多点触控测试
2、鼠标点击窗口,发现手机上先显示点击的红圈,然后投屏窗口上后显示,对比scrcpy显示是同步的
3、从手机上很快显示点击效果来看说明点击事件传送是ok的,那就是从接受画面数据到渲染的过程不如scrcpy,对比代码看怀疑是接收视频数据的方式qt的信号槽不如c的直接调用

添加界面语言手动选择功能

目前的自动选择逻辑是自动根据系统语言选择。对于需要使用英文系统的中文用户不太方便。

而且我发现英文有一些错误,比如录像保存路径被误写成了record save psth。这个错误比较容易发现,但是如果有更复杂的一些问题,不能双语对比会很难发现并引起误解。

画面颜色失真

电脑的画面颜色没有手机的鲜艳,比如看直播时,颜色严重偏黄。

自定义视频尺寸为480p, 720p, 1080p 以及全屏显示的时候, 对于全面屏手机, 横纵比例会失调

自定义视频尺寸为480p, 720p, 1080p 以及全屏显示的时候, 对于全面屏手机, 横纵比例会失调
如下图1所示为自适应尺寸:
图1

如下图2为启动分辨率为720p的时候, 出现了横纵比例失调:
图片

如下图为竖屏全屏的时候, 只是填充屏幕了:
图片

建议自定义视频尺寸的时候可以先获取屏幕分辨率, 得到x, y的比例, 保持原屏幕的比例; 也建议全屏填充的时候能保持投屏比例.

发生转屏动作后,比例异常

问题流程如下:
例如此时状态为竖屏切换至横屏.
1.帧大小发生改变.
2.updateShowSize.
3.contentsMargins().
4.根据Margins重新设置宽高
5.resize
6.切换至横屏完成.

问题点在于第3点,由于此时还是处于竖屏状态,所以获取到的实际上是竖屏状态的margins.
将这个竖屏的值应用到横屏宽高的计算中,出现比例异常.

How to get correct Phone size?

is there any way to fix screen resolution? my phone looks as if its been squashed since the app shows the phone to be shorter and wider than my phone's actual res which is 1080 x 2340 pixels, 19.5:9 ratio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.