QGst::Bin::FromDescription fails with no element error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

QGst::Bin::FromDescription fails with no element error

xargon
I have a gstreamer pipeline as follows, which works completely fine:

gst-launch-1.0 v4l2src=/dev/video0 ! videoscale !  video/x-raw, width=480,
height=270 ! xvimagesink -e

I am trying to create the video source part using the QtGStreamer pipeline
as follows:

QGst::ElementPtr src = QGst::Bin::fromDescription("v4l2src=/dev/video0 !
videoscale !  video/x-raw, width=480, height=270");

However, this fails with no element "video" error. I have a feeling this is
happening due to the "video/x-raw". I tried putting everything in escaped
quotes but that did not help either.





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/QGst-Bin-FromDescription-fails-with-no-element-error-tp4676809.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel