There is a problem with the decoder if the fields colour_primaries, transfer_characteristics and matrix_coefficients in the SPS NAL Unit are all set to 1 (Bt.709).
cuGraphicsEGLRegisterImage will fail with CUDA_ERROR_INVALID_VALUE when called on a EGLImageKHR from a capture-plane-buffer dma_fd.
If the same capture-plane-buffer is queued to the V4L2 Video Converter instead as done in the 02_video_dec_cuda sample, you get following error:
libv4l2_nvvidconv (0):(1688) (ERROR) : NvDdkVicConfigure Failed
libv4l2_nvvidconv (0):(1710) (ERROR) : NVVIDCONV ERROR 2
should bt709 FullRange work with NvBuffer and cuGraphicsEGLRegisterImage?
Because right now i have the same issue as cuGraphicsEGLRegisterImage fails on NvBufferColorFormat_NV12_709 frames but with NvBufferColorFormat_NV12_709_ER instead of NvBufferColorFormat_NV12_709. (NvBufferColorFormat_NV12_709 is working)
Hi,
In the topicNvBufferColorFormat_NV12_709 is added to cuGraphicsEGLRegisterImage(). NvBufferColorFormat_NV12_709_ER is not added. Does it work in your use-case by converting to NvBufferColorFormat_NV12_709 whiling calling cuGraphicsEGLRegisterImage(). And then convert back to NvBufferColorFormat_NV12_709_ER through NvBufferTransform()?
i want to keep the input colorspace and map it to cuda. so converting to NV12_709 would not be an option for me.
could you please add NvBufferColorFormat_NV12_709_ER to cuGraphicsEGLRegisterImage as well.
is there any other colorspace known not to work with cuGraphicsEGLRegisterImage?
does cuGraphicsEGLRegisterImage() do any Colorspace transformation or why is it depending on this information?
In the prebuilt lib, NvBufferColorFormat_NV12_709_ER is added in cuGraphicsEGLRegisterImage(). Please backup original prebuilt lib before the replacement.
Hi,
The latest release is Jetpack 4.6.1(r32.7.1) and is just out-of-the-oven. The next release will not be seen in a short time. If you need the fix for r32.7.1, we can attach the prebuilt lib on this topic.