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.

Memory leak on avc encoder (kaby lake)

Kwak__Jaehyuck
Beginner
589 Views

I am developing a remote access solution that captures and encodes the Windows screen using Intel media SDK and transmits it remotely over a network.

It is a solution that captures the entire screen of 1920 x 1080 FHD resolution from the PC terminal running windows 10 using 7th generation or 8th generation core i3 or i5, and then encodes and transmits it through the network. (30FPS, GOP 15, detailed tracer log)

Only the parameters for encoding were modified, and the code related to the basic logic did not modify the sample.


I.e.

  1. After decode / vpp / encode init with the first mfx_encode_init
  2. After encoding is complete as the sample process decode (capture)-vpp-encode with CaptureAndEncode.
  3. Real-time streaming was implemented by delivering the encoded data to the socket.

Processes 2 and 3 are repeated until the program ends.


The problem is that it seems to work fine but the committed memory continues to grow, causing the system to hang.

Several postings on the forums find similar cases of memory leaks in encoders.

I'm still wondering if there are any bugs left. If it has been fixed, I would like to know which driver version is complete and whether there are any hotfixes that can be fixed without changing the driver.


Thank you for your attention. :)

0 Kudos
1 Reply
Mark_L_Intel1
Moderator
589 Views

Hi Jaehyuck,

My understanding is, you are modifying our sample code to create your application. So I suggest, you can run the original sample code and see if it has the same memory growing as you observed.

Let me know if the sample has the same issue, I will help you more to resolve it.

In general, the issues you listed should be all fixed. This is a memory management issue not a real memory leak, in other words, the memory growing is happens only at the application level.

Mark

0 Kudos
Reply