Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Does encode sample support YUY2 ?

rshal2
New Contributor II
62 Views

Hello,

Can I use YUY2 format in encoder sample ?

encoder sample pdf states that the input formats are: YUV420, NV12

But the sample use vpp, so why can't it also use any of the other supported formats: YUY2,  (and ARGB) ?

Regards,

Ran

0 Kudos
3 Replies
Jeffrey_M_Intel1
Employee
62 Views

Hi Ran, 

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.

Regards, Jeff

 

 

rshal2
New Contributor II
62 Views

Hi Jefferey,

 

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 ?

Regards,

Ran

Jeffrey_M_Intel1
Employee
62 Views

Hi Ran,

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.

Reply