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.

QuickSync failed to decode H264 using YV12 input

song_l_
Beginner
365 Views

Hi.

the MFXVideoENCODE_Init function failed when FourCC set to  MFX_FOURCC_YV12;

Is that mean QuickSync doesn't support YV12 input or something I missed?

The source is:

m_mfxEncParams.mfx.FrameInfo.FourCC = MFX_FOURCC_NV12; //OK
//m_mfxEncParams.mfx.FrameInfo.FourCC = MFX_FOURCC_YV12; //NG
m_mfxEncParams.mfx.FrameInfo.ChromaFormat = MFX_CHROMAFORMAT_YUV420;
m_mfxEncParams.mfx.FrameInfo.PicStruct = MFX_PICSTRUCT_PROGRESSIVE;
status = MFXVideoENCODE_Init(session, &m_mfxEncParams);

The enviroment is;

  Intel(R) HD Graphics 4600                    10.18.15.4256       Active

  Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz

   Intel(R) Media SDK 2016

What should I  do to encode a YV12 source to H264.

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
365 Views

For this scenario you will want to do VPP colorspace conversion first.  For a starting point you can use simple_6_encode_vmem_vpp_preproc from the tutorials package.  This shows RGB4->NV12 but it should be straightforward to switch to YV12 input.  For h264 the encoder needs NV12 inputs.

Regards, Jeff

 

0 Kudos
Reply