Login  Register

Re: AVI, Virtual Stack, >1GB boundery?

Posted by JesperSP on Nov 26, 2008; 6:01pm
URL: http://imagej.273.s1.nabble.com/AVI-Virtual-Stack-1GB-boundery-tp3693422p3693453.html

The file I'm analyzing is actually an LVI file (I just renamed it to AVI, so windows media player would play it). It is generated by a Lumenera infinity capture camera. This is probably why my attempts to find an AVI splitter that could split it into smaller files failed. But ImageJ appears to read the LVI->AVI renamed file just fine up till the 1GB file limit.

If I don't rename the file to AVI, ImageJ will try to open the LVI file with the LOCI plugins that I've installed. Then it only gets to 4096 frames!

Maybe I should try and write a special reader for the LVI files myself.

Cheers,
Jesper


Burger Wilhelm wrote
Jesper,

if you can afford to process the video frame by frame (i.e., without
loading the entire video at once), I recommend to look at my MovieIO
package, to be found here:

http://staff.fh-hagenberg.at/burger/imagej/MovieIO.html

While processing the video, it only maintains a single ImageProcessor
and thus has a very small memory footprint. Examples demonstrate its
simple API, it works EITHER with JMF OR Quicktime. I have used it to
process long and large (even HD) videos. Hope this helps.

Regards,
Wilhelm



> -----Original Message-----
> From: ImageJ Interest Group [mailto:IMAGEJ@LIST.NIH.GOV] On
> Behalf Of JesperSP
> Sent: Wednesday, November 26, 2008 4:01 PM
> To: IMAGEJ@LIST.NIH.GOV
> Subject: AVI, Virtual Stack, >1GB boundery?
>
> Hi everyone,
>
> I'm trying to analyze some very large AVI movies in ImageJ. I
> thought I had
> everything covered when I found the "open as virtual stack" function.
> However, when I'm trying to open a 1.3GB AVI containing 15495
> frames of
> 348x256 it stops exactly at frame 11934 (348x256*11934 =
> 1063176192 bytes
> corresponding to just below 1GB). I have tried to tell the
> plugin that I
> only want to open frames 11900-15495, both as virtual and
> non-virtual stack
> and in this case it only opens frames 11900-11934. I managed
> to save all the
> frames as TIFs in a folder and then I was able to open all a
> virtual stack
> with all frames using the "Import"->"TIFF virtual stack..."
> function. I then
> saved the stack as AVI with PNG compression which resulted in
> a file of 552
> MB. I was able to load the resulting AVI file without any problems in
> ImageJ, both as virtual and non-virtual stack.
>
> My conclusion is that ImageJ (or Java in general?) cannot
> access positions
> beyond 1GB of files (under windows XP 32Bit).
>
> I'm going to be analyzing a lot of these very large files
> (possibly up to
> 14GB) in the future, so I would very much like to find a different
> workaround than saving all images as individual tifs or
> compressing movies.
> Is there a way to read AVI's larger than 1GB in ImageJ? If
> it's imposible
> under windows XP 32bit, is it then possible if I install a
> 64bit operating
> system (e.g. UBUNTU 64bit?).
>
> Suggestions are very welcome ....
>
> Cheers,
> Jesper
> --
> View this message in context:
> http://n2.nabble.com/AVI%2C-Virtual-Stack%2C-%3E1GB-boundery--
> tp1581053p1581053.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>