TX1 through V4L2 under RGB vin format

Currently, we use the following command to get the video from TX1 through V4L2 under YUV vin format.
“gst-launch-1.0 -v v4l2src device=”/dev/video0" ! “video/x-raw,width=1920,height=1080, format=(string)I420” ! nvvidconv ! “video/x-raw(memory:NVMM)” ! nvoverlaysink sync=false -e"
Now we want to change the vin format from YUV to RGB, but we don`t know if TX1 support RGB vin or not.
If yes, what is the command we can use to check the video?
Thanks.

nvvidconv supports RGBA and BGRx. You may check capability via

$ gst-inspect-1.0 nvvidconv

Hi

we can use the command from YUV to RGBA.

gst-launch-1.0 -v v4l2src device="/dev/video0" ! "video/x-raw,width=1920,height=1080, format=(string)I420" ! nvvidconv ! "video/x-raw(memory:NVMM),width=1920,height=1080, format=(string)RGBA" ! nvoverlaysink sync=false -e

I want to change the vin from YUV to RGB, but we don`t know if v4l2src support RGB vin or not.
Or TX1 have another command can support vin RGB format.

Thanls.

Hi philip, nvvidconv does not support RGB.

You can check your v4l2 source via ‘v4l2-ctl -d /dev/video0 --list-formats’

Hi DaneLLL,

We check the v4l2 source.
It have RGGB, RG10, RG12, UYVY sources.
But it doen`t have RGB888.
So we can not change the vin form YUV to RGB888.
Is it correct?

Not sure about it, probably other users can share experience. But usually, it is YUV format such as UYVY, I420.