Login  Register

Re: importing video in image J

Posted by Michael Schmid on Jun 11, 2015; 8:08pm
URL: http://imagej.273.s1.nabble.com/importing-video-in-image-J-tp5013123p5013134.html

Hi Julie,

well, ffmpeg should work for an H264 movie, e.g.

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

This creates an NV12-coded avi file which can be opened by ImageJ. NV12
causes no compression losses in addition to those caused by H264
compression already.

You can also convert the movie with Virtualdub into an AVI with raw
format. Select Uncompressed RGB/YCbCr as compression.

If you decompress the movie into single files, this should also work. Use
File>Import>Image Sequence to open all files as a stack in ImageJ.

Michael
__________________________________________________________________


On Thu, June 11, 2015 16:49, Jouan Julie wrote:

> Hello,
>
> I would like to import a video file in Fiji/imageJ in order to track mice.
> I tried different video formats with several converters like :
>
> - .avi : The following message appears : "An error occurred reading the
> AVI file, unsupported compression : 34363248 'H264' " or even "Not an avi
> file" with an other converter.
>
> - .mov with QuickTime 7 Pro : I have a frame named "Bioformats import
> option", and when I click on "Ok", I have the following message "File is
> not a supported format, a reader plugin is not availaible, or it was not
> found". And howerver, I have the plugin "QT_Movie_Opener",
> "QT_Stack_Writer" and "QTVirtualStack".
>
> I also tried the solutions offered in this image J listserv like :
>
> -using FFMPEG (free video conversion software) but I can't load it
> -trying the FFMPEG plugin but it didn't change anything
> -using virtualdub and then exporting as a bmp stack then ImageJ/Fiji, but
> I can't open all the fragmented images in image J, I can only import them
> one by one
>
> Do you have any solution/suggestions to my problem to import a video in
> image J/Fiji ?
> It would be very helpful,
>
> Thank you,
> Julie

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