NVJPEG

According to TRM there is NVJPEG hardware on SOC, does NVJPEG uses the dedicated hardware or GPU ?

Hi Ravi, it is dedicated encode/decode hardware. See the L4T Accelerated GStreamer User Guide for examples of using hw-accelerated nvjpegenc/nvjpegdec elements, and the 05_jpeg_encode and 06_jpeg_encode samples from L4T Multimedia API for using it through V4L2.

If you run the following GStreamer pipeline and watch tegrastats in the background, you can see the GPU utilization remains near zero (because it is not using GPU for the encoding):

$ gst-launch-1.0 videotestsrc ! 'video/x-raw, width=(int)640, height=(int)480, \
 format=(string)I420' ! nvjpegenc ! multifilesink location=frame%d.jpg -e
gst-launch-1.0 rtspsrc location=rtsp://admin:123456@192.168.10.65/stream0  latency=0 ! rtph265depay  ! h265parse ! nvv4l2decoder! 'video/x-raw(memory:NVMM), width=(int)640, height=(int)480, \
 format=(string)I420' ! nvjpegenc ! multifilesink location=frame%d.jpg -e

Is this correct format for RTSP to JPG? did not work for me