if envrionment variable GST_DEBUG_DUMP_DOT_DIR is set with something
nvcamerasrc make abnormal error message.
why error occur ?
nvidia@tegra-ubuntu:~/works$ export GST_DEBUG_DUMP_DOT_DIR=./
nvidia@tegra-ubuntu:~/works$ gst-launch-1.0 nvcamerasrc fpsRange="30 30" ! 'video/x-raw(memory:NVMM), width=(int)320, height=(int)240, format=(string)I420, framerate=(fraction)30/1' ! nvtee ! nvivafilter cuda-process=true customer-lib-name="libnvsample_cudaprocess.so" ! 'video/x-raw(memory:NVMM), format=(string)NV12' ! nvoverlaysink
Setting pipeline to PAUSED ...
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and MjstreamingSocket read error. Camera Daemon stopped functioning.....
0:00:00.157242970 6609 0x438410 ERROR nvcamerasrc gstnvcamerasrc.cpp:3400:gst_nvcam_get_orientation:<nvcamerasrc0> Error in retrieving camera properties
0:00:00.220343208 6609 0x438410 ERROR nvcamerasrc gstnvcamerasrc.cpp:2380:gst_nvcamera_open:<nvcamerasrc0> REQ_NVCAM_CREATE_SESSION to camera_daemon failed
gst_nvcamera_open() failed ret=0
ERROR: Pipeline doesn't want to pause.
0:00:00.223608761 6609 0x438410 ERROR nvcamerasrc gstnvcamerasrc.cpp:3400:gst_nvcam_get_orientation:<nvcamerasrc0> Error in retrieving camera properties
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 ...
gstnvcamerasrc.cpp:3400:gst_nvcam_get_orientation: Error in retrieving camera properties
if export GST_DEBUG_DUMP_DOT_DIR=, the script do not make error
nvidia@tegra-ubuntu:~/works$ export GST_DEBUG_DUMP_DOT_DIR=
nvidia@tegra-ubuntu:~/works$ gst-launch-1.0 nvcamerasrc fpsRange="30 30" ! 'video/x-raw(memory:NVMM), width=(int)320, height=(int)240, format=(string)I420, framerate=(fraction)30/1' ! nvtee ! nvivafilter cuda-process=true customer-lib-name="libnvsample_cudaprocess.so" ! 'video/x-raw(memory:NVMM), format=(string)NV12' ! nvoverlaysink
Setting pipeline to PAUSED ...
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and Mjstreaming
Available Sensor modes :
2592 x 1944 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
2592 x 1458 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1280 x 720 FR=120.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
NvCameraSrc: Trying To Set Default Camera Resolution. Selected 320x240 FrameRate = 30.000000 ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:03.167159674
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
nvidia@tegra-ubuntu:~/works$ ^C
and
gst_buffer_n_memory() api is not work properly with nvidia gstramer plugin
nv plugin return always 808 byte as GstMemory size
gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)I420, width=(int)320, height=(int)240' ! nvvidconv ! 'video/x-raw(memory:NVMM), width=(int)320, height=(int)240, format=(string)I420' ! rgbdemux ! fakesink
rgbdemux plug source is
static GstFlowReturn
gst_rgbdemux_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
{
Gstrgbdemux *filter;
GstBuffer *outbuf;
filter = GST_RGBDEMUX (parent);
if (filter->silent == FALSE)
{
gsize offset;
gsize maxsize;
gsize i;
i= gst_buffer_n_memory(buf);
g_print ("I'm %s plugged, therefore I'm in.\n",__func__);
gst_buffer_get_sizes (buf,&offset, &maxsize);
g_print ("Have data of size %" G_GSIZE_FORMAT" bytes!\n",
maxsize);
g_print ("gst_buffer_n_memory %" G_GSIZE_FORMAT" !\n",
i);
g_print ("frametype is %d\n", filter->frametype);
}
I'm gst_rgbdemux_chain plugged, therefore I'm in.
Have data of size 808 bytes!
gst_buffer_n_memory 1 !
gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)I420, width=(int)320, height=(int)240' ! rgbdemux ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
I'm gst_rgbdemux_chain plugged, therefore I'm in.
Have data of size 115207 bytes!
gst_buffer_n_memory 1 !
frametype is 0