We have developed an application on an Orin AGX that grabs cameras and presents them in a 3D scene using OpenGL.
There is a recording feature which takes the framebuffer and records it as a H.264 video.
We noticed that the colors in the recorded file where significantly darker than on the screen.
Investigating further it seems that bright colors are made brighter and dark colors darker.
For the Windows version of our software we record using FFMPEG which doesn’t show this change in colors.
In both cases we feed the same RGB(A) framebuffer into the library.
I haven’t found what we should do differently. It looks to me as if the Jetson-Utils library assumes the image is sRGB while it is RGB or something like that. How do I use it correctly? The performance is great otherwise.
In the attached file you can see how the colors differ when I feed in a picture instead of camera video. Already the gray lines between the tiles show a difference in brightness.