Login  Register

Re: Video calculation class?

Posted by Rasband, Wayne (NIH/NIMH) [E] on Jul 22, 2010; 2:29pm
URL: http://imagej.273.s1.nabble.com/Video-calculation-class-tp3687512p3687513.html

On Jul 22, 2010, at 10:14 AM, Sven Boekhoff wrote:

> Hello.
>
> I'm writing software in Java and want to create a video file out of
> several PNG images. In ImageJ I can export a list of images to an AVI
> container. But how can I uses this function in my own program? I did not
> find a corresponding class in the javadoc.
>
> Does anybody know how it works and/or has alternatives?

Use the File>Save As>AVI command with the command recorder (Plugins>Macros>Record) running in "Plugin" mode to generate the needed code. Here is an example of recorder generated Java code:

  ImageJ imp = IJ.getImage();
  IJ.run(imp, "AVI... ", "compression=JPEG frame=30 save=/Users/wayne/Stack.avi");

-wayne