qmlglsink on Windows

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

qmlglsink on Windows

Ilya Aleshkov
Hi,
I'm trying to use qmlglsink on Windows. I know it's possible (thanks to Jan Schmidt).
I've built it successfully without any issues (Qt 5.10.1 MSVC 2013 64bit).
But when I run qmlsink example, I get completely black GstGLVideoItem.
GST_DEBUG=2:

0:00:00.466134900 2636 0000026BB7274390 WARN glcontext gstglcontext.c:507:gst_gl_context_get_current_gl_context: Could not retrieve current context

0:00:00.466183800 2636 0000026BB7274390 ERROR qtglutility gstqtglutility.cc:206:gst_qt_get_gl_wrapcontext: cannot wrap qt OpenGL context

0:00:00.486401100 2636 0000026BB7274390 ERROR qtglwidget qtitem.cc:336:QtGLVideoItemInterface::initWinSys: 0000026BB8962CA0 failed to retrieve wrapped context (NULL)

0:00:00.486468000 2636 0000026BB7274390 WARN qtsink gstqtsink.cc:309:gst_qt_sink_change_state:<qtsink0> error: Could not initialize window system


How to solve this problem?

Windows 10
GeForce GTX 1050 Ti (411.63 driver)
GStreamer 1.14.2

Thanks,
Ilya

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: qmlglsink on Windows

Kirill
Hi Ilya,

Did you manage to solve this problem?

I have similar issue too, when I run only one GstGLVideoItem instance within
the app - everything works fine but after I'm trying to show two
GstGLVideoItem's - the second one gives error: Could not initialize window
system.

Kirill



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: qmlglsink on Windows

Matthew Waters
Multiple qmlglsink's currently do not work on windows due to
https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/477.

On 29/4/19 3:41 am, Kirill wrote:

> Hi Ilya,
>
> Did you manage to solve this problem?
>
> I have similar issue too, when I run only one GstGLVideoItem instance within
> the app - everything works fine but after I'm trying to show two
> GstGLVideoItem's - the second one gives error: Could not initialize window
> system.
>
> Kirill
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: qmlglsink on Windows

Kirill
Thanks for reply and clarifying, Matthew. Is there any estimation when it
might be fixed?


Thanks again,
Kirill



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: qmlglsink on Windows

Ilya Aleshkov
Hi Kirill,

Did you manage to solve this problem? 

Yes, everything started to work for me since release 1.14.4 (2018-10-02).
Now I successfully use multiple  qmlglsink elements in my QWidget-based application:
  • only one GstGLVideoItem per QML file
  • QWidget::createWindowContainer() for each QQuickView instance. I know using many window container instances in a QWidget-based application can greatly hurt the overall performance of the application. But it's not yet an issue for my one-two containers.
  • start pipeline at QQuickWindow::BeforeSynchronizingStage with scheduleRenderJob() for each  QQuickView instance
Thanks,
Ilya

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel