Dose TX2 support lossless H.264 encoding?

I have checked the following topic:
I tested this command:

gst-launch-1.0 nvcamerasrc num-buffers=150 ! omxh264enc control-rate=0 qp-range=0,1:0,1:0,1 quant-i-frames=0 quant-p-frames=0 ! 'video/x-h264,stream-format=byte-stream' ! filesink location=a.h264

I also can see few bits in wrong values.
But I need really accomplish lossless compression.
Could you help me on this issue?

The working case is to quantize all frames at qp value=0, but there is still minor loss. If you require the input YUV420 frames exactly identical to decoded YUV420 frames in your usecase, we now have no plan for it.

A relevant post:

Thank you for your reply!
By the way, does nvjpegenc support really accomplish lossless compression?


No, it is not supported. You can try quality=0 although it is lossy.