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.

Can't encode yuv with HD graphics

Viktor_S_
Beginner
399 Views

Hi,

I am learning Media Server SDK and encode sample encodes fine when i use:

MFXVideoSession session;
sts = session.Init(MFX_IMPL_HARDWARE, &version);

Output:

HW version:1.16 API Level: 1.16

Затрачено время: 182 mс
fps: 554.94505
Press <RETURN> to close this window...

When i use this function:

MFXVideoSession session;
sts = Initialize(MFX_IMPL_HARDWARE, version, &session, NULL);

I got:

libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
HW version:1.16 API Level: 1.16

 Operation aborted. ../enc/main.cpp 187
Press <RETURN> to close this window...

Or if i comment line 187:

sts = session.SyncOperation(syncp, 60000);
//MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts); //187

i got:

libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
HW version:1.16 API Level: 1.16
Frame number: 5
 Could not allocate memory. ../enc/main.cpp 162
Press <RETURN> to close this window...

Here is my cpp: http://verti.ee/etc/intel_encode/main.cpp.txt

 

System:

Gentoo Linux 4.1.12 x86_64

Intel® 4th generation Core™ i7-4770R

Intel® Iris™ Pro graphics 5200

Please help me.

 

Best regards Viktor.

 

 

 

0 Kudos
3 Replies
Bjoern_B_Intel
Employee
399 Views

Hi Victor,

Please look at declaration of function Initialize below:

mfxStatus Initialize(mfxIMPL impl, mfxVersion ver, MFXVideoSession* pSession, mfxFrameAllocator* pmfxAllocator, bool bCreateSharedHandles)

You are facing a conversion problem on impl. Please look at simple_encode sample which shows in detail how it works. You might want to start there.

Best,

Bjoern Bruecher

0 Kudos
Viktor_S_
Beginner
399 Views

Thanks. Will learn pipeline model.

0 Kudos
Bjoern_B_Intel
Employee
399 Views

Ok Victor,

let me close this thread.

Best,

Bjoern Bruecher

0 Kudos
Reply