Community
cancel
Showing results for 
Search instead for 
Did you mean: 
andya
Beginner
33 Views

linux intel sdk about 1.8 decode MFX_ERR_NOT_INITIALIZED

linux medis sdk 1.8

h264decode,i have a problem:

         memset(&mfxVideoParams, 0, sizeof(mfxVideoParams));
         //mfxVideoParams.mfx.CodecId =MFX_CODEC_JPEG;
         mfxVideoParams.mfx.CodecId =MFX_CODEC_AVC;
         mfxVideoParams.IOPattern = MFX_IOPATTERN_OUT_SYSTEM_MEMORY;

......

          sts = ReadBitStreamData1(&mfxBS, data, length); ==>sts =0;

          sts = pmfxDEC->DecodeHeader(&mfxBS, &mfxVideoParams);==>sts =0;

......

          mfxFrameAllocRequest Request;
          memset(&Request, 0, sizeof(Request));
          sts = pmfxDEC->QueryIOSurf(&mfxVideoParams, &Request); ==>sts =0;

           sts = pmfxDEC->Init(&mfxVideoParams);==>sts =-8,    MFX_ERR_NOT_INITIALIZED why?

i don't know the error,what's mean it?

 

0 Kudos
2 Replies
andya
Beginner
33 Views

it'ok,on window sdk,but same code on linux sdk have error,it's MFX_ERR_NOT_INITIALIZED,see it's no easy,only replace the platform library

Jeffrey_M_Intel1
Employee
33 Views

There are a few differences to keep in mind between the Windows and Linux implementations:

1. Windows has SW and HW implementations, Linux only has HW.  

2. In Windows, setHandle is only required when you wish to allocate your own video memory surfaces.  In Linux, ALL sessions require setHandle after init.

The code to do this is in the Linux samples.  When the next release of the tutorials is available (should be very soon) they will illustrate initialization in a simpler way.  For now, there is more information to get you started in this thread.   

Best regards,

Jeff