Issues with qmlglsink

Nicolas Dufresne nicolas at ndufresne.ca
Wed Jul 10 23:06:12 UTC 2019


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
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list