Casting data from v4l2src

Kristoffer Koch kristoffer at huddly.com
Wed Mar 22 07:57:35 UTC 2017


Thanks, but it seems to be generating the same error:

gst-launch-1.0 v4l2src device=/dev/video0 ! videoparse format=xrgb
width=3456 height=2592   ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal
data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.000467417
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

(I also tried with a videoconvert after videoparse).

I'm a bit stuck here, so any help is appreciated.

Best regards, Kristoffer

On Tue, Mar 21, 2017 at 4:55 PM, Nicolas Dufresne <nicolas at ndufresne.ca>
wrote:

> Le mardi 21 mars 2017 à 11:57 +0100, Kristoffer Koch a écrit :
> > I'm trying to override the format, but I'm not having any luck:
> >
> >   gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-
> > raw,format=YVYU,width=3456,height=2592,framerate=5/1 ! videoparse !
> > video/x-raw,format=rgb,width=3456,height=2592  ! xvimagesink
>
> 'rgb' is not a valid format, use RGB in caps for 24bit (not padded)
> rgb. I'm not sure if older version of videoparse support downstream
> caps filter. Try and use the properties instead, like this (note the
> properties will take small caps):
>
>   .. ! videoparse format=rgb width=3456 height=2592 ! ...
>
> In any case, 24bit RGB (not padded) is likely not supported by
> xvimagesink. XV extension usually only allow YUV formats. ximagesink
> may support padded RGB, like xRGB or BGRx. With the benifit that the
> image size of xRGB/BGRx is the same as packed YVYU.
>
> Nicolas
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170322/31d8d30c/attachment-0001.html>


More information about the gstreamer-devel mailing list