Can Matlab not read MP4 files by now? If not, you could first decompress the H.264 file to a lossless format, like HuffYUV. This should work fine from AVI. BTW: You can calculate VQM with the , which supports Avisyth input. So you can easily load pretty much everything, e.g. via FFMS2 plug-in or via DirectShowSource.