Issues with nvjpegdec on live HTTP streams

Hi all,

I’m trying to connect to a MJPEG encoded live HTTP stream using gstreamer’s nvjpegdec plugin on Jetson Orin Nano and Jetson Xavier NX. I have a couple gstreamer pipelines to do the testing with I420 (default with nvjpegdec), NV12 and RGBA formats. The problem is, once you run the below pipelines with I420 and NV12, the stream freeze after the first frame. If you run it with RGBA format, the stream flow is great but image output is red. I also inspected the hardware utilization (NVJPG0/NVJPG1) during the stream on all of the streams and it seems there is no problem with initialization either.

DEFAULT I420 - FROZEN

gst-launch-1.0 souphttpsrc location=http://31.160.161.51:8081/mjpg/video.mjpg do-timestamp=1 blocksize=4294967294 http-log-level=0 is-live=1 ! queue ! jpegparse ! nvjpegdec ! 'video/x-raw(memory:NVMM),format=I420' ! queue ! nvvidconv ! videoconvert ! queue ! xvimagesink sync=false

OPTIONAL NV12 - FROZEN

gst-launch-1.0 souphttpsrc location=http://31.160.161.51:8081/mjpg/video.mjpg do-timestamp=1 blocksize=4294967294 http-log-level=0 is-live=1 ! queue ! jpegparse ! nvjpegdec nv12output=1 ! 'video/x-raw(memory:NVMM),format=NV12' ! queue ! nvvidconv ! videoconvert ! queue ! xvimagesink sync=false

OPTIONAL RGBA - NOT FROZEN BUT RED IMAGE

gst-launch-1.0 souphttpsrc location=http://31.160.161.51:8081/mjpg/video.mjpg do-timestamp=1 blocksize=4294967294 http-log-level=0 is-live=1 ! queue ! jpegparse ! nvjpegdec rgbaoutput=1 ! 'video/x-raw(memory:NVMM),format=RGBA' ! queue ! nvvidconv ! videoconvert ! queue ! xvimagesink sync=false

Additionally I’m doing these tests on both JetPack 5.0.2 (r35.1.0) and JetPack 5.1.2 (r35.4.1) and it seems there is a bug in the latest version since the error doesn’t occur on the JetPack 5.0.2.

1 Like

Hi,
Issue in hardware JPEG decoding is reported in
NvJPEGDecoder generates the same output if called twice with different input buffer

We are checking it internally. Will update when there is further progress.

Hi,

Okay, I will be tracking the issue from there.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

Hi,
On Jetpack 5.1.2, please replace nvjpegdec with nvv42decoder mjpeg=1. MJPEG decoding should work in nvv4l2decoder.