maslab.vis
Class VisMovie

java.lang.Object
  extended by maslab.vis.VisMovie

public class VisMovie
extends java.lang.Object

Create a movie of a VisCanvas. It actually creates a whole mess of still frames in a specified directory which must be converted into a movie with a program such as 'convert'. This will create a directory full of png images which will need to be converted into a movie with a separate application. e.g.: mencoder "mf://*.png" -mf fps=10 -o output.avi -ovc lavc -lavopts vcodec=mjpeg:vhq:vbitrate=2000 (or -ovc raw) ugh, mencoder can be so uncooperative! try this: mencoder mf://*.png -mf w=720:h=480:fps=29.97:type=png -ovc copy -oac copy -o output.avi


Constructor Summary
VisMovie(java.lang.String basepath, java.lang.String filebase, int width, int height)
          Creates a new VisMovie object.
 
Method Summary
 void addFrame(VisCanvas canv)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisMovie

public VisMovie(java.lang.String basepath,
                java.lang.String filebase,
                int width,
                int height)
         throws java.io.IOException
Creates a new VisMovie object.

Parameters:
basepath - The absolute path to a directory in which to write the frames. The directory will be created if necessary.
filebase - The basename of the filenames. Pass in null to use a unique prefix of the form "fYYYY-MM-DD-HHMM_".
Throws:
java.io.IOException
Method Detail

addFrame

public void addFrame(VisCanvas canv)