On my AGX running JP 4.6.1, I have a series of png files (PNG image data, 1296 x 972, 8-bit grayscale, non-interlaced) that I am trying to create rtsp stream. I tried both hardware and software encoder:
On a test client (Debian 11), I tried to capture the rtsp stream and save back to png files, just to see how they compare to the original png files on the AGX.
When I open the resulting png files and check them visually to compare to the original png files, I can see :
when using hardware encoder, the resulting images seems much lighter gray. I tried adding property “enable-lossless=true” to nvv4l2h265enc, but that doesn’t make a difference.
when using software encoder, the darkness level seems to match very well.
Anything I can tune the hardware encoder so that I can have same level of darkness, like the software encoder?
Hi,
Seems like the GRAY8 is in full range [0,255]. In nvvidconv plguin, it allocates NvBuffer in NvBufferColorFormat_GRAY8, which is in limited range [16,235].
Hi,
We would need to check if we can include this use-case in next release. On the existing releases, please use videoconvert plugin for the conversion.