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?