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

Can HEVC decode to YV12

Ike_S_
Beginner
275 Views

Can the HEVC decoder plugin output YV12? I can decode to NV12, but not to YV12

In particular, this works

         pVideoParams->FrameInfo.FourCC          = MFX_FOURCC_NV12;
         sts = MFXVideoDECODE_Init(session, pVideoParams);

But this returns MFX_ERR_INVALID_VIDEO_PARAM:

         pVideoParams->FrameInfo.FourCC          = MFX_FOURCC_YV12;
         sts = MFXVideoDECODE_Init(session, pVideoParams);

Should I assume the HEVC video decoder plugin supports only NV12 for the decompressed output?

 

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
275 Views

Sorry for the delay in getting back to you.  In general, Media SDK's default format is NV12.  Most of the encoders/decoders only work with NV12, with the exception of MJPEG.  VPP can help with converting to/from other formats in some cases, but software or OpenCL color conversions may be required if the conversion isn't on VPP's short list.    (In this particular case VPP won't help -- it can do YV12 in/NV12 out but not the reverse).  Just mentioning it to illustrate the design.

 

0 Kudos
Reply