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

qmdkqmlplay QML example flickering on top of Qt 3D scene #9

Closed
lukegluke opened this issue Mar 29, 2021 · 8 comments
Closed

qmdkqmlplay QML example flickering on top of Qt 3D scene #9

lukegluke opened this issue Mar 29, 2021 · 8 comments
Assignees

Comments

@lukegluke
Copy link

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

@wang-bin wang-bin self-assigned this Mar 30, 2021
wang-bin added a commit that referenced this issue Apr 4, 2021
not sure why flip y in mdk may fail in issue #9
@wang-bin
Copy link
Owner

wang-bin commented Apr 4, 2021

This change can fix the issue 98567ff

@lukegluke
Copy link
Author

lukegluke commented Apr 10, 2021

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?

@wang-bin
Copy link
Owner

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

@lukegluke
Copy link
Author

Thanks for the explanations!

@lukegluke
Copy link
Author

lukegluke commented Apr 11, 2021

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?

изображение

@wang-bin
Copy link
Owner

Please show me your log, setLogHandler() can redirect the log. qtcreator can debug, ensure mdk.pdb exists

@lukegluke
Copy link
Author

lukegluke commented Apr 12, 2021

Here is a log with crash. If set log handler and run debug it doesn't crash (but lag a lot).
mdk.pdb file exist near mdk.dll for each architecture, but qt creator doesn't show symbols.
I didn't find in google easily how to add path to .pdb in qt creator for gdb on windows, maybe you can help faster, thanks in advance!

Qt Creator 4.10.2
gdb 7.10.1 for MinGW 5.3.0 32bit

For now no problems on android arm-v7 (despite this general issue wang-bin/mdk-sdk#24)

@wang-bin
Copy link
Owner

gdb does not support pdb files. you have to use cdb, and msvc toolchain may be required in qtcreator

wang-bin added a commit that referenced this issue Apr 16, 2021
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