Hello,
are there any ideas how to handle avi files with UYVY fourCC?
As far as I can understand this FCC handled by msyuv.dll in Win.
I added it to plugins/libwin32/fillplugins.h
static void add_UYVY(avm::vector<CodecInfo>& ci)
{
static const fourcc_t UYVY_codecs[] = {
fccUYVY,
0 };
ci.push_back(CodecInfo(UYVY_codecs, "UYVY Codec", "msyuv.dll",
none_about, CodecInfo::Win32, "UYVY",
CodecInfo::Video, CodecInfo::Decode
));
}
But I still can not play it.
I get:
dyp@dyp:/mnt/movies/qb/tape3> aviplay tape3.001.1.avi
<Init> : Avifile CVS-020702-14:39-2.95.3
<Init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
pge mca cmov pat pse36 mmx fxsr sse
<Init> : 1007.81 MHz Pentium III (Coppermine) processor detected
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
/usr/lib/qt3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in
/usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
/usr/lib/qt3/plugins/imageformats/libqmng.so: Feature MNG already defined in
/usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
<aviplay> : Debug is on 0
<AVI reader> : Checking: tape3.001.1.avi
<AVI reader> : AVIMainHeader: MicroSecPerFrame=33367 MaxBytesPerSec=0
PaddingGranularity=0 Flags=[ HAS_INDEX IS_INTERLEAVED ] TotalFrames=6000
InitialFrames=0 Streams=2 SuggestedBufferSize=0 WxH=320x240
Scale=0 Rate=0 Start=0 Length=0
<AVI reader> : AVIStreamHeader: FccType=vids FccHandler=UYVY Flags=[ ]
InitialFrames=0 Scale=1001 Rate=30000 Start=7 Length=6000
SuggestedBufferSize=154608 Quality=0 SampleSize=0 Rect l,r,t,b=0,320,0,240
<AVI reader> : AVIStreamHeader: FccType=auds FccHandler=0x0 Flags=[ ]
InitialFrames=1 Scale=4 Rate=176400 Start=0 Length=8828908
SuggestedBufferSize=88200 Quality=0 SampleSize=4 Rect l,r,t,b=0,0,0,0
<AVI reader> : Reading index from 963069788
<AVI reader> : Stream 0 vids : 0x59565955 (UYVY) 6000 chunks (93.75KB)
<AVI reader> : Stream 1 auds : 0x1 (PCM) 5987 chunks (93.55KB)
<StreamCache> : Creating cache for file descriptor: 7
<ReadStream> : Initialized video stream (chunk tblsz: 6000, fmtsz: 40)
<ReadStream> : Initialized audio stream (chunk tblsz: 35315632, fmtsz: 18)
<AVI reader> : Successfully opened tape3.001.1.avi
<Codec keeper> : /usr/lib/avifile0.7/ac3pass.so: A/V 1/0
<Codec keeper> : /usr/lib/avifile0.7/win32.so: A/V 13/49
<LDT_Keeper> : Installed fs segment: 0x40f68000
<Codec keeper> : /usr/lib/avifile0.7/divx4.so: A/V 0/2
<Codec keeper> : /usr/lib/avifile0.7/mp3lamebin_audioenc.so: A/V 1/0
<Codec keeper> : /usr/lib/avifile0.7/mad_audiodec.so: A/V 1/0
<Codec keeper> : /usr/lib/avifile0.7/vorbis_audio.so: A/V 1/0
<Codec keeper> : /usr/lib/avifile0.7/ffmpeg.so: A/V 2/9
<Codec keeper> : /usr/lib/avifile0.7/xvid.so: A/V 0/1
<Codec keeper> : /usr/lib/avifile0.7/mpeg_audiodec.so: A/V 1/0
<Codec keeper> : /usr/lib/avifile0.7/audiodec.so: A/V 5/0
<Codec keeper> : /usr/lib/avifile0.7/mjpeg.so: A/V 0/1
<Win32 loader> : Using Win32 dll library: msyuv.dll
<Win32 video decoder> : Decoder does not support upside-down RGB frames
<Win32 video decoder> : Decoder is capable of YUV output ( flags 0xe)
<Codec keeper> : UYVY Codec video decoder created
<Win32 video decoder> : WARNING: ICDecompressBegin() failed ( shouldn't happen
), hr=-2 (Bad Format))
<renderer> : SDL Video driver: x11
<renderer> : Created surface: 320 x 240 16 bits
<renderer> : Creating YUV overlay 320x240, fourcc 0x32595559 (YUY2)
<renderer> : XV port: 67
<renderer> : XV attribute: XV_COLORKEY GS <0, 16777215> = 2110
<renderer> : XV attribute: XV_BRIGHTNESS GS <-128, 127> = 0
<renderer> : XV attribute: XV_CONTRAST GS <0, 255> = 128
<renderer> : XV attribute: XV_DOUBLE_BUFFER GS <0, 1> = 1
<renderer> : Loading subfont:
"-adobe-helvetica-medium-r-normal-*-*-140-100-100-p-*-iso8859-*"
<aviplay> : Will try audio renderers in this order: OSS,SDL,noaudio
<Codec keeper> : PCM audio decoder created
<audio renderer> : src fmt=0x01 2ch 44100Hz 16b 176400B/s balign=4 cbsz=0
<audio renderer> : dst fmt=0x01 2ch 44100Hz 16b 176400B/s balign=4 cbsz=0
<audio renderer> : OSS audio renderer: frags: 8 size:4096 buffer: 32768
<Player> : Player started
<Avi ReadV> : w:320 h:-240 bpp:16 0x32595559 - 1:4 (0x810b680)
<Avi ReadV> : w:320 h:-240 bpp:16 0x32595559 - 2:4 (0x80706e8)
<Avi ReadV> : w:320 h:-240 bpp:16 0x32595559 - 3:4 (0x80a8510)
<Avi ReadV> : w:320 h:-240 bpp:16 0x32595559 - 4:4 (0x80b5470)
<Win32 plugin> : Total Unfree 0 bytes cnt 0 [(nil),0]
<aviplay> : Closing clip
<StreamCache> : Destroy... (Total accesses 71, hits 6049215736.62%, misses
34076.06%, errors 0.00%)
<aviplay> : Played 27 video frames ( 14.814815% drop )
It looks like these are interesting lines:
<Win32 loader> : Using Win32 dll library: msyuv.dll
<Win32 video decoder> : Decoder does not support upside-down RGB frames
<Win32 video decoder> : Decoder is capable of YUV output ( flags 0xe)
<Codec keeper> : UYVY Codec video decoder created
<Win32 video decoder> : WARNING: ICDecompressBegin() failed ( shouldn't happen
), hr=-2 (Bad Format))
How to handle this?
Any ideas?
--
Denis
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile