12_v4l2_camera_cuda example does not work with MJPEG

The 06_jpeg_decode example with multiple files and the 12_v4l2_camera_cuda example with an MJPEG camera do not work. In both cases, only the first image is decompressed successfully and subsequent frames simply reproduce the first image even though their content is different. In other words, both examples only decompress a single image, despite the code being designed to decode multiple images. No error is thrown, the decompression functions simply keep returning the same original result, even though the source image changes, as if they are caching the original image. I have used the decompression routines on JetPack 4.6.3 on a Xavier NX and they worked fine, but in this case I am running JetPack 5.1.2 on an Orin Nano. (We need JPEG decompression for a USB camera that we intend to use which outputs MJPEG frames).

Any help would be appreciated. I am assuming a patch to the libnvjpeg.so library may be necessary.

This issue is known and we are working on it. Will update when there is further finding.

Fair enough. I look forward to an update. Thank you!

Please upgrade to Jetpack 5.1.3 and apply the prebuilt lib:

Jetson/L4T/r35.5.x patches - eLinux.org
[MMAPI/gstramer] NvJpegDecoder/nvjpegdec does not work properly

Thank you for the update! I will try that out.

After updating to JetPack 5.1.3 and applying the patch, the two examples now work. Thank you!

1 Like

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