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.

Sample Encode example - CPU Usage

perhaad
Beginner
594 Views
Hello,
When using the sample encode example for the Media SDK, is there any method to restrict the number of cores of a system that the encoder runs on.
While looking at the documentation, I sawthemfxCoreParam structure which allows you to specify the maximum number of active threads that can be used.
However that seems to be used in case you define your own pipeline only ? and cannot be used with the mfxvideo.h interface ?
Also as an extension question when I run the encoder with -hw on a 2nd gen core i5 system. does it use both the CPUs and the hardware accelaration ? I ask this because, the system utilization increases for all cores.
Thank You,
Perhaad
0 Kudos
1 Reply
Nina_K_Intel
Employee
594 Views
Hi Perhaad,

mfxVideoParam.mfx.NumThread has been deprecated since MSDK 3.0 so now there is no control over number of threads/cores to be used by MSDK components.

As for hardware library, it does use CPU as some of its code runs on CPU. But the CPU load should not be significant. Overmore there is software fallback implemented for configurations unsupported by hardware platform - you can check if this is your case by inspecting the return code of Init functions of ENCODE and VPP - MFX_WRN_PARTIAL_ACCELERATION indicates software fallback.

Regards,
Nina
0 Kudos
Reply