Quantcast
Channel: Intel® Software - Media
Viewing all articles
Browse latest Browse all 2185

Can't encode yuv with HD graphics

$
0
0

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.

 

 

 


Viewing all articles
Browse latest Browse all 2185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>