PDA

View Full Version : Still Cant seem to get rid of blue with avisynth 2.52


billthornton
17th September 2003, 21:35
I will probably get flamed because i know this has been asked before, but i juts cant work our how to resolve this problem (even after searching and reading posts).

I am running DVD2SVCD 1.2.1 Build 1, Avisynth 2.52, cce 2.67.00.10 (i can post my log files if they are really needed, but i'm guessing you will not need them for this problem).

99% of the converting i do is from avi to svcd (using the avi2svcd option obvious eh?). Also i nearly allways batch encode so i queue up 10+ avi's and come back to the pc a day or so later and they are usually converted.

Its only recently i have tried to changed from avisynth 2.08, which i didnt get this problem with.

Now 99% of the time when i convert the movie turns out blue or redder. I know this has something to do with ConvertToYUY2() and that i need to have SwapUV() infront of the first one in the avs script, but i just cant seem to get it to default into the script.

Here is a copy of the script after an encode.....

LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("C:\ANDYCO~1\Movies\EIGHTL~1.AVI",False)
ConvertToYUY2()
SwapUV()
LoadPlugin("C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize\SimpleResize.dll")
ConvertToYUY2().SimpleResize(480,276)
AddBorders(0,102,0,102)
ConvertToYUY2()
Import("G:\Encoding\DVD Output\2\ResampleAudio.avs")
ResampleAudio(44100)

and here is a copy of my modified avisynth.ini file

[AVISYNTH_BilinearResize]
0=BilinearResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)

[AVISYNTH_BicubicResize]
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
^b_value=0.0
^c_value=0.6

[AVISYNTH_SimpleResize]
0=SwapUV()
1=LoadPlugin(!SimpleResize.dll)
2=ConvertToYUY2().SimpleResize(^TargetWidth,^TargetHeight)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
!SimpleResize.dll=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize\SimpleResize.dll


Most of you out there must have solved this or i would have seen more posts about it. I am really hopeing i am doing something really daft, or there is an easy way to solve this....

Any help would be much appreciated.

Bill.

PS Full marks for DVD2SVCD its a great program.

DDogg
18th September 2003, 03:02
I stuck SwapUV() in the searchbox and got this:
http://forum.doom9.org/showthread.php?s=&threadid=50394&highlight=SwapUV

Anyway, use "edit as part of video encoding" (frameserver tab) until you are sure you have it working correctly. Just stick the swapuv() in front of the resizing and make sure no converttoyuy2() is in front of it.

I think if you get the updated simpleresize, you will not need the converttoyuy2() in front of simpleresize. Frankly you ought to just use bilinear or bicubic anyway, IMO, at least until you have it figured out. This ought to work but I don't convert avi's except DVCam which is what it was designed for, and I damn sure wish dvd2svcd did not do any other format of AVI as it has turned into a ridiculous hassle with all these moron formats of the week.

[AVISYNTH_BilinearResize]
0=swapuv()
1=BilinearResize(^TargetWidth,^TargetHeight)
2=AddBorders(0,^BorderTop,0,^BorderBottom)

billthornton
20th September 2003, 16:31
Thanks for the info. I will try that.