MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: Save to Quicktime during calculations?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66476] Re: [mg66447] Re: Save to Quicktime during calculations?
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Mon, 15 May 2006 23:48:58 -0400 (EDT)
  • References: <e3jsgf$8mj$1@smc.vnet.net> <200605130642.CAA08910@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You have to be very careful if you want memory usage in Mathematica to
stay flat. The In and Out variables, for instance, keep track of every
input and output (cell ?) that have been created. There are several
threads on the MathGroup about memory consumption; I suggest searching
them for the appropriate commands.

http://groups.google.com/group/comp.soft-sys.math.mathematica

On 5/13/06, Gustavo Delfino <gdelfino at gmail.com> wrote:
> What you can do is save each frame to a png or gif file as it is being
> generated. Then, if you have QuickTime Pro, you can convert the frames
> into a movie.
>
> I should warn you that if you are generating a large number of frames,
> then the mathematica front end will use (leak?) more and more memory
> until it crashes. Even if you are not displaying the figures. I have
> tested this with versions 5.1 and 5.2 while running this code:
>
> Do[
>    Plot[Sin[t], {t, 0, 1},
>    DisplayFunction ->
>      Function[g,Display["~/Desktop/test/" <> ToString[x]
> <>".eps",g,"EPS"]]],
> {x, 1, 18000}]
>
> I wonder if version 2.2 has this problem.
>
> Regards,
>
> Gustavo Delfino
> Caracas, Venezuela
>
> Larry Knight wrote:
> > Hello;
> >
> > I have a Mathematica program which produces a 3-D surface as its output,
> > which varies with time.  I have  a  loop which produces one rendering of
> > the surface for each time interval.
> >
> > I am currently making the output into a QuickTime movie by selecting the
> > rendered output cells at the end of fhe computation, and converting to
> > QuickTime.  However, I cannot run the program for as long as I would
> > like due to running out of memory after a large number of time
> > iterations.
> >
> > So, my question is:
> > Can I somehow direct the rendered output frames DIRECTLY to a QuickTime
> > file (even if the file is not optimally compressed)?  Or, if that is not
> > possible, can I direct the output to another type of  file format which
> > some QuickTime editor can then process without too much pain?
> >
> > At the moment I have to produce a short QuickTIme movie, then restart
> > Mathematica to regain my memory, then produce another short movie, then
> > stitch them together, etc. There has to be a better way!
> >
> > No doubt one of you has solved this problem already. I would appreciate
> > any help.
> >
> > By the way, I am running Mathematica 2.2 on an iMac under the Classic
> > emulator of OSX.
> >
> > Thanks in advance,
> > Larry Knight
> > Please also reply to:  LarryKnight71  (at) oohay (backwards) .com
>
>


-- 
http://chris.chiasson.name/


  • Prev by Date: compound symmetrical primes
  • Next by Date: Re: Re: Re: )
  • Previous by thread: Re: Save to Quicktime during calculations?
  • Next by thread: Finding roots of equalities involving Legendre Polynomials