Login  Register

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

Posted by JesperSP on Dec 03, 2008; 8:18pm
URL: http://imagej.273.s1.nabble.com/AVI-Virtual-Stack-1GB-boundery-tp3693422p3693445.html

Woah, that was fast... I went on thanksgiving vacation and you've already fixed my problem as I come back. Thanks Wayne and Woody. I found out that the problem with my LVI files was related to the program that writes these files: According to the FourCC tag (RIFF) of the file, the size is <1GB, which is incorrect. Using Bink'n'Smacker i "converted" the file to an uncompressed avi, which the old AVI loader can load without any problems. (SO I WAS WRONG ABOUT THE >1GB LIMITATION ON IMAGEJ /JAVA!)

However, the QT plugin that you have just made can even open the old (corrupted) file with no problems. (Thanks again). I only have one, small bug-report, which is that the "convert to 8bit" doesn't work together with the "virtual stack" option. However, this is not at big issue as it is very fast to convert to 8-bit before analyzing each frame.

Cheers,
Jesper


Wayne Rasband wrote
Thanks to Jeffrey Woodward's amazing QTVirtualStack class, there's a
new version of the QuickTime Opener plugin at

     http://rsb.info.nih.gov/ij/plugins/movie-opener.html

that adds a "Use Virtual Stack" option. Copy the updated
QuickTime_Plugins.jar file to the plugins folder, restart ImageJ, and
you will be able to open QuickTime and AVI files as virtual stacks
using File>Import>Using QuickTime. Files with a ".mov" extension can be
opened using drag and drop. I haven't tried opening an AVI file larger
than 2GB but that is likely to work.

-wayne

On Nov 26, 2008, at 1:31 PM, Jeffrey B. Woodward wrote:

> Wayne Rasband wrote:
>> On Nov 26, 2008, at 10:50 AM, Jeffrey B. Woodward wrote:
>>
>>> Not sure if it will help, but I wrote a Virtual Quicktime Stack
>>> plugin for ImageJ that I should be able to share. In theory, if you
>>> can view the AVI in question with Quicktime, then the plugin should
>>> also work within ImageJ; however, I have not tested the plugin with
>>> AVI files (I wrote it in order to deal with large mpeg files). I
>>> found the documentation for the Java Quicktime bindings to be a bit
>>> frustrating, but I was eventually able to work through those issues.
>>> The most important note was on getting the Quicktime Java bindings
>>> installed in the first place....the key to that was making sure that
>>> the Java JDK is installed *prior* to installing Quicktime (uninstall
>>> and reinstall Quicktime if necessary...the newer versions of the
>>> Quicktime installer don't prompt to install the Java bindings...it
>>> just seems to do it automatically if it can find a JDK).
>>>
>>> In summary, contact me if you want to give a Virtual Quicktime Stack
>>> plugin a shot.
>>
>> Hi Woody,
>>
>> I would like to check out your Virtual Quicktime Stack plugin. I
>> sounds like it could very useful. I can test it with AVI files.
>>
>> Thanks,
>>
>> -wayne
>>
>>
>
> If I remember correctly, the maillist doesn't allow attachments. I have
> extracted the QTVirtualStack components from my project (and changed
> the
> name of the java package), and I put together a quick ant build script.
> I will host it at the following URL "for a while":
> http://www.cs.dartmouth.edu/~jnw/QTVirtualStack.zip
>
> Wayne, if you'd like to clean it up and incorporate it into an official
> build of ImageJ that would be cool; otherwise, feedback/comments are
> equally useful.
>
> Thanks,
>
> -Woody
>