Log in

View Full Version : AVISynth 2.52 usage help Script editing & Filters


syzygytec
27th August 2003, 15:18
Background:
I have read quite a bit onthis forum and for someone with no technical understanding of any of this it can get quite frustrating and confusing. I'm just a tool user <<<--ddogg quote (see I have been reading) looking for a SVCD DVD backup rig for general purpose use that will give me good results on most any backup.

My reason for this post:
I have used DVD2SVCD for about 8 months now using CCE 2.50 2-pass VBR and some recommended changes to the adv. settings I have derived from my reading here.
I have had mixed results for example 2 recent jobs. Star Trek Nemesis>> great results Back 2 The Future Trilogy>>> not so good lots of noise.
I have a critical eye but not the technical understanding to have such I suppose.
I have decided to branch out some and start using some filters, I have stepped up from AVISynth 2.08 to 2.52 because of one main reason most filters are for 2.5x now

A couple of filters I have seen mentioned here quite often and wanted to try are Deen & UnDot. Again I am looking for a rig that will work well on most DVD backups with some filters that will hopefully help but not hurt the quality.
Any suggestions in that area are welcome.

Now with AVISynth 2.52 the CCE guide says to edit the script and put ConvertToYUY2() or ConvertToYUY2(interlaced=true) at the end and also create AddAudio.avsi and place that in the plugins directory and add AddAudio() at the end of the script.
1)Should I now uncheck AddResapmple audio on the Frameserver tab?
2)What is the last entry in the script ConvertToYUY2() or AddAudio() or does it matter.
3)I am using AutoFitCD plugin, do add this during that script editing or set DVD2SVCD to stop after DVD2AVI and edit it in there or does it matter.
4) Why did I get ConvertToYUY2() in my script twice? what added it after I did? and is this bad? how do I prevent it?
-----------------------------
LoadPlugin("D:\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
mpeg2source("D:\DVD2SVCD\Movie\DVD2AV~1.D2V")
# -= AviSynth script by FitCD v1.1.2 =-
BicubicResize(448,256,0,0.6,12,60,696,354)
AddBorders(16,112,16,112)
AddAudio()
ConvertToYUY2()
ConvertToYUY2()
-------------------------------------
Filter use and placement in the script:
I am as I said open to filter suggestions for my intended (Overall general tool user non-technical user) backup rig.

But for example if I wanted to use Deen and UnDot I have read that Deen is a smoother and undot in for misquito noise and that undot should precede a smoother type filter. I know that placement of the filters depends on several things one important one being what colorspace the filter works in and personal preference.
To me it would seem to make sense to place them after resize.

Another question is do I have to put the LoadPlugin line for each filter I want to use? I think I read that for AVISynth 2.5x this is no longer needed, I guess depending upon my having the plugins path correct in the registry.

So using those to filters with my understanding of all this my script would be:

LoadPlugin("D:\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
mpeg2source("D:\DVD2SVCD\Movie\DVD2AV~1.D2V")
# -= AviSynth script by FitCD v1.1.2 =-
BicubicResize(448,256,0,0.6,12,60,696,354)
UnDot()
Deen()
AddBorders(16,112,16,112)
AddAudio()
ConvertToYUY2()

Well thanks for you time and respones in advance anwsers to my specific questions and suggestions as to some general use filters will be greatly appreciated.

DDogg
27th August 2003, 15:32
syzygytec, I hope you do not mind if I try to help out. You have a mixture of generalized questions, but many are specific to DVD2SVCD. It might be better to ask a mod to move this to the D2S advanced forum and then to later come back here and ask your more general DVD & SVCD filter questions.

syzygytec
27th August 2003, 15:35
Yes I'd be glad for your help and suggestions/answers. I was not sure what forum to post in I do see that is is kinda of a multi-forum type question however. I'm just looking for a quick start in the right direction to better encodes for dummies.

telemike
27th August 2003, 17:43
Give this a try, works good for me:

[AVISYNTH_Adaptative Filter_Anamorphic]
0=nf=0
1=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
2=GripSize(resizer="BiCubicResize")
3=Undot()
4=Asharp(1, 4)
5=STMedianFilter(^S_FilterThreshHold, ^S_EdgeThreshHold, 0, 0 )
6=MergeChroma(blur(^blur_chroma))
7=MergeLuma(blur(^blur_luma))
8=SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
9=ScriptClip("nf = round(YDifferenceToNext())"+chr(13)+ "nf >= SwitchThreshold ? unfilter(-(fmin(nf*2,100)),-(fmin(nf*2,100))) : TemporalCleaner(6+nf,11+nf) ")
10=GripBorders()
11=function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
^overscan=1
^source_ana=true
^dest_ana=false
^S_FilterThreshHold=8
^S_EdgeThreshHold=32
^blur_chroma=1.58
^blur_luma=0.1


Big thanks to the KWAG crew for this one. AVS 2.

syzygytec
27th August 2003, 18:26
Thanks telemike..I figured that out I think...needed to add some filters i did not have.

I may try it tonite the preview mode pics from dvd2svcd look good

I really like the AutoFit CD plugin though, I like that it removes all the black and puts it back as borders and that speeds up my encoding. I'd like comments on how to incorporate that possibly into this script and loose the cropping parts from this script, or if anyone even thinks thats a good idea or not.

telemike
28th August 2003, 21:25
Gripfit/crop/borders does it all automatically :)

DDogg
28th August 2003, 22:01
Hmm, I think you do have to set source anamorphic true or false in the frameserver scrolling window don't you? False if the conversion tab shows a 4:3 and true when it shows a 16:9. I could be confused on that as I don't use it much.