opencv不能打开某些视频困扰了我好久,我一直认为是少安装了某个视频解码器,在尝试了几种解码器后,终于发现安装Xvid解码器后就可以了。它到底是什么东东?它得官方网站http://www.xvid.org/,可以下载最新得解码器。其实就是安装一个mpeg4得解码器而已。一些解码器如下:
orking video codecs |
||||
codec name |
fourcc |
codecfile |
out |
comments |
MPEG-PES output (.mpg or DXR3/DVB card) |
- |
- |
MPES |
for hardware decoding |
MPEG-1 or 2 (libmpeg2) |
- |
- |
YV12 |
with postprocessing |
FFmpeg MPEG-1 |
- |
mpeg1video |
YV12 |
- |
FFmpeg MPEG-2 |
- |
mpeg2video |
YV12 |
- |
FFmpeg MPEG-1/2 |
- |
mpegvideo |
YV12 |
- |
NuppelVideo |
NUV1 |
- |
I420 |
- |
FFmpeg PNG decoder |
mpng |
png |
BGR32 |
- |
PNG image decoder |
mpng |
libpng |
BGR32 |
Gray scaled PNG with Alpha channel not supported |
TGA image decoder |
mtga |
- |
BGR32 |
Only 24bpp and 32bpp RGB TGA files supported |
SGI image decoder |
SGI1 |
- |
BGR24 |
- |
FFmpeg Intel Indeo 3.1/3.2 |
IV31 |
indeo3 |
YVU9 |
- |
Autodesk FLI/FLC Animation |
FLIC |
flic |
BGR8 |
- |
Autodesk RLE decoder |
AASC |
aasc |
BGR24 |
- |
LOCO video decoder |
LOCO |
loco |
422P |
- |
QuickTime Animation (RLE) |
rle |
qtrle |
BGR32 |
- |
QuickTime Apple Video |
rpza |
rpza |
BGR15 |
- |
Apple Graphics (SMC) codec |
smc |
smc |
BGR8 |
- |
Planar RGB (Photoshop) |
8BPS |
8bps |
BGR32 |
- |
Creative YUV (libavcodec) |
cyuv |
cyuv |
411P |
- |
Microsoft RLE |
- |
msrle |
BGR8 |
- |
Id RoQ File Video Decoder |
RoQV |
roqvideo |
YV12 |
- |
LZO compressed |
LZO1 |
liblzo |
YV12 |
- |
Theora (free |
theo |
libtheora |
YV12 |
- |
Cinepak Video (native codec) |
cvid |
cinepak |
YV12 |
- |
Cinepak Video |
cvid |
iccvid.dll |
BGR24 |
- |
Microsoft Video 1 (native codec) |
cram |
msvideo1 |
BGR15 |
- |
AVImszh (native codec) |
MSZH |
mszh |
BGR24 |
- |
AVIzlib (native codec) |
ZLIB |
zlib |
BGR24 |
- |
FFmpeg HuffYUV |
HFYU |
huffyuv |
YUY2 |
- |
FFV1 (lossless codec) |
FFV1 |
ffv1 |
411P |
- |
FFSNOW (Michael's wavelet codec) |
snow |
snow |
YV12 |
- |
FFmpeg ASUS V1 |
ASV1 |
asv1 |
YV12 |
- |
FFmpeg ASUS V2 |
ASV2 |
asv2 |
YV12 |
- |
FFmpeg ATI VCR1 |
VCR1 |
vcr1 |
YVU9 |
- |
FFmpeg Cirrus Logic AccuPak (CLJR) |
CLJR |
cljr |
411P |
- |
FFmpeg Sorenson Video v1 (SVQ1) |
SVQ1 |
svq1 |
YVU9 |
- |
FFmpeg 4XM video |
4XMV |
4xm |
BGR16 |
- |
Miro VideoXL codec |
VIXL |
xl |
411P |
- |
QuickDraw native decoder |
qdrw |
qdraw |
RGB24 |
- |
Indeo 2 native decoder |
RT21 |
indeo2 |
YVU9 |
- |
FFmpeg Flash video |
FLV1 |
flv |
YV12 |
- |
FFmpeg DivX ;-) (MS MPEG-4 v3) |
MPG3 |
msmpeg4 |
YV12 |
- |
FFmpeg M$ MPEG-4 v2 |
DIV2 |
msmpeg4v2 |
YV12 |
- |
FFmpeg M$ MPEG-4 v1 |
DIV1 |
msmpeg4v1 |
YV12 |
- |
FFmpeg M$ WMV1/WMV7 |
WMV1 |
wmv1 |
YV12 |
- |
FFmpeg H.264 |
H264 |
h264 |
YV12 |
- |
FFmpeg Sorenson Video v3 (SVQ3) |
SVQ3 |
svq3 |
YV12 |
- |
FFmpeg MPEG-4 |
FMP4 |
mpeg4 |
YV12 |
- |
WV1F MPEG-4 |
WV1F |
mpeg4 |
YV12 |
- |
XviD (MPEG-4) |
DIVX |
libxvidcore.a |
YV12 |
- |
OpenDivX API (ODIVX |
mp4v |
libdivxdecore.so |
YV12 |
with postprocessing |
DivX4Linux API (DIVX4 |
mp4v |
libdivxdecore.so |
YUY2 |
with postprocessing |
DivX ;-) (MS MPEG-4 v3) |
MP43 |
divx_c32.ax |
YUY2 |
with postprocessing |
DivX ;-) (MS MPEG-4 v3) |
MP43 |
divxc32.dll |
YUY2 |
- |
Microsoft MPEG-4 v1/v2 |
DIV2 |
mpg4ds32.ax |
YUY2 |
with postprocessing |
Microsoft MPEG-4 v1/v2 |
MPG4 |
mpg4c32.dll |
YUY2 |
- |
Windows Media Video 8 |
WMV2 |
wmv8ds32.ax |
YV12 |
- |
Windows Media Video 7 |
WMV1 |
wmvds32.ax |
YUY2 |
- |
Windows Media Video 9 DMO |
WMV3 |
wmv9dmod.dll |
YV12 |
- |
Windows Media Video DMO |
WMV1 |
wmvdmod.dll |
YV12 |
- |
Windows Media Video Adv DMO |
WMVA |
wmvadvd.dll |
YV12 |
- |
Windows Media Screen Codec 2 |
MSS1 |
wmsdmod.dll |
BGR32 |
- |
FFmpeg MJPEG decoder |
MJPG |
mjpeg |
444P |
- |
FFmpeg MJPEG-B decoder |
mjpb |
mjpegb |
444P |
- |
Independent JPEG Group's codec |
ijpg |
libjpeg |
RGB24 |
- |
Morgan Motion JPEG Codec |
MJPG |
m3jpeg32.dll |
YUY2 |
- |
MainConcept Motion JPEG |
MJPG |
mcmjpg32.dll |
YUY2 |
- |
AVID Motion JPEG |
AVRn |
AvidAVICodec.dll |
BGR24 |
slooooooooow but stable |
LEAD (M)JPEG |
MJPG |
LCodcCMP.dll |
BGR24 |
supports interlaced MJPEG |
Morgan MJPEG2000 |
MJ2C |
m3jp2k32.dll |
YV12 |
- |
Vivo H.263 |
VIVO |
ivvideo.dll |
BGR32 |
- |
UB Video H.263/H.263+/H.263++ Decoder |
U263 |
ubv263d+.ax |
BGR24 |
- |
I263 |
I263 |
i263_32.drv |
I420 |
- |
FFmpeg I263 decoder |
I263 |
h263i |
YV12 |
- |
FFmpeg H.263+ decoder |
H263 |
h263 |
YV12 |
- |
CCITT H.261 |
H261 |
h261 |
YV12 |
- |
Intel Indeo 5 |
IV50 |
ir50_32.dll |
YV12 |
- |
Intel Indeo 5 |
IV50 |
ir50_32.dll |
YUY2 |
- |
Intel Indeo 4.1 |
IV41 |
ir41_32.dll |
IF09 |
- |
Intel Indeo 3.1/3.2 |
IV31 |
ir32_32.dll |
IF09 |
- |
XAnim's Intel Indeo 5 |
IV50 |
vid_iv50.xa |
YVU9 |
- |
XAnim's Intel Indeo 4.1 |
IV41 |
vid_iv41.xa |
YVU9 |
- |
XAnim's Intel Indeo 3.1/3.2 |
IV31 |
vid_iv32.xa |
YVU9 |
- |
Sony Digital Video (DV) |
dvsl |
qdv.dll |
YUY2 |
- |
FFmpeg DV decoder |
DVSD |
dvvideo |
411P |
- |
Raw DV decoder (libdv) |
DVSD |
libdv.so.2 |
YUY2 |
- |
MainConcept DV Codec |
DVSD |
mcdvd_32.dll |
YUY2 |
- |
XAnim's 3ivx Delta 3.5 plugin |
3IV1 |
vid_3ivX.xa |
YV12 |
- |
Linux RealPlayer 10 RV30/40 decoder |
RV30 |
drvc.so |
I420 |
- |
Linux RealPlayer 9 RV40 decoder |
RV40 |
drv4.so.6.0 |
I420 |
- |
Win32 RealPlayer 9 RV40 decoder |
RV40 |
drv43260.dll |
I420 |
- |
Mac OS X RealPlayer 9 RV40 decoder |
RV40 |
drvc.bundle/Contents/MacOS/drvc |
I420 |
- |
Linux RealPlayer 8 RV30 decoder |
RV30 |
drv3.so.6.0 |
I420 |
- |
Win32 RealPlayer 8 RV30 decoder |
RV30 |
drv33260.dll |
I420 |
- |
Mac OS X RealPlayer 9 RV30 decoder |
RV30 |
drvc.bundle/Contents/MacOS/drvc |
I420 |
- |
Linux RealPlayer 8 RV20 decoder |
RV20 |
drv2.so.6.0 |
I420 |
- |
Win32 RealPlayer 8 RV20 decoder |
RV20 |
drv23260.dll |
I420 |
- |
Mac OS X RealPlayer 9 RV20 decoder |
RV20 |
drv2.bundle/Contents/MacOS/drv2 |
I420 |
- |
Alparysoft lossless codec dshow |
ASLC |
aslcodec_dshow.dll |
BGR24 |
- |
Alparysoft lossless codec vfw |
ASLC |
aslcodec_vfw.dll |
BGR24 |
- |
Lead CMW wavelet 2.0 |
LCW2 |
LCODCCMW2E.dll |
BGR24 |
- |
FFmpeg RV10 decoder |
RV10 |
rv10 |
YV12 |
- |
On2 Open Source VP3 Codec |
VP30 |
vp31vfw.dll |
YUY2 |
For SSE-systems use fixed DLL from ftp://mplayerhq.hu/MPlayer/samples/drivers32/ |
On2 VP4 Personal Codec |
VP40 |
vp4vfw.dll |
YUY2 |
Decodes also VP3 |
On2 VP5 Personal Codec |
VP50 |
vp5vfw.dll |
YUY2 |
- |
On2 VP6 Personal Codec |
VP60 |
vp6vfw.dll |
YUY2 |
- |
Motion Wavelets |
MWV1 |
icmw_32.dll |
BGR24 |
- |
ASUS V2 |
ASV2 |
asusasv2.dll |
UYVY |
- |
ASUS V1 |
ASV1 |
asusasvd.dll |
UYVY |
- |
IBM Ultimotion native decoder |
ULTI |
ultimotion |
YVU9 |
- |
IBM Ultimotion |
ULTI |
ultimo.dll |
YUY2 |
- |
Windows Screen Video |
MSS1 |
msscds32.ax |
BGR32 |
- |
UCOD-ClearVideo |
UCOD |
clrviddd.dll |
BGR32 |
- |
ATI VCR-2 |
VCR2 |
ativcr2.dll |
YV12 |
- |
Duck Truemotion1 |
DUCK |
truemotion1 |
BGR15 |
- |
TrueMotion 2.0 |
TM20 |
tm20dec.ax |
BGR32 |
YUV faulting |
SP5x codec - used by Aiptek MegaCam |
SP53 |
sp5x |
YV12 |
- |
SP5x codec - used by Aiptek MegaCam |
SP53 |
sp5x_32.dll |
BGR24 |
- |
SoftMedia ViVD V2 codec VfW |
GXVE |
ViVD2.dll |
YUY2 |
- |
Winnov Videum winx codec |
WINX |
wnvwinx.dll |
BGR32 |
- |
FFmpeg wnv1 native codec |
WNV1 |
wnv1 |
422P |
- |
Winnov Videum wnv1 codec |
WNV1 |
wnvplay1.dll |
BGR32 |
- |
VDOWave codec |
VDOM |
vdowave.drv |
BGR24 |
- |
Vianet Lsvx Video Decoder |
lsvx |
lsvxdec.dll |
BGR32 |
- |
VMware video |
VMnc |
vmnc.dll |
BGR24 |
- |
win32/quicktime 3IV1 (3ivx) decoder |
3IV1 |
3ivx Delta 3.5.qtx |
YUY2 |
- |
Win32/QuickTime Avid Meridien Uncompressed |
AVUI |
AvidQTAVUICodec.qtx |
YUY2 |
- |
Win32/QuickTime Cinepak decoder |
cvid |
QuickTime.qts |
YUY2 |
- |
Win32/QuickTime SVQ3 decoder |
SVQ3 |
QuickTimeEssentials.qtx |
YUY2 |
- |
VSS Codec Light |
VSSV |
vsslight.dll |
BGR24 |
- |
VSS H.264 New |
VSSH |
vsshdsd.dll |
YV12 |
- |
VSS H.264 Old |
VSSH |
vssh264.dll |
BGR24 |
- |
VSS Wavelet Video Codec |
VSSW |
vsswlt.dll |
BGR24 |
- |
AVIzlib |
ZLIB |
avizlib.dll |
BGR24 |
24bpp only |
AVImszh |
MSZH |
avimszh.dll |
BGR24 |
24bpp only |
Q-Team's QPEG (www.q-team.de) |
Q1.0 |
qpeg32.dll |
BGR8 |
BGR8 only! |
TechSmith Camtasia Screen Codec (native) |
TSCC |
camtasia |
BGR32 |
- |
TechSmith Camtasia Screen Codec |
TSCC |
tsccvid.dll |
BGR32 |
- |
FRAPS: Realtime Video Capture |
FPS1 |
frapsvid.dll |
BGR32 |
Requires a processor with SSE??? |
RAW RGB32 |
- |
- |
RGB32 |
- |
RAW RGB24 |
- |
- |
RGB24 |
- |
RAW RGB16 |
- |
- |
RGB16 |
- |
RAW BGR32 |
- |
- |
BGR32 |
- |
RAW BGR32 |
- |
- |
BGR32 |
- |
RAW BGR24 |
- |
- |
BGR24 |
- |
RAW BGR24 |
- |
- |
BGR24 |
- |
RAW BGR15 |
- |
- |
BGR16 |
- |
RAW BGR15 |
- |
- |
BGR16 |
- |
RAW BGR15 |
- |
- |
BGR15 |
- |
RAW BGR15 |
- |
- |
BGR15 |
- |
RAW BGR8 |
- |
- |
BGR8 |
- |
RAW BGR8 |
- |
- |
BGR8 |
- |
RAW BGR1 |
- |
- |
BGR1 |
- |
RAW YUY2 |
- |
- |
YUY2 |
- |
RAW UYVY |
- |
- |
UYVY |
- |
RAW 444P |
- |
- |
444P |
- |
RAW 422P |
- |
- |
422P |
- |
RAW YV12 |
- |
- |
YV12 |
- |
RAW NV21 |
- |
- |
YV12 |
- |
RAW NV12 |
- |
- |
YV12 |
- |
RAW HM12 |
- |
- |
YV12 |
- |
RAW I420 |
- |
- |
I420 |
- |
RAW YVU9 |
- |
- |
YVU9 |
- |
RAW Y8/Y800 |
- |
- |
Y800 |
- |
New / Untested codecs |
||||
codec name |
fourcc |
codecfile |
problem |
|
FFmpeg ZyGo |
ZyGo |
h263 |
- |
|
M261 |
m261 |
msh261.drv |
- |
|
FFmpeg RV20 decoder |
RV20 |
rv20 |
- |
|
FFmpeg VP3 |
VP30 |
vp3 |
- |
|
FFmpeg Theora |
theo |
theora |
- |
|
CJPG |
CJPG |
CtWbJpg.DLL |
sample files needed (this DLL is decompression only!) |
|
Win32/QuickTime BeHereiVideo decoder |
bhiv |
BeHereiVideo.qtx |
sample file wanted! |
|
Codecs with problems |
||||
codec name |
fourcc |
codecfile |
problem |
|
FFmpeg MPEG-1/2 (XvMC) |
- |
mpegvideo_xvmc |
- |
|
Microsoft Video 1 |
cram |
msvidc32.dll |
-vf palette required for 8bpp |
|
HuffYUV |
HFYU |
huffyuv.dll |
- |
|
XAnim's Radius Cinepak Video |
cvid |
vid_cvid.xa |
- |
|
FFmpeg M$ WMV2/WMV8 |