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.

About H264 to YV12

dong_x_
Beginner
418 Views

 

Hi ,

   Base "simple_decode",  When I decode the H264 to YUV, I find the output is always NV12?

    How can I get the YV12 or YUV420 directly ?

   Don't use the " WriteRawFrame" to copy each bits.

 

0 Kudos
1 Reply
Surbhi_M_Intel
Employee
418 Views

Hi,

Media SDK HW only decodes to NV12 format in memory, psurface o/p in simple_decode is provided as a pointer where Y data is planar and U V are packed. Developer can choose any method to write it to a file. Our samples & tutorials uses fwrite to write the yuv from a memory to a file.

-Surbhi

 

0 Kudos
Reply