准备工作:使用较新版本matlab(老版本没有一个函数,读起来麻烦)视频解码器安装video=mmreader('filename.avi');data=read(video);size(data)会发现data是个4维数据 对应[height , width , RGB三个通道 , frame]