Problem:In Linux crashes matlab after writing the file.
Solution: As Dan Russ said (above), the way to fix this is go into the mpeg.c file in src and comment out the line: "fclose(ofp);" in GenMPEGStream
05 Apr 2012
The MPEG converter takes a MATLAB movie matrix and writes the movie to disk as an MPEG file.
One more suggestion for people using this code. I ended up using FFMPEG and then running it through the command line. It is much faster than everything else I have used, and it has all the codecs for all the different formats. Email me if you want the command like calls.