This is a great suggestion. I'm hoping we can add more color conversion sample code and documentation in the future. Definitely agree this is an important topic.
For now, you can see an RGB4->NV12 conversion in simple_6_encode_vmem_vpp_preproc.
You can use the tutorial's LoadRawFrame and LoadRawFrameRGB functions in common/common_utils.cpp as examples for other input formats supported by VPP.
Thank you for the response,
We see in media sdk user's guide documentation that YUY2 is also one of the supported media sdk color formats.
If it is not supported with the captured video, where is it supported ?
Sorry for the delay in replying to this question. For YUY2 you need to use VPP to convert to NV12 first. The simple_6_encode_vmem_vpp_preproc tutorial is relatively easy to modify to read YUY2 instead of RGB4.