[MPlayer-dev-eng] [BUG] libavformat ogg demuxer using too much memory (was: Re: [BUG] [PATCH] Ogg/Theora frametime broken on 0-length packets)

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun May 1 18:33:18 CEST 2011


On Sun, May 01, 2011 at 04:08:28PM +0200, David Kuehling wrote:
> >>>>> "Carl" == Carl Eugen Hoyos <cehoyos at ag.or.at> writes:
> 
> > David Kuehling <dvdkhlng <at> gmx.de> writes:
> >> The libavformat demuxer seems to work correctly.  However it uses so
> >> much memory (a leak), that it won't work on the target platform
> >> (NanoNote: 32MB RAM, no swap).
> 
> > Please elaborate.
> 
> Playing back this video:
> 
>  http://mosquito.dyndns.tv/david/nanonote/bbb.ogv
> 
> Mplayer memory usage increases by approx 3 MB/minute.  Using -vc theora
> does not change anything.  However, memory usage stays (almost) constant
> when played using -demuxer ogg .

Ah, that is probably the generic index functionality which helps
speed up seeking.
You will have that issue with all lavf formats that don't have an index
themselves, though probably the issue is due to audio.
Try setting "-lavfdopts o=indexmem=n" with n a value that gives you the
best compromise between seeking behaviour and memory usage.
What is strange though is that the limit is supposed to be 1 MB per
stream, so it should not be more than 2 MB...


More information about the MPlayer-dev-eng mailing list