I am trying to save a video on Jetson Xavier NX using OpenCV and Gstreamer.
I have an 8UC3 cv::Mat that I am writing to a mp4 video using a GStreamer pipeline. The pipeline uses nvv4l2h264enc bitrate=8000000 insert-aud=1 insert-sps-pps=1 to encod and uses UYVY format. However, I understand I can be losing information here and I really can’t afford to.
Are there ways to make sure the compression is lossless? I can handle larger sizes of the file.