Log in

View Full Version : Weird Avisynth bevavior


pest
30th January 2006, 02:41
I use the common Avifile api to access my avs-files.
Everything works as expected in YV12,RGB24 and RGB32 mode.
If i set a ConvertToYUY2() in the avs-file the reported
FOURCC is "YUY2" but the retrieved DIBs are RGB24.
The biCompression Field is set to 0 in contrast to YV12
which sets "YV12".

any help would be great

sh0dan
31st January 2006, 15:08
Are you sure it isn't an intermediate codec getting in the way?

The code is like this in 2.5.x (main.cpp):

if (vi->IsRGB())
bi.biCompression = BI_RGB;
else if (vi->IsYUY2())
bi.biCompression = '2YUY';
else if (vi->IsYV12())
bi.biCompression = '21VY';
else {
_ASSERT(FALSE);
}

pest
31st January 2006, 17:00
If I watch the avs-File with media player classic
the YUY2-Avi-Decompressor does it's job.

Perhaps it's better to set the image-request to
a YUY2-compressed Bitmap in contrast to NULL?


pInpFrame=AVIStreamGetFrameOpen(pVideoStream,NULL);


thank you for your time