Connecting Deepstream-app with IP MJPEG camera (non RTSP)

Hello,

I’m unable to deepstream-app it work with IP MJPEG camera.
In configuration file I set:
[source0]
enable=1
type=3
uri=http://user:pass@camera-ip/cgi-bin/mjpeg?stream=1
num-sources=1
gpu-id=0
cudadec-memtype=0

The error is:
447275742 10716 0x7eb45100a0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “nvjpegdec”
0:00:04.447799670 10716 0x7eb45100a0 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstVideoDecoder@0x7e9c0a7d40 adding pad ‘sink’
0:00:04.447866841 10716 0x7eb45100a0 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstVideoDecoder@0x7e9c0a7d40 adding pad ‘src’
Bus error (core dumped)

The following pipeline is able to show the camera images but it stuck on buffering and there is huge delays and can not be used.

st-launch-1.0 uridecodebin uri=“http://user:pass@camera-IP/cgi-bin/mjpeg?stream=2” ! decodebin ! queue ! nvstreammux0.sink_0 nvstreammux name=nvstreammux0 batch-size=1 batched-push-timeout=40000 width=416 height=416 live-source=TRUE ! queue ! nvvideoconvert ! queue ! nvinfer config-file-path="/pathtofile" model-engine-file=“path to file” ! queue ! nvoverlaysink


Buffering, setting pipeline to PAUSED …
Done buffering, setting pipeline to PLAYING …
Redistribute latency…
Buffering, setting pipeline to PAUSED …
Done buffering, setting pipeline to PLAYING …
Redistribute latency…
WARNING: from element /GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0:
There may be a timestamping problem, or this computer is too slow.
Buffering, setting pipeline to PAUSED …
Done buffering, setting pipeline to PLAYING …

I see gst debug logs the uridecodebin use nvjpegdec which is not supported by deepstream
0:00:03.362909129 22861 0x7f18003b20 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “nvjpegdec”

What should I do to make deepstream works with such cameras?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)

Here are the details:

• Hardware Platform (Jetson / GPU) Jetson Xavier
• DeepStream Version 5.1.0
• JetPack Version (valid for Jetson only) 4.5.1
• TensorRT Version 7.1.3.0
• NVIDIA GPU Driver Version (valid for GPU only) 10.2

HTTP protocol is not a real time transferring protocol, we can not guarantee the delay from server to client. nvjpegdec is supported by deepstream. Gst-nvjpegdec — DeepStream 5.1 Release documentation. Can your http stream be shared to us for testing?