Using GStreamer with the nvcamerasrc errors at TX1 R28.2

Using GStreamer with the nvcamerasrc errors at TX1 R28.2

nvidia@tegra-ubuntu:~$ gst-inspect-1.0  --version
gst-inspect-1.0 version 1.8.1
GStreamer 1.8.3
https://launchpad.net/distros/ubuntu/+source/gstreamer1.0
nvidia@tegra-ubuntu:~$ gst-launch-1.0 nvcamerasrc num-buffers=200 sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! omxh264enc ! qtmux ! filesink location=test.mp4 -ev
Setting pipeline to PAUSED ...
Socket read error. Camera Daemon stopped functioning.....
gst_nvcamera_open() failed ret=0
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesrc.c(3354): gst_base_src_start (): /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0:
Failed to start
Setting pipeline to NULL ...
Freeing pipeline ...
nvidia@tegra-ubuntu:~$

How can fix this?

Hi,
Do you have onboard camera ov5693 connected? The error indicates no camera is found.

Hi DaneLLL,

  No,I use our own imx219 mipi sensor,
 Can you  tell me that How can use GStreamer for the imx219 mipi sensor?

I run this command “st-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=1 ! “video/x-bayer, format=rggb, width=1920, height=1080” ! filesink location=test_1920x1080.bayer”

the error is below.

nvidia@tegra-ubuntu:~$ DISPLAY=:0 gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=1 ! "video/x-bayer, format=rggb, width=1920, height=1080" ! filesink location=test_1920x1080.bayer
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
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)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

How can fix this?

Please follow https://devtalk.nvidia.com/default/topic/1035461/jetson-tx1/error-is-run-quot-nvgstcapture-1-0-quot-at-jetson-tx1-r28-2-/post/5260209/#5260209

It should be an issue in your device tree.

You can also get this error (or something close to it) when more than one process attempts to use the camera. You might want to try systemctl restart nvcameradaemon.service before testing to make sure you are starting with a clean environment.