<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] memory leak
problem?</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">i'm testing
recording streaming video with openRTSP on two separate linux
platforms (x86 and MIPS) and both instances seem to be leaking memory.
is this a known problem? i just wanted ask before looking at the
code.</font></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1"> </font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">i'm invoking
openRTSP with the following runtime options: -F testmov -4 -H -m -f 20
-b 40000</font></blockquote>
<div><br></div>
<div>First, it doesn't make sense to use the -m option with -4 (or
-q). The "-m" option means: output each frame into a
separate file.</div>
<div><br></div>
<div>If you use -4 (or -q), then the program will accumulate (not
'leak') memory over time, until it finishes reading the input stream,
and is ready to complete writing the output file. This is
because of the way that MPEG-4 (and MOV) format files are designed.
There is nothing that can be done about this. (The problem is
that these file formats are ill-designed for recording incoming
streams.)</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>