What is the best approach to capture the image as JPEG insdead of RAW


I checked several existing NvMedia samples, it looks like all of them prompt the user the save the captured frame as RAW. We intend to ease the storage spaces and data transfer capability, apart from existing program to encode the camera stream as H.264, are there any approaches to encode them as JPEG and would that be recommended?

Hi xunfei.zhou,

You can refer to the sample for JPEG encoding.