Hi all,<br><br>

I'm trying to pipeline a v4l2src to a qmlglsink. I already crawled the internet for days and couldn't find any useful hint. I also started to dig into the plugin source code, but this is a larger project..<br><br>

First:
If I just pipeline the v4l2src to some autovideosink, then everything is fine.<br><br>

My (code)pipeline is:<br><br>

v4l2src device=/dev/video0 ! video/x-raw, format=YUY2, width=320, height=240 ! videoconvert ! glupload ! qmlglsink
<br><br>

If I run this, this problem occurs:<br>
<i>basetransform gstbasetransform.c:1210:gst_base_transform_find_transform:<gluploadelement0> transform could not transform video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:5:1, interlace-mode=(string)progressive in anything we support</i>
<br><br>

According to gst-inspect (or at least to my understanding) the videoconvert should be able to handle YUY2 as well as RGBA to provide to glupload.
<br><br>

Any hints here are appreciated on why this isn't working. Can this be a image size problem? Like the imagesize has to be in factors of 2 or something?
<br><br>

I also tried this:<br>
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=320, height=240, format=YUY2 ! videoconvert ! glupload ! gldownload ! autovideosink --gst-debug-level=4
<br><br>

Which is basically telling me the same problem:<br><br>
<i>WARN           basetransform gstbasetransform.c:1364:gst_base_transform_setcaps:<gluploadelement0> transform could not transform video/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:5:1, interlace-mode=(string)progressive in anything we support<br>
INFO                 basesrc gstbasesrc.c:2962:gst_base_src_loop:<v4l2src0> marking pending DISCONT<br>
WARN           basetransform gstbasetransform.c:1364:gst_base_transform_setcaps:<gluploadelement0> transform could not transform video/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:5:1, interlace-mode=(string)progressive in anything we support<br>
WARN                 basesrc gstbasesrc.c:3072:gst_base_src_loop:<v4l2src0> error: Internal data stream error.<br>
WARN                 basesrc gstbasesrc.c:3072:gst_base_src_loop:<v4l2src0> error: streaming stopped, reason not-negotiated (-4)<br>
INFO        GST_ERROR_SYSTEM gstelement.c:2141:gst_element_message_full_with_details:<v4l2src0> posting message: Internal data stream error.<br>
INFO        GST_ERROR_SYSTEM gstelement.c:2168:gst_element_message_full_with_details:<v4l2src0> posted error message: Internal data stream error.</i>
<br><br>

Thanks for any enlightment into this issue. I added some HTML-breaks as the preview looked horrible without. Hopefully this is displayed properly to you.
<br><br>

Best,
Bodo


        
        
        
<br/><hr align="left" width="300" />
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>