Hi All,
I’m currently developing a camera sensor driver but I met the following issue:
Run v4l2-ctl:
nvidia@tegra-ubuntu:~$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=3264,height=2448,pixelformat=RG10 --stream-mmap --stream-count=1 --stream-to=test.raw --set-ctrl bypass_mode=0
<
nvidia@tegra-ubuntu:~$
I can get the raw data without any error. After demosaicing I can get a correct picture. However, when I run gst-launch-1.0, I can get only this error:
nvidia@tegra-ubuntu:~$ gst-launch-1.0 nvcamerasrc ! 'video/x-raw(memory:NVMM), width=3264, height=2448, framerate=30/1, format=NV12' ! nvvidconv flip-method=2 ! nvegltransform ! nveglglessink
Setting pipeline to PAUSED ...
Socket read error. Camera Daemon stopped functioning.....
gst_nvcamera_open() failed ret=0
ERROR: Pipeline doesn't want to pause.
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
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 ...
Caught SIGSEGV
#0 0x0000007f941ae130 in pthread_join (threadid=547890934272,
#1 0x0000007f94264e40 in ?? () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#2 0x0000000000000011 in ?? ()
Spinning. Please run 'gdb gst-launch-1.0 1960' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
The jetpack version is R28.1, and the camera sensor is OV8856, an 8MP mipi sensor. I’ve developed several camera sensor drivers for TX2, in my previous experience, after the drivers worked with v4l2-ctl, they should work with gst-launch-1.0 as well except this one.
Could anyone help me? Thanks a lot.