Good day everyone!
Running some tests of gst pipelines, I have been able to stream perfectly an RTSP (cropped) into the nvoverlaysink
gst-launch-1.0 rtspsrc location=rtsp://URL?tcp latency=0 protocols=tcp ! rtph264depay ! h264parse ! omxh264dec ! nvvidconv left=$A right=$B top=$C bottom=$D ! video/x-raw, format=I420, width=$((B-A)), height=$((D-C)) ! videoconvert ! nvoverlaysink sync=false
Also, been able to successfuly source an mp4 file (captured previously from an RTSP) into the deepstream nvinfer and nvdosd elements:
gst-launch-1.0 filesrc location= streams/file.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! m.sink_0 nvstreammux name=m batch-size=1 width=$((B-A)) height=$((C-D)) ! nvinfer config-file-path= configs/deepstream-app/config_infer_primary.txt batch-size=1 unique-id=1 ! nvtracker ll-lib-file=/opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_mot_klt.so ! nvinfer config-file-path= configs/deepstream-app/config_infer_secondary_carcolor.txt batch-size=16 unique-id=2 infer-on-gie-id=1 infer-on-class-ids=0 ! nvmultistreamtiler rows=1 columns=1 width=$((B-A)) height=$((D-C)) ! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink
But when I try mix both pipelines, like this:
gst-launch-1.0 rtspsrc location=rtsp://URL?tcp latency=0 protocols=tcp ! rtph264depay ! h264parse ! omxh264dec ! nvvidconv left=$A right=$B top=$C bottom=$D ! video/x-raw, format=I420, width=$((B-A)), height=$((D-C)) ! videoconvert ! nvv4l2decoder ! m.sink_0 nvstreammux name=m batch-size=1 width=$((B-A)) height=$((C-D)) ! nvinfer config-file-path= configs/deepstream-app/config_infer_primary.txt batch-size=1 unique-id=1 ! nvtracker ll-lib-file=/opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_mot_klt.so ! nvinfer config-file-path= configs/deepstream-app/config_infer_secondary_carcolor.txt batch-size=16 unique-id=2 infer-on-gie-id=1 infer-on-class-ids=0 ! nvmultistreamtiler rows=1 columns=1 width=$((B-A)) height=$((D-C)) ! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink
several issues show up, firstly:
WARNING: erroneous pipeline: could not set property "width" in element "nvmultistreamtiler0" to "$((B-A)),"
Then tried several values to no avail, then removing “nvmultistreamtiler”, results in:
WARNING: erroneous pipeline: could not link videoconvert0 to nvv4l2decoder0
Could you please provide a hint on how to link both pipelines successfully? Thanks in advance.