Dose TX2 support lossless H.264 encoding?

Hi,
I have checked the following topic:
https://devtalk.nvidia.com/default/topic/1026493/jetson-tx1/lossless-h-264-encoding/post/5220785/#5220785
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?

Hi,
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:
https://devtalk.nvidia.com/default/topic/1043583/jetson-agx-xavier/lossless-hardware-h-264-encoding/post/5321955/#5321955

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

Hi,

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