TX2 v4l2src error

Hi,

I’m using the following Gstreamer pipeline in L4T28.1-TX2 to render the preview:

gst-launch-1.0 v4l2src device=/dev/video0 ! “video/x-raw, format=(string)UYVY, width=(int)2560, height=(int)800” ! nvvidconv ! “video/x-raw(memory:NVMM), format=(string)I420, width=(int)2560, height=(int)800” ! nvoverlaysink async=false sync=false

I encounter the following error:

nvidia@tegra-ubuntu:~$ gst-launch-1.0 v4l2src device=/dev/video0 ! “video/x-raw, format=(string)UYVY, width=(int)2560, height=(int)800” ! nvvidconv ! “video/x-raw(memory:NVMM), format=(string)I420, width=(int)2560, height=(int)800” ! nvoverlaysink async=false sync=false
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.130311648
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

The same pipeline is working well in L4T 27.1-TX2, Is there any fix for this problem?

The yuv sensor driver is refer to ov5693, Is there anything wrong for my driver?

Best Regards!!

Hi cloundliu,

Please refer to https://devtalk.nvidia.com/default/topic/1024472/jetson-tx2/using-overlay-2-in-l4t-28-1-with-tx2/post/5213583/#5213583 to see if helps.

Hi vickyy,

It is not helpful to our cause.

I use command as follows:
1.v4l2-ctl -d /dev/video0 --set-fmt-video=width=2560,height=800,pixelformat=UYVY --stream-mmap --stream-count=100 --stream-skip=0 --stream-to=test.uyvy

2./yavta -f UYVY -s 2560x1080 -c100 -Ftest.uyvy /dev/video0

they are both work well, and the video is right. when I use gstreamer pipeline as mentioned before, it failed.

The whole source code are download by source_sync.sh, and I just update device tree and driver for our yuv sensor.

thanks

Hi cloundliu,
We have ‘UYVY’ USB camera/YUV sensor source. All can be run via v4l2-ctl/yavta, but when running with gstreamer v4l2src, we have to set it to ‘I420’. This happens on both r27.1 and r28.1.

So please try’I420’ in your case. And may other users can share experience about using gstreamer v4l2src.

And you may also try ‘width=(int)2560, height=(int)1080’, same as what you set in yavta

Hi DaneLLL,

I have try ‘width=(int)2560, height=(int)800’, but it is no effect.

I just want to know if I want to add a yuv sensor on TX2, what should I do for driver?
I have add it both for R27.1 and R28.1, It works well on R27.1 by using v4l2src.
Is there anything different between this???

thanks.

what I used nvcamerasrc call the camera,but the picture is blurry

Please enable debug message and check what is printed.

export GST_DEBUG=v4l2src*:5

I guess 2560x800 is not the mode your source supports.