Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

IMFSinkWriter::WriteSample consume 80% processor.

$
0
0

1. Processor - WriteSample uses up 80% of my processor when my webcam runs at 30fps with audio around 26samples per second, while it uses up around only 22% processor when my webcam runs at around 8fps. Is this a normal behaviour or are there any ways or attribute that needs to be set?

2. Memory - When my webcam runs at 8fps, the memory usage is around 50k but at 30fps, the memory keeps increasing to more than 1000k until IMFSinkWriter::Finalize is called which the memory starts decreasing and the video file is created when memory drops back to around 50k. Is this problem caused by lack of processing power to write sample at 30fps? I'm using intel i5-2430m dual core processor and throttling is disabled.

Thank you


Viewing all articles
Browse latest Browse all 1079

Trending Articles



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