- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page