I link my C++ software with opencv4.1.1 and g-streamer, when the c++ instruction
_jpegEncoder = gst_element_factory_make ("nvjpegenc", "jpegEncoder_0");
is executed, I got following error:
JPEG parameter struct mismatch: library thinks size is 584, caller expects 728.
I think the problem is located on the library libjpeg that now I use libjpeg.so.8 with new opencv. Before I was using libjpeg.so.6 with an older opencv. But I can’t find how I can make it works.
I tried something I’ve seen in the forum to replace libgstnvjpeg.so by libgstjpeg.so I don’t get the error anymore but it don’t work too.