Importing Avi file

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

Importing Avi file

Anselim
Hello everyone,

I recorded several .avi films via a high speed camera. However when I try to open these in ImageJ, I get the error message

/An error occured reading the AVI file. Unsupported compresion: 4d415243 'CRAM'/

I have tried to convert the files already several times but unfortunately, the problem remains. Does anyone have a suggestion on how I could solve it?

Thanks in advance,

Anselim.
Reply | Threaded
Open this post in threaded view
|

Re: Importing Avi file

Kenton Arkill
I use virtualdub to save them as an image sequence of .bmp's.
Kenton


On 18 August 2014 11:08, Anselim <[hidden email]> wrote:

> Hello everyone,
>
> I recorded several .avi films via a high speed camera. However when I try
> to
> open these in ImageJ, I get the error message
>
> /An error occured reading the AVI file. Unsupported compresion: 4d415243
> 'CRAM'/
>
> I have tried to convert the files already several times but unfortunately,
> the problem remains. Does anyone have a suggestion on how I could solve it?
>
> Thanks in advance,
>
> Anselim.
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Importing-Avi-file-tp5009247.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Importing Avi file

Michael Schmid
In reply to this post by Anselim
Hi Anselim,

ImageJ cannot decode most compressed video formats. CRAM is Microsoft Video 1, which is an early lossy compression, not very popular in scientific image processing. I would suggest to convert it to something that can be read by ImageJ.

A nice tool for conversion (though command-line only) is ffmpeg. You can use it to convert most types of video to, e.g., NV12, which can be read by ImageJ and is still smaller than e.g. BMP files:

ffmpeg -i infile.avi -pix_fmt nv12 -f avi -vcodec rawvideo outfile.avi


Michael
________________________________________________________________
On Aug 18, 2014, at 12:08, Anselim wrote:

> Hello everyone,
>
> I recorded several .avi films via a high speed camera. However when I try to
> open these in ImageJ, I get the error message
>
> /An error occured reading the AVI file. Unsupported compresion: 4d415243
> 'CRAM'/
>
> I have tried to convert the files already several times but unfortunately,
> the problem remains. Does anyone have a suggestion on how I could solve it?
>
> Thanks in advance,
>
> Anselim.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Importing Avi file

Alexandre Dufour
In reply to this post by Anselim
Hi Anselim,

As a surrogate solution, you could load your video file via Icy's Video Importer plugin (http://icy.bioimageanalysis.org/plugin/Video_Importer), which should load most video formats (the plugin uses the Xuggler library, itself based on FFMPEG). From there you can save the imported movie to a tiff sequence that you can re-open with ImageJ (or alternatively, convert the imported video directly to the embedded ImageJ instance of Icy, and saving/working from there).

Hope this helps,
Alexandre

Alexandre Dufour, PhD
Senior Research Fellow — Computational Cell Morpho-Dynamics
Institut Pasteur, Bioimage Analysis group
Dpt. of Cell Biology & Infection of Paris, France
Research: www.bioimageanalysis.org/dufour
Software: icy.bioimageanalysis.org

On 18 Aug 2014, at 11:08, Anselim <[hidden email]> wrote:

> Hello everyone,
>
> I recorded several .avi films via a high speed camera. However when I try to
> open these in ImageJ, I get the error message
>
> /An error occured reading the AVI file. Unsupported compresion: 4d415243
> 'CRAM'/
>
> I have tried to convert the files already several times but unfortunately,
> the problem remains. Does anyone have a suggestion on how I could solve it?
>
> Thanks in advance,
>
> Anselim.
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Importing-Avi-file-tp5009247.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html