MATLAB: Does using “mmfileinfo” result in an error “Could not get file information”

.mp4errorfileinformationMATLABmmfileinfoTS

I am using "mmfileinfo" to interrogate transport stream files. On my development computer the call appears to work just fine, however when I deploy onto my production server the call fails reporting a generic …
Error using mmfileinfo (line 70)
Could not get file information.
Some further information, MP3 and WMV files appear to work OK on both PCs whereas TS and MP4 files only work on the development machine and not on the deployment machine.

Best Answer

It seems that a codec required to read these video types is missing. Even though the file is an MP4 or TS, there are different codecs which can be used to encode videos, and the codec used on this particular file is not fully supported in MATLAB. In addition, it is likely that without the codec you are able to play the video using the Windows Media Player.
This can be resolved by downloading and installing an appropriate codec pack.