[qmlglsink] Unable to instantiate a GstVideoItem object on Windows

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

[qmlglsink] Unable to instantiate a GstVideoItem object on Windows

GStreamer-devel mailing list
Hi all,

I'm trying to render a playback pipeline to a Qt based video sink: qmlglsink
My simple app is based on gst-example.

I have recompile successfully gstreamer 1.18.4 using meson build.
The qmlglsink plugin is successfully built and checked in gst-inspect-1.0


In my app, I have applied the gst-examples recommendation, that is:

/   /* the plugin must be loaded before loading the qml file to register the
     * GstGLVideoItem qml item
     * FIXME Add a QQmlExtensionPlugin into qmlglsink to register
GstGLVideoItem
     * with the QML engine, then remove this
     */

    GstElement *sink = gst_element_factory_make ("qmlglsink", nullptr);
    gst_object_unref(sink);/


It works, sink variable is not null.


Afterward, the following lines failed:
/
QQmlApplicationEngine engine;
engine.load(QUrl("qrc:/main.qml"));/


and main.qml looks like:

/import QtQuick 2.0

import org.freedesktop.gstreamer.GLVideoItem 1.0

Item {
    GstGLVideoItem {
        id: video
        objectName: "videoItem"
        anchors.fill: parent
   }
}/


Unfortunately, I spet hours with the same errors in the console:

QQmlApplicationEngine failed to load component
qrc:/main.qml:3:1: module "org.freedesktop.gstreamer.GLVideoItem" is not
installed

I have set the QML_IMPORT_PATH and QML2_IMPORT_PATH accordingly...but I stil
get the same error.

I'm running under  Windows 10.
I have checked everything relevant...am I missing something ?

Any suggestion will be kindly welcome ;)

K.



--
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] Unable to instantiate a GstVideoItem object on Windows

GStreamer-devel mailing list
Hi all,

I finally found out what happened...

I've built my app under a Linux Ubuntu 20.04 system, and everything worked
as expected.

I still had the same error on PC @ work.
So I decided to build the gstqmlglsink plugin in debug version...and then it
worked.
Whereas under Linux, I can use  the debug/release version of the plugin and
it still works fine.

Weird.

Hope it could help someone else.

K.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel