Error in nvOCDR DeepStream

Sincere Apologies from my side! I will correct it.

I am trying it with image by making all the changes you mentioned in my command but no luck. I am attaching the logs FYR.

gst-launch-1.0 filesrc location=/home/rptech/projects/ocdr/onnx_models/repo/c++_samples/test_img/scene_text.jpg ! jpegparse ! nvv4l2decoder ! nvvideoconvert ! capsfilter ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=1080 ! nvdsvideotemplate customlib-name=/home/rptech/projects/ocdr/onnx_models/repo/deepstream/libnvocdr_impl.so customlib-props=“ocdnet-engine-path:/home/rptech/projects/ocdr/onnx_models/ocdnet.fp16.engine” customlib-props=“ocdnet-input-shape:3,736,1280” customlib-props=“ocdnet-binarize-threshold:0.1” customlib-props=“ocdnet-polygon-threshold:0.3” customlib-props=“ocdnet-max-candidate:200” customlib-props=“ocrnet-engine-path:/home/rptech/projects/ocdr/onnx_models/ocrnet.fp16.engine” customlib-props=“ocrnet-dict-path:/home/rptech/projects/ocdr/onnx_models/character_list” customlib-props=“ocrnet-input-shape:1,32,100” ! nvmultistreamtiler rows=1 columns=1 width=1280 height=720 ! nvvideoconvert ! nvdsosd ! nvvideoconvert ! ‘video/x-raw,format=I420’ ! jpegenc ! jpegparse ! filesink location=/home/rptech/projects/ocdr/onnx_models/repo/c++_samples/test_img/output.jpg
Setting pipeline to PAUSED …
Opening in BLOCKING MODE
Inside Custom Lib : Setting Prop Key=ocdnet-engine-path Value=/home/rptech/projects/ocdr/onnx_models/ocdnet.fp16.engine
Inside Custom Lib : Setting Prop Key=ocdnet-input-shape Value=3,736,1280
Inside Custom Lib : Setting Prop Key=ocdnet-binarize-threshold Value=0.1
Inside Custom Lib : Setting Prop Key=ocdnet-polygon-threshold Value=0.3
Inside Custom Lib : Setting Prop Key=ocdnet-max-candidate Value=200
Inside Custom Lib : Setting Prop Key=ocrnet-engine-path Value=/home/rptech/projects/ocdr/onnx_models/ocrnet.fp16.engine
Inside Custom Lib : Setting Prop Key=ocrnet-dict-path Value=/home/rptech/projects/ocdr/onnx_models/character_list
Inside Custom Lib : Setting Prop Key=ocrnet-input-shape Value=1,32,100
Pipeline is PREROLLING …
NvMMLiteOpen : Block : BlockType = 277
NvMMLiteBlockCreate : Block : BlockType = 277

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.784: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.784: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.786: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.786: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.807: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.807: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.831: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.831: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.831: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.832: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink
nvstreammux: Successfully handled EOS for source_id=0

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.832: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.832: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.833: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.833: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.834: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.834: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.834: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.834: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

(gst-launch-1.0:8613): GStreamer-CRITICAL **: 15:45:42.834: gst_caps_set_simple: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:8613): GStreamer-Base-CRITICAL **: 15:45:42.834: basetransform: second attempt to fixate caps returned invalid (NULL) caps on pad nvdsvideotemplate0:sink

Please help!

Even when I tried with test video, I am getting following error.

gst-launch-1.0 filesrc location=/home/rptech/projects/ocdr/onnx_models/repo/c++_samples/test_img/test.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvvideoconvert ! capsfilter caps=video/x-raw,format=I420 ! m.sink_0 nvstreammux name=m batch-size=1 width=1280 height=1080 ! nvdsvideotemplate customlib-name=/home/rptech/projects/ocdr/onnx_models/repo/deepstream/libnvocdr_impl.so customlib-props=“ocdnet-engine-path:/home/rptech/projects/ocdr/onnx_models/ocdnet.fp16.engine” customlib-props=“ocdnet-input-shape:3,736,1280” customlib-props=“ocdnet-binarize-threshold:0.1” customlib-props=“ocdnet-polygon-threshold:0.3” customlib-props=“ocdnet-max-candidate:200” customlib-props=“ocrnet-engine-path:/home/rptech/projects/ocdr/onnx_models/ocrnet.fp16.engine” customlib-props=“ocrnet-dict-path:/home/rptech/projects/ocdr/onnx_models/character_list” customlib-props=“ocrnet-input-shape:1,32,100” ! nvmultistreamtiler rows=1 columns=1 width=1280 height=720 ! nvvideoconvert ! nvdsosd ! nvvideoconvert ! ‘video/x-raw(memory:NVMM),format=I420’ ! nvv4l2h264enc ! h264parse ! mux.video_0 qtmux name=mux ! filesink location=/home/rptech/projects/ocdr/onnx_models/repo/c++_samples/test_img/output.mp4
WARNING: erroneous pipeline: no element “nvv4l2h264enc”

Later I checked for specific element but it printed element not found.
$gst-inspect-1.0 nvv4l2h264enc
No such element or plugin ‘nvv4l2h264enc’

You are using Jetson Orin Nano, there is no hardware encoder in it. Please refer to Jetson Modules, Support, Ecosystem, and Lineup | NVIDIA Developer
Please use software encooder instead.

The nvvideoconvert after nvmultistreamtiler is not needed. Please check my pipeline one plugin by one plugin. Error in nvOCDR DeepStream - #11 by Fiona.Chen