Log in

View Full Version : YuV2 conversion not working


bluesix
19th September 2002, 17:39
Here is my script.

LoadPlugin("c:\media\avisynth\TomsMoComp.dll")
clip = AviSource("C:\dv\ke2.avi")
ConvertToYUY2()
return clip.TomsMoComp(1,15,1).BilinearResize(640, 464)


Script error: invalid arguments to function ConvertToYUY2

Tomsmoccomp won't work unless it is YUY2.

Assuming I get this to work, will there be any loss in quality from the conversion?

source is a type 2 dv avi.

bluesix.

sh0dan
19th September 2002, 17:56
ConvertToYUY2() does not recieve a clip.

Use:

LoadPlugin("c:\media\avisynth\TomsMoComp.dll")
clip = AviSource("C:\dv\ke2.avi")
clip = ConvertToYUY2(clip)
return clip.TomsMoComp(1,15,1).BilinearResize(640, 464)

or

LoadPlugin("c:\media\avisynth\TomsMoComp.dll")
AviSource("C:\dv\ke2.avi")
ConvertToYUY2()
TomsMoComp(1,15,1)
BilinearResize(640, 464)


Whatever you prefer. Read the docs, if you are in doubt why.

Yes, there will be quality loss. Use ConvertBackToYUY2() for slightly better quality, since your source already has doubled UV information. But if you compress to DivX or anything like it, either MPEG1, 2 or 4, your image will be converted to to YUV anyway. Remember to use "Fast Recompress" in VDub.