yes. I’ve updated the device tree accordingly.
Check below command.
gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw, format=BGRA, width=640, height=480' ! fpsdisplaysink video-sink=fakesink -v
If above command working without problem try below.
gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw, format=BGRA, width=640, height=480' ! videoconvert ! video/x-raw,format=I420 ! xvimagesink
Hi @ShaneCCC ,
Both commands fail:
user@ubuntu:~/Desktop$ gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw, format=BGRA, width=640, height=480’ ! fpsdisplaysink video-sink=fakesink -v
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to NULL …
Freeing pipeline …
user@ubuntu:~/Desktop$ gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw, format=BGRA, width=640, height=480’ ! videoconvert ! video/x-raw,format=I420 ! xvimagesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to NULL …
Freeing pipeline …
What’s the v4l2-ctl --list-formats-ext show??
@ShaneCCC
user@ubuntu:~/Desktop$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture[0]: 'AB24' (32-bit RGBA 8-8-8-8) Size: Discrete 640x480 Interval: Discrete 0.017s (60.000 fps)
Hi,
RGBA format is added in later version of v4l2src plugin, so we would suggest use Jetpack 6.0GA to have the format included.
If you must use Jetpack 5, please refer to the post to manually add the format:
Video Record Problem On AGX XAVIER - #5 by DaneLLL
Hi @DaneLLL ,
I applied the patch as instructed in the README file.
Still get the error:
user@ubuntu:~/Desktop$ gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw, format=BGRA, width=640, height=480’ ! videoconvert ! video/x-raw,format=I420 ! xvimagesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to NULL …
Freeing pipeline …
Hi,
It looks like the camera supports RGBA but you set to format=BGRA. Please ensure what format is supported.
We decided to go with the YUV format. This way we won’t have to patch the v4l2src plugin.
I wish to thank you for your patience and support. I’ve learned a lot.
Everything works now (for now).
Thank you.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.