Login  Register

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

Posted by JesperSP on Dec 09, 2008; 5:59pm
URL: http://imagej.273.s1.nabble.com/AVI-Virtual-Stack-1GB-boundery-tp3693422p3693426.html

Hi Johannes,

I think bashing my own ability rapidly develop applications in Java, as much as my (apparently) faulty belief that Java is slower than native Win32 code . The plugin that I modified seeks through the 20GB file to locate all frames before it loads the first frame for the virtual stack. I would be better if it simply loaded the first frame, and waited to scan for further frames until these were needed (same as what MovieIO does). I could try to program this in java, but I'm much more familiar with Delphi, so I guess I could make faster progress trying to make the same in Delphi (I was thinking out loud I guess).. Maybe I should take the time familiarize myself with Eclipse (I guess Delphi is being depreciated), so that I can build java application/plugins faster..

Cheers,
Jesper

Johannes Schindelin wrote
Hi,

On Mon, 8 Dec 2008, JesperSP wrote:

> I have read up on the AVI file format, and "hacked the AVI_reader.java
> so it recognizes the extra RIFF->AVIX segments beyond 1GB - it works
> great, but it does take a very long time for ImageJ to scan a 20GB file
> for the pointers to all the frames. If anyone want it I can upload it on
> my server, but I cannot guarantee that it'll work for all large AVI
> files. For the simple analysis I want to make, I'm considering making a
> low-level analysis program in a faster language like Borland Delphi.

I doubt that the speed has anything to do with the speed of the language,
as the problem here is seeking on the disk.

Regardless, if you use Java 1.5 or newer, I sincerely doubt that the speed
difference between Java and Delphi is substantial.  Although I do hear the
myth that Java is slow all the time.

In any case, making your changes public would help a few people, I guess.

Ciao,
Dscho