FFMAT

FFMAT, which is short for “ffmpeg for MATLAB”, is a fast & easy-to-use video decoding function for MATLAB.

Download source from here. You can find the complilation guide in readme file.