Gstreamer, v4l2src: streaming stopped, reason not-negotiated (-4)

encounter a problem:

**Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.001489269
Setting pipeline to NULL ...
**

my pipeline:

gst-launch-1.0 -v v4l2src device=/dev/video11 ! videoconvert ! fpsdisplaysink text-overlay=false sync=false

i try another pipeline:

gst-launch-1.0 -v v4l2src device=/dev/video11 ! videoconvert ! video/x-raw,width=1920,height=1080,framerate=30/1 ! autovideosink

video capture pipeline is ok:

v4l2-ctl -d /dev/video11 --set-fmt-video=width=1920,height=1080 --stream-mmap --stream-count=300 --stream-to=img.raw
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 50.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 50.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 50.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 50.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 50.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

i read this topic, but i don’t understand how i can fix my problem. should my camera driver be fixed? or is it about the gstremer pipeline? or i must fixed v4l2src? my camera send raw12 data

v4l2src don’t support Bayer Raw sensor.
You can try nvarguscamerasrc for CSI Bayer sensor.

Thanks

1 Like

Hi @xrenogubkabob

You could take a look at this patch that shows you the Steps to patch GStreamer to support RAW10.

Try it and please let us know if this works for you and if you need more support on this.

Regards!

Eduardo Salazar
Embedded SW Engineer at RidgeRun

Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.