Community
cancel
Showing results for 
Search instead for 
Did you mean: 
song_l_
Beginner
55 Views

QuickSync failed to decode H264 using YV12 input

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
55 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

 

Reply