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

Rising memory use from URL-based IMFMediaSource

$
0
0

Hi,

I have a URL based IMFMediaSource which I'm recording to a file sink.

The memory use for the process has risen about 10Mb over about 16 hours, and there have been about 250,000 page faults, as opposed to about 2000 for other sources.

My code is the same for using other Media Sources from different URLs or devices, and they do not exhibit this behaviour - their memory use is static at around 2.5Mb for devices, 4Mb for internet streams.

The URL is (not allowed to be included by me on this webpage, it's an mp3 Icecast stream) and the sink is a modified version of the CWavSink from the Media Foundation samples, modified to write to 1 minute segments.

There is also a file in C:\Users\<user>\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\<random>\ called diversefm[4].dat which has just passed 1Gb in size and is growing about 60Kb every 5 seconds or so.

As this application needs to run 24/7, perpetually increasing resource use makes this feature untenable.

Is there a known memory leak in the MP3 decoder, and/or is there a way to avoid the situation described? (Other than opening the URL in a media player on a different machine and routing the audio to local input...).

Thanks,


Viewing all articles
Browse latest Browse all 1079

Trending Articles



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