Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows10下debug报错 #10

Closed
roger-zhao opened this issue Nov 30, 2018 · 6 comments
Closed

windows10下debug报错 #10

roger-zhao opened this issue Nov 30, 2018 · 6 comments

Comments

@roger-zhao
Copy link

编译debug环境:VS2017,QT5.9.6,win10 x64
报错:
ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread 26ff4538. Receiver ‘PlayorPauseBtn' was created in thread 0x……"
请教如何解决?

@itisyang
Copy link
Owner

itisyang commented Dec 1, 2018

这个问题是,线程事件投递问题,理论上来说,应该不会报错才对,我一般直接使用release编译调试,你可以试一下

@roger-zhao
Copy link
Author

@itisyang 感谢回复,我试过了,好像还有,不过点击ignore倒也不影响使用。VS+QT刚开始入坑,请问有推荐的入门博客或者资料没,多谢!

@itisyang
Copy link
Owner

itisyang commented Dec 2, 2018

Qt 的文档就是最好的资料

@roger-zhao
Copy link
Author

@itisyang 收到!再请教个问题,用这个播放器放高码率的rtsp流,延迟比VLC要大好多(1s以上),如果要做调优的话应该如何做呢?是调整datactl.h里面的一些比如MAX_QUEUE_SIZE,SAMPLE_ARRAY_SIZE,#define VIDEO_PICTURE_QUEUE_SIZE 3
#define SUBPICTURE_QUEUE_SIZE 16
#define SAMPLE_QUEUE_SIZE 9
#define FRAME_QUEUE_SIZE FFMAX(SAMPLE_QUEUE_SIZE, FFMAX(VIDEO_PICTURE_QUEUE_SIZE, SUBPICTURE_QUEUE_SIZE)) 之类的,还是必须得对ffmpeg的编码调用做优化?视频小白一个,还请多指教,感谢!

@roger-zhao
Copy link
Author

@itisyang 网上看到有 “-fflags nobuffer -flags low_delay -framedrop -strict experimental”,用ffplay试了下,看起来能把rtsp的延迟降低到.5s左右。还在尝试

@itisyang
Copy link
Owner

itisyang commented Dec 4, 2018

延时问题,需要慢慢调

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants