<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [Live-devel] memory leak problem?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>BLOCKQUOTE {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
DL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
UL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
OL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
LI {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
</STYLE>
<META content="MSHTML 6.00.2800.1578" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>if the library was to be modified to provide an
option where you could record a stream into a number of files - let's say
containing 1min of video each - without terminating the rtsp session, would the
problem be fixed? that is to say, is the problem caused by keeping track of mp4
file information for the duration of the stream contained in that file? to
implement such a solution, you probably would have to keep and modify some file
header information in memory for the duration of the stream but that could just
be constant upperbound for memory usage. could I extend the library in this way
or does it not make sense either in terms of mpeg-4/mp4 or the way the library
is structured? thanks.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=finlayson@live555.com href="mailto:finlayson@live555.com">Ross
Finlayson</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=live-devel@ns.live555.com
href="mailto:live-devel@ns.live555.com">LIVE555 Streaming Media - development
& use</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 05, 2006 5:53
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Live-devel] memory leak
problem?</DIV>
<DIV><BR></DIV>
<BLOCKQUOTE cite="" type="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 cite="" type="cite"><FONT face=Arial
size=-1></FONT> </BLOCKQUOTE>
<BLOCKQUOTE cite="" type="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>
<P>
<HR>
<P></P>_______________________________________________<BR>live-devel mailing
list<BR>live-devel@lists.live555.com<BR>http://lists.live555.com/mailman/listinfo/live-devel<BR></BLOCKQUOTE></BODY></HTML>