- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. Will learn pipeline model.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok Victor,
let me close this thread.
Best,
Bjoern Bruecher
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page