Media (Intel® oneAPI 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

About H264 to YV12

dong_x_
Beginner
198 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
198 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