Set camera decoder in OpenCV on Jetson Nano

Hi,
Please use jpegdec plugin and try the string:

std::string gst_str = "v4l2src device=/dev/video0 io-mode=2 ! image/jpeg,width=1280,height=480,framerate=60/1 ! jpegdec ! videoconvert ! video/x-raw,format=BGR ! appsink"