Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
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 ... [show rest of quote] -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
In reply to this post by Alexander Haverkamp
Hi Alexander,
On Tue, 30 Oct 2012, Alexander Haverkamp wrote: > 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? As AVI is only a container format and the real power comes from the compression schemes, the AVI support in ImageJ 1.x is focusing on basic support rather than full support. If you use Fiji, you might want to try the update site I set up for my FFMPEG plugins. They are still in a rudimentary state, and they require an update site because of the native and non-native dependencies. In other words, it would be a real big hassle to download the appropriate files, put them into the correct place, start the JVM with the required parameters, and of course keep up-to-date manually. To add the update site to your Fiji installation, please follow the instructions at http://fiji.sc/Update_Sites and add the URL: http://fiji.sc/~schindelin/ffmpeg-plugins/ Ciao, Johannes -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Disable Popup Ads | Edit this page |