Video calculation class?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Video calculation class?

Sven Boekhoff
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?

Thanks in advance,

Sven
Reply | Threaded
Open this post in threaded view
|

Re: Video calculation class?

Rasband, Wayne (NIH/NIMH) [E]
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