Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Does encode sample support YUY2 ?

rshal2
New Contributor II
431 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
431 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

 

 

0 Kudos
rshal2
New Contributor II
431 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

0 Kudos
Jeffrey_M_Intel1
Employee
431 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.

0 Kudos
Reply