v4l2src -> qmlglsink not possible / transform problem

realBohd2 realsfg at gmx.de
Mon Jun 17 13:58:20 UTC 2019


Hi all,

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..

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

My (code)pipeline is:

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

If I run this, this problem occurs:
/basetransform gstbasetransform.c:1210:gst_base_transform_find_transform:
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/

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.

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?

I also tried this:
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

Which is basically telling me the same problem:

/WARN           basetransform
gstbasetransform.c:1364:gst_base_transform_setcaps: 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
INFO                 basesrc gstbasesrc.c:2962:gst_base_src_loop: marking
pending DISCONT
WARN           basetransform
gstbasetransform.c:1364:gst_base_transform_setcaps: 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
WARN                 basesrc gstbasesrc.c:3072:gst_base_src_loop: error:
Internal data stream error.
WARN                 basesrc gstbasesrc.c:3072:gst_base_src_loop: error:
streaming stopped, reason not-negotiated (-4)
INFO        GST_ERROR_SYSTEM
gstelement.c:2141:gst_element_message_full_with_details: posting message:
Internal data stream error.
INFO        GST_ERROR_SYSTEM
gstelement.c:2168:gst_element_message_full_with_details: posted error
message: Internal data stream error./

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.

Best,Bodo



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190617/21ee8950/attachment-0001.html>


More information about the gstreamer-devel mailing list