Running the command
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1920,height=1080,framerate=30/1,format=NV12' ! nvoverlaysink -ev
yields the following
verlaysink -ev
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3264 x 2464 FR = 21,000000 fps Duration = 47619048 ; Analog Gain range min 1,000000, max 10,625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 3264 x 1848 FR = 28,000001 fps Duration = 35714284 ; Analog Gain range min 1,000000, max 10,625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1920 x 1080 FR = 29,999999 fps Duration = 33333334 ; Analog Gain range min 1,000000, max 10,625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1640 x 1232 FR = 29,999999 fps Duration = 33333334 ; Analog Gain range min 1,000000, max 10,625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1280 x 720 FR = 59,999999 fps Duration = 16666667 ; Analog Gain range min 1,000000, max 10,625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1280 x 720 FR = 120,000005 fps Duration = 8333333 ; Analog Gain range min 1,000000, max 10,625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 0
Frame Rate = 29,999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
Here is the logs from the module. Note that the module never fails, it just keeps spamming this error message
(deepstream-test5-app:1): GLib-GObject-WARNING **: 08:45:30.123: g_object_set_is_valid_property: object class 'GstNvArgusCameraSrc' has no property named 'maxperf'
*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***
(deepstream-test5-app:1): GLib-CRITICAL **: 08:45:30.272: g_strrstr: assertion 'haystack != NULL' failed
ERROR: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test5/custom_configs/../custom_models/cans-model.onnx_b3_fp32.engine open error
0:00:07.847589048 e[332m 1e[00m 0xdfc600 e[33;01mWARN e[00m e[00m nvinfer gstnvinfer.cpp:616:gst_nvinfer_logger:<primary_gie>e[00m NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1691> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test5/custom_configs/../custom_models/cans-model.onnx_b3_fp32.engine failed
0:00:07.847676602 e[332m 1e[00m 0xdfc600 e[33;01mWARN e[00m e[00m nvinfer gstnvinfer.cpp:616:gst_nvinfer_logger:<primary_gie>e[00m NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1798> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test5/custom_configs/../custom_models/cans-model.onnx_b3_fp32.engine failed, try rebuild
0:00:07.847700925 e[332m 1e[00m 0xdfc600 e[36mINFO e[00m e[00m nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<primary_gie>e[00m NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1716> [UID = 1]: Trying to create engine from model files
nvds_msgapi_connect : connect success
Opening in BLOCKING MODE
Opening in BLOCKING MODE
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_mot_klt.so
gstnvtracker: Optional NvMOT_RemoveStreams not implemented
gstnvtracker: Batch processing is OFF
gstnvtracker: Past frame output is OFF
----------------------------------------------------------------
Input filename: /opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test5/custom_models/model.onnx
ONNX IR version: 0.0.3
Opset version: 7
Producer name:
Producer version:
Domain: onnxml
Model version: 0
Doc string:
----------------------------------------------------------------
0:01:05.353716387 e[332m 1e[00m 0xdfc600 e[36mINFO e[00m e[00m nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<primary_gie>e[00m NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1749> [UID = 1]: serialize cuda engine to file: /opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test5/custom_models/model.onnx_b1_gpu0_fp32.engine successfully
0:01:05.967733715 e[332m 1e[00m 0xdfc600 e[36mINFO e[00m e[00m nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<primary_gie>e[00m [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test5/custom_configs/config_infer_custom_vision.txt sucessfully
INFO: [TRT]: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.
INFO: [TRT]: Detected 1 inputs and 1 output network tensors.
INFO: [Implicit Engine Info]: layers num: 2
0 INPUT kFLOAT data 3x416x416
1 OUTPUT kFLOAT model_outputs0 40x13x13
Runtime commands:
h: Print this help
q: Quit
p: Pause
r: Resume
**PERF: FPS 0 (Avg)
Thu May 11 08:46:33 2023
**PERF: 0.00 (0.00)
** INFO: <bus_callback:181>: Pipeline ready
** INFO: <bus_callback:167>: Pipeline running
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.524: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.564: g_object_get: assertion 'G_IS_OBJECT (object)' failed
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.605: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.645: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.686: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.727: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.767: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.807: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.848: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.888: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.929: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:33.969: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.009: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.050: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.090: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.131: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.171: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.211: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.251: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.292: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.332: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.372: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.413: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.453: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.493: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.534: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.574: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.614: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.654: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.695: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.735: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.775: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.816: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.856: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.896: g_object_get: assertion 'G_IS_OBJECT (object)' failed
GST_ARGUS: Creating output stream
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.936: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:34.977: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:35.017: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:35.057: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:35.098: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:35.138: g_object_get: assertion 'G_IS_OBJECT (object)' failed
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3264 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 0
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:35.179: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:35.219: g_object_get: assertion 'G_IS_OBJECT (object)' failed
CONSUMER: Producer has connected; continuing.
(deepstream-test5-app:1): GLib-GObject-CRITICAL **: 08:46:35.259: g_object_get: assertion 'G_IS_OBJECT (object)' failed
I should also mention that my system is extremely unstable. I had to flash the card 2-3 times before I got it to boot properly. I have tried with 2 SD cards and both are unstable.