How and why v4l2src able to take YV12 format?

jeyp4 jaiforfriend at gmail.com
Wed Nov 20 10:13:29 UTC 2019


Sorry for late reply, but I was working on this topic.

Instead of trying the above patch on jetson, I see that you have modified
gst-pluging-good gstv4l2object.c file.

So I just perform a new gst-build of latest gstreamer on my Intel PC.

Still, on latest gstreamer v4l2src can't take YV12.

[gst-master] jai at jai:/media/jai/Entertainment/Software/gstreamer/gst-build$
gst-launch-1.0 -v v4l2src
device=/dev/v4l/by-id/usb-3.0_USB_Camera_3.0_USB_Camera-video-index0 !
'video/x-raw, format=(string)YV12,width=1920, height=1080' ! xvimagesink -v
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal
data stream error.
Additional debug info:
../subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop
(): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000149820
Setting pipeline to PAUSED ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list