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
QOpenGLWidget is displayed in its own window since libmpv.so.2.3.0 #14045
Comments
if you are using the render API set |
It gives me an error - "Invalid error for mpv parameter -4" on a "plain" QT Window and some non verbal error if using the openGL option. Since these errors do not occur when the "previous" library is loaded I assume that there is a glich. I' m using jaseg's python-mpv from github for bindings. So "vo=libmpv" renders MPV completely unusable |
Set the |
Working on a small example to test - will include the option. |
FWIW we have a small example here and it works fine after we fixed it to include |
Just tried it to no avail. |
this is the logfile: (didn't know you couldn't add it afterward |
Attached the logfile with "vo":"libmpv". Neither video nor single picture is displayed.. |
Your log (which is also incomplete) shows libmpv being used initially but switches to gpu halfway. I suspect a problem in your glue code. |
Sorry about the log, but using the "log_level=debug" option seems to be the only way of getting mpv logs. |
Adding two files - one with "vo=libmpv" (where no windows or graphics is displayed) and one without. The later displays a separate window with content, the former doesn't display anything. |
Last not least a log of the same gist, using mpv 0.37 with its libmpv.so 2.2.0: |
|
? It seems to be no problem with the previous version. I don't mind if things change - but as downstream developer I do not have any information how to fix your changes. Besides: I've never used the "vo" switch before. And I'd like to point out, that - from my perspective - it doesn't work with either "vo" set or not with the lastest mpv lib. |
He's saying you misspelled |
Thanks for the help. It was indeed the "vo" flag in combination with the "glue code". I'm closing this issue, since it looks that in former versions the "vo=libmpv" was the default. |
Important Information
Reproduction steps
Create a python5 or python 6 script with an embedded OpenGL widget. An example of a subclassed window can be seen here or download the Arch Linux version of my application from AUR
Update: A Gist using OpenGLWindow (see comment below - you need to have a png file)
Expected behavior
The created widget is shown in its frame and window as in lib version 1:0.37.0-2
Actual behavior
With lib version libmpv.so.2.3.0 the widget is detached and displays itself in its own window. The same happened some time ago with the non-opengl implementation when using wayland. So the opengl variant is the only way to provide a consistent behaviour across X11 and wayland.
With the aforementioned version python crashes if using a non OPENGL widget, but works if reverted back to lib version 1:0.37.0-2
Log file
added some logs below-with vo=libmpv and without that flag
The text was updated successfully, but these errors were encountered: