avi codec issues in 64-bit Windows 7 environment
11 views (last 30 days)
In an algorithm I am collaborating on the data sequence is outputted as an avi file with the line
film = avifile([PathName,FileName],'compression','Indeo5','quality', 100,'fps',fps);
While this algorithm runs fine on 32-bit Windows XP I am trying to modify it to run on 64-bit Windows 7 as the Indeo codecs are not available. I have read various MathWorks articles that seem to skip over what is the preferred codec for this OS, and it seems other people have similar problems.
I have tried the following codecs:
- The Cinepak codec is not available for use on 64-bit Windows 7
- The MSVC and RLE codecs create errors as they do not work for truecolour images
- Indeo 2, 3, 5 codecs have been tested and they create errors as are not supported by 64-bit Windows 7
- FFDShow (FFDS) has been installed and tested, and while this produces a video it is skewed and stretched at 45 degrees (this was suggested as a solution for another user on the google group for MATLAB but has failed)
As it stands I can currently only output an avi file using no compression ('None'). Is there are codec that will output avi files correctly on 64-bit Windows, or a workaround that does not include post-processing by third party software?
Thanks for your time,
bram desmet on 15 Aug 2011
I work on a Win7 64 bit machine with Matlab R2009a, and I am able to compress avi files using the Intel Indeo4 codec, referring to it with the appropriate fourcc code 'i420':
I don't remember how I got a hold of the 64 bit version of the Indeo4, though, ... could have been in some codec package
Nick Haddad on 19 May 2011
Edited: John Kelly on 13 Nov 2013
Unfortunately in R2010a and earlier there is no strong compressed solution using avifile on 64-bit windows.
If you are able to upgrade to R2010b, you'll have access to the new VideoWriter object, which supports Motion JPEG AVI files across all platforms.
Martijn on 12 May 2011
The Xvid codec works pretty well in combination with MATLAB. A 64-bit version can be downloaded from:
Note that you cannot configure all setting of Xvid from within MATLAB, but the Xvid settings are persistent so you could for example first configure it from inside VirtualDub.