Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor II
17 Views

Does encode sample support YUY2 ?

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
Highlighted
17 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
Highlighted
New Contributor II
17 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
Highlighted
17 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