We have a few long MP4 files that we want to open into ImageJ.
Using QuicktimePro I converted a few of them to uncompressed AVI. The frame size is 1280 X 720 RGB and we need to open every 80th frame or so. Since the files are bigger than 10GB, I figured the easiest way would be to open as raw and make the interval between frames 1280 X 720 X 3 X n where n would be between 60 and 120 inclusive. However, it doesn't seem so simple as the frames roll and the colors alternate regardless whether we choose RGB or BGR. Two questions: 1. Are the frame intervals fixed in an uncompressed AVI and 2. if so, does anyone know the correct header and frame interval values to use? And a third question: Is there a better way to do this? Thank you! ________________________________________________________ Michael Cammer, Assistant Research Scientist Skirball Institute of Biomolecular Medicine Lab: (212) 263-3208 Cell: (914) 309-3270 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Michael,
> we need to open every 80th frame or so Did you try using the "Specify range for each series" option of Bio-Formats to set a Step value as desired? Does Bio-Formats read in your AVIs correctly in general? (I forget whether Bio-Formats currently handles AVIs >2GB at all. If not, you could try exporting to a different format from QuickTime.) Regards, Curtis On Tue, May 28, 2013 at 12:47 PM, Cammer, Michael < [hidden email]> wrote: > We have a few long MP4 files that we want to open into ImageJ. > > Using QuicktimePro I converted a few of them to uncompressed AVI. The > frame size is 1280 X 720 RGB and we need to open every 80th frame or so. > Since the files are bigger than 10GB, I figured the easiest way would be > to open as raw and make the interval between frames 1280 X 720 X 3 X n > where n would be between 60 and 120 inclusive. However, it doesn't seem so > simple as the frames roll and the colors alternate regardless whether we > choose RGB or BGR. > > Two questions: > > 1. Are the frame intervals fixed in an uncompressed AVI and > 2. if so, does anyone know the correct header and frame interval values to > use? > > And a third question: > > Is there a better way to do this? > > Thank you! > > ________________________________________________________ > Michael Cammer, Assistant Research Scientist > Skirball Institute of Biomolecular Medicine > Lab: (212) 263-3208 Cell: (914) 309-3270 > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Actually, there's a really easy way to do it that I overlooked. Quicktime will export to a TIF sequence!
Regards, Michael -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Curtis Rueden Sent: Tuesday, May 28, 2013 1:55 PM To: [hidden email] Subject: Re: opening every nth frame of an AVI into ImageJ Hi Michael, > we need to open every 80th frame or so Did you try using the "Specify range for each series" option of Bio-Formats to set a Step value as desired? Does Bio-Formats read in your AVIs correctly in general? (I forget whether Bio-Formats currently handles AVIs >2GB at all. If not, you could try exporting to a different format from QuickTime.) Regards, Curtis On Tue, May 28, 2013 at 12:47 PM, Cammer, Michael < [hidden email]> wrote: > We have a few long MP4 files that we want to open into ImageJ. > > Using QuicktimePro I converted a few of them to uncompressed AVI. The > frame size is 1280 X 720 RGB and we need to open every 80th frame or so. > Since the files are bigger than 10GB, I figured the easiest way would > be to open as raw and make the interval between frames 1280 X 720 X 3 > X n where n would be between 60 and 120 inclusive. However, it > doesn't seem so simple as the frames roll and the colors alternate > regardless whether we choose RGB or BGR. > > Two questions: > > 1. Are the frame intervals fixed in an uncompressed AVI and 2. if so, > does anyone know the correct header and frame interval values to use? > > And a third question: > > Is there a better way to do this? > > Thank you! > > ________________________________________________________ > Michael Cammer, Assistant Research Scientist Skirball Institute of > Biomolecular Medicine > Lab: (212) 263-3208 Cell: (914) 309-3270 > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |