Re: Importing .avi

Posted by Alexander Haverkamp on
URL: http://imagej.273.s1.nabble.com/Importing-avi-tp5000582p5000586.html

Hi Michael,

Thanks a million for your quick reply. Converting to NV12 works
perfectly well.

Thanks again,
Alex


On 30/10/12 12:24, Michael Schmid wrote:

> Hi Alex,
>
> FPM4 is an MPEG-4 format, highly compressed, which cannot be read by ImageJ.
> You can use a program like ffmpeg to convert it to a format readable by ImageJ, e.g.
>    ffmpeg -i myInputFile.avi -pix_fmt nv12 -f avi -vcodec rawvideo convertedFile.avi
>
> This converts it to NV12. NV12 is an uncompressed format except for chroma subsampling, which is also present in all compressed formats such as MPEG-4 (color information if given only for 2x2-pixel blocks).
> If your files become too large with NV12, you can try
>    ffmpeg -i myInputFile.avi -f avi -vcodec  mjpeg convertedFile.avi
> This introduces additional compression artifacts, however (in addition to the compression artifacts of the original file).
>
> ffmpeg is available for all major operating systems.
>
> Michael
> ________________________________________________________________
> On Oct 30, 2012, at 11:56, Alexander Haverkamp wrote:
>
>> Hello everyone,
>>
>> Since days I am busy with a rather stupid problem: I recorded several .avi films via a web cam.
>> However when I try to open these in ImageJ I get the error message
>>
>> /An error occured reading the AVI file. Unsupported compresion: 34504d46 'FMP4'
>>
>> /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?
>>
>> Many thanks already,
>> Alex
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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