Rank: 463529 based on 0 downloads (last 30 days) and 0 file submitted
photo

Andrea

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Andrea View all
Updated File Comments Rating
30 Dec 2010 mpgwrite The MPEG converter takes a MATLAB movie matrix and writes the movie to disk as an MPEG file. Author: David Foti

Thank you for the program, it works very well once you figure out how to compile it. As somebody pointed out previously, a bit more documentation about the process would be welcome.

To try and help others, I will share my experience compiling for Mac OS X 10.6 and Windows XP 64.

For Mac follow the great instructions by Axel Tidemann posted above, they do the job admirably.

For Windows XP 64 I had a bit more problems. I am using Matlab 2020b (7.11) on Windows XP 64 bit. To compile I downloaded the Express version of Visual C++ 2010 (which is FREE, by the way, can be found at http://www.microsoft.com/express/Downloads/ ).

First of all, after reading all posts, I tried with mex -v -DWIN64 and I got the same error in bitio.c as Peter D reported. Found out it was related to a line in byteord.h, #ifdef WIN32, with specify which endian set to use. Since this is WIN64 the compiler would skip that definition block and default to UNIX trying to include the file netinet/in.h which simply does no exist on Windows. I added a def block with #ifdef WIN64 and compiling went through with no problems. However, for some reason, all movies produced where just plain black. A series of black frames.

After some more looking around I noticed that somebody here said there seemed to be no difference in using DWIN32 or DWIN64, so I tried recompiling with -v -DWIN32 and again it worked (the mex file is still called mpgwrite.mexw64 though). This time, however, the program works fine too.

I also found useful information here http://grantnz.blogspot.com/2010/07/compiling-matlab-mpgwrite-with-vs2010.html to have Visual C++ 2010 up and running with Matlab.

Thank you to all previous posters for their useful comments.

30 Dec 2010 mpgwrite The MPEG converter takes a MATLAB movie matrix and writes the movie to disk as an MPEG file. Author: David Foti

Contact us