[Live-devel] memory leak problem?

Gun Alppay gun at xanboo.com
Wed Dec 6 07:49:49 PST 2006


Re: [Live-devel] memory leak problem?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.
  ----- Original Message ----- 
  From: Ross Finlayson 
  To: LIVE555 Streaming Media - development & use 
  Sent: Tuesday, December 05, 2006 5:53 PM
  Subject: Re: [Live-devel] memory leak problem?


    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.

    i'm invoking openRTSP with the following runtime options: -F testmov -4 -H -m -f 20 -b 40000


  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.


  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.)
-- 

  Ross Finlayson
  Live Networks, Inc.
  http://www.live555.com/


------------------------------------------------------------------------------


  _______________________________________________
  live-devel mailing list
  live-devel at lists.live555.com
  http://lists.live555.com/mailman/listinfo/live-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20061206/da54b23f/attachment-0001.html 


More information about the live-devel mailing list