nvjpegenc environment mismatch in L4T R19.3?

Hi all,

I tried using Nvidia’s hardware JPEG encoding first with gstreamer-1.0, and it failed:

gst-launch-1.0 -v videotestsrc num-buffers=1 ! 'video/x-raw,width=1920,height=1080,format=I420' ! nvjpegenc ! filesink location=test.jpg

and got

JPEG parameter struct mismatch: library thinks size is 432, caller expects 480

After that I tried to return to roots and used gstreamer-0.10 image encode example from page 9 of Jetson TK1/Tegra Linux Driver Package Multimedia User Guide (DA_07303-001_01):

gst-launch-0.10 videotestsrc num-buffers=1 ! 'video/x-raw-yuv,width=(int)1280, height=(int)720, format=(fourcc)I420' ! nvjpegenc ! filesink location=test.jpg -v -e

Got the same:

JPEG parameter struct mismatch: library thinks size is 432, caller expects 480

Does anybody know where the problem can be?

You probably want to upgrade to R21.1. It has some fixes both for GStreamer 1.0 and the nvjpeg. Even if it wouldn’t help in this particular error, having the latest release is always a good thing.

Kiitos kulve :)

They say there are some issues with USB3 which is absolutely required in an urgent project so I will have to postpone the upgrade… However, will be back later:)