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

oneVPL simple_encode memory

$
0
0

Hi guys,

I have a problem running the simple_encode project from visual studio. The program itself works fine, in terms of output results.

The program read a raw file as input and encode it as h264 in output. The problem is related to the system memory that keep growing on during test.

For enphatize this behaviour i change the main call of simple_encode as this:

int main(int argc, char* argv[]) {
 
  int status = 0;
  for (int i = 0; i < 20; ++i)
  {
      std::ofstream output_stream("out.h264", std::ios::binary);
      status = EncodeFile("pathtoinputfile\\cars_1280x720.nv12", 1280, 720, output_stream);
      output_stream.flush();
  }

  return status;
}

Result the memory grows till the end of execution, only fall down at the end of program.

What's the matter with this?

Thanks


Viewing all articles
Browse latest Browse all 2185

Trending Articles



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