Issues with qmlglsink

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

Issues with qmlglsink

xargs
I've built Qt 5.12.4 from source and GStreamer from git on Ubuntu 18.04.
I've run this simple test program:

https://github.com/GStreamer/gst-plugins-good/tree/master/tests/examples/qt/qmlsink

and it works fine.  But if I change the video source in main.cpp to anything
other than videotestsrc, I get a black window with no video.  For example,
if I change

GstElement *src = gst_element_factory_make ("videotestsrc", NULL);

to

GstElement *src = gst_element_factory_make ("v4l2src", NULL);

with no other changes, my camera's recording LED comes on, but the app
window is black.  gst-launch-1.0 v4l2src ! xvimagesink works from the
command line, as does gst-launch-1.0 v4l2src ! glupload ! glimagesink.

What am I doing wrong?



--
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: Issues with qmlglsink

Nicolas Dufresne-5
Le mercredi 10 juillet 2019 à 13:46 -0500, xargs a écrit :

> I've built Qt 5.12.4 from source and GStreamer from git on Ubuntu 18.04.
> I've run this simple test program:
>
> https://github.com/GStreamer/gst-plugins-good/tree/master/tests/examples/qt/qmlsink
>
> and it works fine.  But if I change the video source in main.cpp to anything
> other than videotestsrc, I get a black window with no video.  For example,
> if I change
>
> GstElement *src = gst_element_factory_make ("videotestsrc", NULL);
>
> to
>
> GstElement *src = gst_element_factory_make ("v4l2src", NULL);
>
> with no other changes, my camera's recording LED comes on, but the app
> window is black.  gst-launch-1.0 v4l2src ! xvimagesink works from the
> command line, as does gst-launch-1.0 v4l2src ! glupload ! glimagesink.
>
> What am I doing wrong?

Did you properly wrap your qmlglsink into glsinkbin ?

>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Issues with qmlglsink

xargs
Nicolas Dufresne-5 wrote
> Did you properly wrap your qmlglsink into glsinkbin ?

I found that adding a glcolorconvert to the pipeline made it work.  Would
you recommend glsinkbin instead?  How would I change my pipeline?

v4l2src ! video/x-raw, width=640, height=480, framerate=30/1 ! glupload !
glcolorconvert ! qmlglsink



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