今天用MATLAB读取AVI视频,报错:Unable to locate decompressor to decompress video stream
MATLAB aviread命令支持的帧类型是灰度级是8位(索引式或灰度)、16位或是24位(即真彩色)的,应该是所读AVI文件格式不符合的关系。
上网查了一下,解决方案有2个:
1,下载相应的解码器,对AVI文件进行解码,再读取;
文件格式和对应的解码器表:
Compressor Code | Description |
3IV0 | MPEG4-based codec 3ivx |
3IV1 |
MPEG4-based codec 3ivx |
3IV2 | MPEG4-based codec 3ivx |
3IVD | FFmpeg DivX ;-) (MS MPEG-4 v3) |
3IVX | MPEG4-based codec 3ivx |
AAS4 | Autodesk Animator codec (RLE) |
AASC | Autodesk Animator codec (RLE) |
ABYR | Kensington codec |
ADV1 | Loronix WaveCodec (used in various CCTV products) |
ADVJ | Avid M-JPEG Avid Technology (also known as AVRn) |
AEMI | Array VideoONE MPEG1-I Capture |
AFLC | Autodesk Animator FLC (256 color) |
AFLI | Autodesk Animator FLI (256 color) |
AMPG | Array VideoONE MPEG |
ANIM | Intel - RDX |
AP41 | AngelPotion Definitive (hack MS MP43) |
ASV1 | Asus Video V1 |
ASV2 | Asus Video V2 |
ASVX | Asus Video 2.0 |
AUR2 | AuraVision - Aura 2 Codec - YUV 422 |
AURA | AuraVision - Aura 1 Codec - YUV 411 |
AVDJ | Avid Motion JPEG |
AVI1 | MainConcept Motion JPEG Codec |
AVI2 | MainConcept Motion JPEG Codec |
AVRN | Avid Motion JPEG (also known as ADVJ) |
AZPR | Quicktime Apple Video |
BGR | Uncompressed BGR32 8:8:8:8 |
BGR(15) | Uncompressed BGR15 5:5:5 |
BGR(16) | Uncompressed BGR16 5:6:5 |
BGR(24) | Uncompressed BGR24 8:8:8 |