Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.

linux intel sdk about 1.8 decode MFX_ERR_NOT_INITIALIZED

andya
Beginner
113 Views

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

Reply