Lossless video encoding on Jetson Xavier using GStreamer

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.

Hi,
We don’t support lossless encoding in gstreamer now. Please use jetson_multimedia_api. Here are two relevant topics:
Lossless H264/HEVC - #3 by DaneLLL
Can tx2nx decode YUV444? - #3 by DaneLLL

You have to convert frame data into YUV444. For lossless encoding, only YUV444 is supported.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.