Two questions about jpeg encode?

Seems you are using Jetson. Please try deepstream_image_meta_test.c (20.3 KB)

And please notice there are some issue with deepstream-image-meta-test sample now with Jetson. Deepstream-transfer-learning-app saving wrong image file name - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums

If we can reproduce the problem. We can debug the bug. The information mean nothing to you since the implementation is not open source.