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.

linux intel sdk about 1.8 decode MFX_ERR_NOT_INITIALIZED

andya
Beginner
354 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
354 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

0 Kudos
Jeffrey_M_Intel1
Employee
354 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

0 Kudos
Reply