-
Notifications
You must be signed in to change notification settings - Fork 21
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
qmdkqmlplay QML example flickering on top of Qt 3D scene #9
Comments
not sure why flip y in mdk may fail in issue #9
This change can fix the issue 98567ff |
Indeed it fixed the issue, @wang-bin, thanks! Now when I get back to tests, my app on windows crashed after several seconds without starting video. Only when I updated mdk-sdk from 0.10.4 to the newest 0.11.0 it starts working back again. According to mdk-sdk readme I suppose I can use it for free for any purpose without updating, but with an QR image in the last frame. Am I wrong? |
Crash is not expected, and it was fixed recently. The readme says it's free for opensource or non-commercial softwares and i can give you a license key, otherwise you have to update your sdk every month. btw, qr is only rendered in opengl, so if using d3d, metal or vk renderer via qt rhi you will not see qr |
Thanks for the explanations! |
I have similar to example, but more complex application with Scene3D that previously works with blinking in 0.10.4, but now it crashes on start playing rtsp from local ip camera (it manages to show several frames). BigBuckBunny rtsp stream from internet works without crashing. The simple example here works fine with local rtsp. How can I debug it? |
Please show me your log, setLogHandler() can redirect the log. qtcreator can debug, ensure mdk.pdb exists |
Here is a log with crash. If set log handler and run debug it doesn't crash (but lag a lot). Qt Creator 4.10.2 For now no problems on android arm-v7 (despite this general issue wang-bin/mdk-sdk#24) |
gdb does not support pdb files. you have to use cdb, and msvc toolchain may be required in qtcreator |
qmdkqmlplay QML example based on QQuickFramebufferObject works fine as itself.
But if MDKPlayer is on top of Qt Scene3D, there is no video rendered or it is flickering in more complex application (it looks like something clearing item after renderVideo is called). Any other QML Quick items on top of Qt Scene3D are ok. Audio is working.
Example based on qmdkqmlplay + qt3d-scene3d-example for test:
mdk-example.zip
If renderPolicy: RenderSettings.OnDemand for Scene3D is set (uncomment the line in code) video stops flickering and get rendered right when 3d scene is still. Start rotate the 3d camera and MDKPlayer start flickering due to Scene3D updates.
Same behavior Windows 10, android armv7
Qt 5.9.5, MinGW 5.3.0 32bit, android SDK 25.2.5, NDK 16.1.44794999
The text was updated successfully, but these errors were encountered: