Hardware accelerated gstreamer/nvvidconv convert from YUV* to RGB*?

Hi,
Please try

gst-launch-1.0 -v v4l2src device=/dev/video0 ! 
'video/x-raw, width=3840, height=2160, format=YUY2, framerate=30/1' ! 
nvvidconv ! 'video/x-raw(memory:NVMM),format=RGBx' ! nvvidconv ! 
'video/x-raw, width=3840, height=2160, format=BGRx, framerate=30/1' ! 
appsink caps='video/x-raw,format=BGRx' max-buffers=1

The nvvidconv supports

video/x-raw ! nvvidconv ! video/x-raw(memory:NVMM)
video/x-raw(memory:NVMM) ! nvvidconv ! video/x-raw

Does not support

video/x-raw ! nvvidconv ! video/x-raw

You may also try this patch:
Macrosilicon USB - #5 by DaneLLL
So that you can run like:

nvv4l2camerasrc ! 'video/x-raw(memory:NVMM),format=YUY2' ! nvvidconv ! video/x-raw,format=BGRx ! appsink
1 Like