View Full Version : avisynth script database for d2s
Clixo
14th October 2002, 12:22
in the new beta release we can use our favourite scripts as part of the dvd2svcd.ini file, so if you think you have a nice script that suites you why not to share it to the others ?
so here is my first costum script for the new d2s 1.01 build 1 beta 3.
[AVISYNTH_BicubicResize WITH TEMPORALSOFTEN2]
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!temporalsoften2.dll)
3=Temporalsoften2(^x_value,^y_value,^z_value)
^b_value=0.0
^c_value=0.6
!temporalsoften2.dll=C:\Program Files\DVD2SVCD\Avisynth\temporalsoften2.dll
^x_value=3
^y_value=5
^z_value=7
dvd2svcd
14th October 2002, 13:06
Just for the record:
^ = Numerical
! = Filename
§ = Text
? = Boolean
In the frameserver tab you can change the values where you've used the above signs, except when using ^TargetHeight, ^TargetWidth, ^BorderTop and ^BorderBottom those values will be filled in automatically by dvd2svcd.
Every new avisynth section you add to dvd2svcd.ini file must start with AVISYNTH_ like [AVISYNTH_SomethingOrOther]
I will make this sticky and see how it goes.
Please put your script between [ code][ /code] when you post it here then it'll be easy to see what should be copied into dvd2svcd.ini
dvd2svcd
14th October 2002, 15:18
If you want to try out the newly added Lanczos3Resize filter in avisynth you can add this into dvd2svcd.ini:
[AVISYNTH_Lanczos3Resize]
0=LanczosResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
Clixo
15th October 2002, 10:01
for those who might have not seen this: ( this script is authored by dvd2svcd ; )
[AVISYNTH_Cartoon]
0=LoadPlugin(!MSharpen.dll)
1=LoadPlugin(!Convolution3D.dll)
2=LoadPlugin(!Dup.dll)
3=Dup(threshold=^Dup_Threshold,copy=?Dup_Copy)
4=Convolution3D(^3D_Matrix_Choice, ^3D_Spacial_Luma_Threshold, ^3D_Spacial_Chroma_Threshold, ^3D_Temporal_Luma_Threshold, ^3D_Temporal_Chroma_Threshold, ^3D_Temporal_Influence, 0)
5=MSharpen(threshold=^MSharpen_Threshold,strength=^MSharpen_Strength)
6=BilinearResize(^TargetWidth,^TargetHeight)
!MSharpen.dll=C:\Programmer\DVD2SVCD\MSharpen\MSharpen.dll
!Convolution3D.dll=C:\Programmer\DVD2SVCD\Convolution3D\Convolution3D.dll
!Dup.dll=C:\Programmer\DVD2SVCD\Dup\Dup.dll
^Dup_Threshold=5
?Dup_Copy=True
^3D_Matrix_Choice=1
^3D_Spacial_Luma_Threshold=8
^3D_Spacial_Chroma_Threshold=16
^3D_Temporal_Luma_Threshold=8
^3D_Temporal_Chroma_Threshold=8
^3D_Temporal_Influence=3
^MSharpen_Threshold=10
^MSharpen_Strength=50
dvd2svcd
15th October 2002, 10:37
Well, that was more as an experiment on how versatile it actually was. I wouldn't recommend using it ;)
Clixo
15th October 2002, 22:26
and onother one to force subs
[AVISYNTH_BicubicResize with temporal soften and forced subs for avi]
0=LoadPlugin(!temporalsoften2.dll)
1=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
2=AddBorders(0,^BorderTop,0,^BorderBottom)
3=Temporalsoften2(^x_value,^y_value,^z_value)
4=LoadPlugin(!textsub.vdf)
5=textsub(!file.sub)
!temporalsoften2.dll=C:\Program Files\DVD2SVCD\Avisynth\temporalsoften2.dll
^b_value=0.0
^c_value=0.6
^x_value=3
^y_value=5
^z_value=7
!textsub.vdf=C:\Program Files\Gabest\VobSub\textsub.vdf
!file.sub=C:\sub1.sub
Clixo
17th October 2002, 10:08
Unfilter:
[AVISYNTH_BicubicResize WITH UNFILTER]
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!UNFILTER.dll)
3=UNFILTER(^x_value,^y_value)
^b_value=0.0
^c_value=0.6
!UNFILTER.dll=
^x_value=
^y_value=
needle
17th October 2002, 11:43
@clixomano
I think that in your code [AVISYNTH_BicubicResize WITH UNFILTER] the lines "LoadPlugin(!UNFILTER.dll)" and "UNFILTER(^x_value,^y_value)" should be appear before than "BicubicResize..." as follows.
[AVISYNTH_BicubicResize WITH UNFILTER]
0=LoadPlugin(!UNFILTER.dll)
1=UNFILTER(^x_value,^y_value)
2=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
^b_value=0.0
^c_value=0.6
!UNFILTER.dll=
^x_value=
^y_value=
jorel
23rd October 2002, 07:38
could be my mistake,but
in dvd2svcd110b1pre22,
unfilter is after bicubic resize.
than i use unfilter with a new d2s110b1rc2 in this way:
[AVISYNTH_BicubicResize with Unfilter]
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!unfilter.dll)
3=Unfilter(^x_value,^y_value)
^b_value=0.0
^c_value=0.6
!Unfilter.dll=C:\Arquivos de programas\DVD2SVCD110b1b3\UnFilter\UnFilter.dll
^x_value=15
^y_value=15
it is correct?
or i invert something?
help please!
thanks!!
;)
fgm
24th October 2002, 00:23
For those that still use TS this is the correct version of the script included with RC1 in the Readme.txt:
[AVISYNTH_BicubicResize-TemporalSmoother]
0=LoadPlugin(!MPEG2DEC2.dll)
1=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
2=AddBorders(0,^BorderTop,0,^BorderBottom)
3=TemporalSmoother(^Strength,^Radius)
!MPEG2DEC2.dll=F:\Program Files\DVD2SVCD\MPEG2Dec\MPEG2DEC2.dll
^b_value=0.0
^c_value=0.6
^Strength=2
^Radius=1
jorel
27th October 2002, 07:55
with this way:
[AVISYNTH_BicubicResize WITH UNFILTER]
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!UNFILTER.dll)
3=UNFILTER(^x_value,^y_value)
^b_value=0.0
^c_value=0.6
!UNFILTER.dll=
^x_value=
^y_value=
less time to encode , final file is big.
================================================================
and in this way:
[AVISYNTH_BicubicResize WITH UNFILTER]
0=LoadPlugin(!UNFILTER.dll)
1=UNFILTER(^x_value,^y_value)
2=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
^b_value=0.0
^c_value=0.6
!UNFILTER.dll=
^x_value=
^y_value=
more time to encode , final file is short.
=================================================================
i try with temporalsmoother and temporalsoften too.
if resize comes first:less time,big file.
if resize comes after: more time,short file.
final image quality.......just the same.
indy69
28th October 2002, 13:58
I use this script most of the time since most of my encodes are from dvd.
code
[AVISYNTH_BICUBICRESIZE with TemporalSmoothing and unfilter]
0=Loadplugin(!Mpeg2Dec.dll)
1=Temporalsmoother(^Strength,^Radius)
2=loadplugin(!Unfilter.dll)
3=Unfilter(^x_value,^y_value)
4=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
5=AddBorders(0,^BorderTop,0,^BorderBottom)
!Mpeg2Dec.dll=D:\Dvd2svcd\Mpeg2dec\Mpeg2dec.dll
^Strength=2
^Radius=1
!Unfilter.dll=D:\DVD2svcd\Unfilter.dll
^x_value=-40
^y_value=-40
^b_value=0.33
^c_value=0.33
You can vary the order of the filters and values in the frameserver section easily
dvd2svcd
29th October 2002, 20:39
Please keep this thread to Avisynth Scripts only, don't post problems here. (Holomatrix, I moved you're question and indy69's answers into the help!!! thread)
badbert
31st October 2002, 07:02
This is my AVI2SVCD script. You can find the tweak and focus filters HERE (http://208.189.26.162/vbb/showthread.php?s=&threadid=32772&highlight=focus2) Make sure to read the readme files to set the proper defaults.
[AVISYNTH_BiCubicResize With temporal smoother, tweak, focus2, and forced subs for avi]
0=LoadPlugin(!Tweak.dll)
1=LoadPlugin(!Focus2.dll)
2=Tweak(^hue,^sat,^bright,^contrast)
3=Blur2(^Blur)
4=Sharpen2(^sharpen)
5=TemporalSmoother(^Strength,^Radius)
6=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
7=AddBorders(0,^BorderTop,0,^BorderBottom)
8=LoadPlugin(!textsub.vdf)
9=textsub(!file.sub)
experiment with the order for speed...:sly:
Abond
5th November 2002, 10:31
I have used this script once, but in GKnot for DVD rip with little noise. The movie comes out ok, but not perfect. Didn't experiment further (lazy). In fact I don't know if I wrote it correctly for DVD2SVCD...
The idea came from jorel post in this thread.
Here it is:
[AVISYNTH_BicubicResize WITH UNFILTER]
0=LoadPlugin(!UNFILTER.dll)
1=UNFILTER(^x_value_neg,^y_value_neg)
2=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
4=UNFILTER(^x_value,^y_value)
^b_value=0.33
^c_value=0.33
!UNFILTER.dll=
^x_value_neg=-20
^y_value_neg=-20
^x_value=20
^y_value=20
Maybe somebody will find it usefull...
Greetings.
onesoul
15th November 2002, 04:11
I must confess I haven't used much but for what I read, the convolution3D script is really good and it even has presets which is a great thing for n00bs like me :) (thanks Vlad59)
In this script you will find the preset established as animeHQ, it could be something else... At frameserver tab of dvd2svcd just put the preset you want or if you are an expert just put the values you like.
Suggestion: keep Convolution3D.txt open to check presets ;)
Check this thread to see what other settings have been experimented for other sources (than at the presets) like tv, dv.
link: http://forum.doom9.org/showthread.php?s=&threadid=32762
[AVISYNTH_Convolution3D-BicubicResize]
0=LoadPlugin(!Convolution3D.dll)
1=Convolution3D(^convpreset)
2=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
!Convolution3D.dll=C:\Program Files\AviSynth\convolution3d\Convolution3D.dll
^convpreset=preset="animeHQ"
^b_value=0.0
^c_value=0.6
sandchar99
21st November 2002, 17:31
I know this is not really very sophisticated but I use to edit out the balck bars on NTSC back-ups where the aspect ratio is 2.35:1 on a 16:9 and 1.66:1 on a 4:3. More bitrate devoted to film area. Encoding times improve.
Useful if using the batch method or if the film is spread over more than discs or doing multiple episodes
The values change from film to film.
My method
1. Rip one short chapter. Set DVD2SVCD to edit AVIsynth file when DVD2AVI is done.
2. When DVD2SVCD gets to the edit point, hit save. In windows explorer, copy the avisynth file so that you'll have a back-up. Load project file into DVD2AVI. Use clip and resize feature under video tab. Take a note of the borders: top, width and height (for example top=40, width=720, height=384). Put these values into the avisynth file at their appropriate spot on the Bicubic line.
Example for a 2.35:1
LoadPlugin("C:\PROGRA~1\Video\DVD2SV~2\MPEG2Dec\MPEG2DEC.dll")
mpeg2source("C:\Movies\LAWREN~1\Vobs\DVD2AV~1.D2V")
BicubicResize(480,276,0.0,0.60,0,40,720,384)
TemporalSmoother(2,1)
AddBorders(0,102,0,102)
3. Guess at the values for the AddBorders line. Add up the numbers on the AddBorders line, in this case 102+102=204 and subtract that number from 480 and put that as the second number in the Bicubic line. Hit save.
4. Now preview the copied avisynth file in Windows Media player. Physically measure the vertical dimension. Now open the working avisynth file in Windows Media player. Physically measure the vertical dimension. Are the two the same? If not, modify the addborders values and the second number in the Bicubic line. Hit save and measure in Windows Media player. Repeat as necessary.
5. Write the final values down.
6. Restart DVD2SVCD and place the final values in the script. Now you can do the whole film without further edit.
EDIT: Actually using the Preview Pane in DVD2SVCD under GO! will work also. Simply use standard setting, "Bicubic" for example. Take your crude measurements with pen and paper. Close the preview pane, use one of the modified avisynth scripts above, play with numbers until you get the correct looking preview pane. Taht way you do not have to rip a single chapter.
[AVISYNTH_BicubicResize and Crop with TemporalSmoother 16:9]
0=BicubicResize(^TargetWidth,^Resize_Height,^b_value,^c_value,^crop_left,^crop_top,^original_horizontal_dimension,^original_vertical_dimension)
1=TemporalSmoother(^Strength,^Radius)
2=AddBorders(0,^Border_Top,0,^Border_Bottom)
^Resize_Height=276
^b_value=0.0
^c_value=0.60
^crop_left=0
^crop_top=40
^original_horizontal_dimension=720
^original_vertical_dimension=384
^Strength=2
^Radius=1
^Border_Top=102
^Border_Bottom=102
[AVISYNTH_BicubicResize and Crop with TemporalSmoother 4:3]
0=BicubicResize(^TargetWidth,^Resize_Height,^b_value,^c_value,^crop_left,^crop_top,^original_horizontal_dimension,^original_vertical_dimension)
1=TemporalSmoother(^Strength,^Radius)
2=AddBorders(0,^Border_Top,0,^Border_Bottom)
^Resize_Height=360
^b_value=0.0
^c_value=0.60
^crop_left=0
^crop_top=40
^original_horizontal_dimension=720
^original_vertical_dimension=400
^Strength=2
^Radius=1
^Border_Top=60
^Border_Bottom=60
Hope this is helpful to some
:)
Also...without temporalsmoother
[AVISYNTH_BicubicResize and Crop 4:3 (No TS)]
0=BicubicResize(^TargetWidth,^Resize_Height,^b_value,^c_value,^crop_left,^crop_top,^original_horizontal_dimension,^original_vertical_dimension)
1=AddBorders(0,^Border_Top,0,^Border_Bottom)
^Resize_Height=360
^b_value=0.0
^c_value=0.60
^crop_left=0
^crop_top=40
^original_horizontal_dimension=720
^original_vertical_dimension=400
^Border_Top=60
^Border_Bottom=60
[AVISYNTH_BicubicResize and Crop 16:9 (No TS)]
0=BicubicResize(^TargetWidth,^Resize_Height,^b_value,^c_value,^crop_left,^crop_top,^original_horizontal_dimension,^original_vertical_dimension)
1=AddBorders(0,^Border_Top,0,^Border_Bottom)
^Resize_Height=272
^b_value=0.0
^c_value=0.60
^crop_left=0
^crop_top=60
^original_horizontal_dimension=720
^original_vertical_dimension=360
^Border_Top=104
^Border_Bottom=104
Holomatrix
21st November 2002, 18:21
Here's mine :)
[AVISYNTH_BlockbusterBilinearNoMoSmoothFluxSmooth]
0=BilinearResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!Blockbuster.dll)
3=LoadPlugin(!NoMoSmooth.dll)
4=LoadPlugin(!FluxSmooth.dll)
5=NoMoSmooth()
6=FluxSmooth()
7=Blockbuster( method="noise", detail_min=1, detail_max=10, lv=1 )
8=Blockbuster( method="sharpen", detail_min=^detail_min, detail_max=^detail_max, strength=^StrengthValue )
!Blockbuster.dll=C:\Program Files\DVD2SVCD\Blockbuster\Blockbuster.dll
!NoMoSmooth.dll=C:\Program Files\DVD2SVCD\NoMoSmooth\NoMoSmooth.dll
!FluxSmooth.dll=C:\Program Files\DVD2SVCD\FluxSmooth\FluxSmooth.dll
^detail_min=10
^detail_max=99
^StrengthValue=10
jorel
23rd November 2002, 06:13
Originally posted by Holomatrix
Here's mine :)
[AVISYNTH_BlockbusterBilinearNoMoSmoothFluxSmooth]
0=BilinearResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!Blockbuster.dll)
3=LoadPlugin(!NoMoSmooth.dll)
4=LoadPlugin(!FluxSmooth.dll)
5=NoMoSmooth()
6=FluxSmooth()
7=Blockbuster( method="noise", detail_min=1, detail_max=10, lv=1 )
8=Blockbuster( method="sharpen", detail_min=^detail_min, detail_max=^detail_max, strength=^StrengthValue )
!Blockbuster.dll=C:\Program Files\DVD2SVCD\Blockbuster\Blockbuster.dll
!NoMoSmooth.dll=C:\Program Files\DVD2SVCD\NoMoSmooth\NoMoSmooth.dll
!FluxSmooth.dll=C:\Program Files\DVD2SVCD\FluxSmooth\FluxSmooth.dll
^detail_min=10
^detail_max=99
^StrengthValue=10
* lv=1 don't work with the new version of Blockbuster(0.5),
change to variance=1
like this:
7=Blockbuster( method="noise", detail_min=1, detail_max=10, variance=1 )
read the news about Blockbuster.
;) ;)
neopholus
26th November 2002, 11:11
Hi,
these scripts are a result of this thread (http://forum.doom9.org/showthread.php?s=&threadid=38419). They can be used to get the size of the black borders, crop them before resizing (faster resizing) and adding black borders afterwards automatically. This one is for converting PAL movies (16:9 and 4:3) to SVCD.
[AVISYNTH_DetectBorders]
0=LoadPlugin(!AutoCrop.dll)
1=AutoCrop(true,1,1,0,0,0,0,40,10)
2=BilinearResize(^TargetWidth,^TargetHeight)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
!AutoCrop.dll=C:\Programme\SVCD\DVD2SVCD\Autocrop\AutoCrop.dll
[AVISYNTH_BilinearResizeWithoutBlackBorders]
0=Crop(^Crop_Left, ^Crop_Top, ^Crop_Width, ^Crop_Height)
1=AutoResize()
2=AutoAddBorders()
3=function AutoAddBorders(Clip c) {
4=aab_top = (Floor(((576 - c.height) / 2) / 16))*16
5=aab_bottom = (576 - aab_top) - c.height
6=return addBorders(c, 0, aab_top, 0, aab_bottom)
7=}
8=function AutoResize(Clip c) {
9=factor = (^BorderTop == 72) ? 0.75 : 1.0
10=height = Round((720.0 / c.width) * c.height * factor)
11=return BilinearResize(c, 480, height)
12=}
^Crop_Left=0
^Crop_Top=0
^Crop_Width=720
^Crop_Height=576
Now do the following:
1) Insert DVD into your drive
2) Press the DVD-icon on the Conversion tab
3) Select Go->Preview Video (still picture)
4) Go to the frameserver-tab
5) Select the "DetectBorders" avisynth script
6) Note the autocrop info on the preview (if the borders are not detected very well, use "New Frame"-button!)
On my test DVD the autocrop-info was Crop(4,76,713,423)
7) Select the "BilinearResizeWithoutBlackBars" avisynth script
8) Edit the parameters of the Crop-line to match the ones of the autocrop information
9) ready!! Even if you cropped some pixels from left and right, the script calculates the correct size of the video, adds borders and the movie is ready to be converted.
Some additional hints:
- the script calculates the top and bottom borders to align the top of the picture to a multiple of 16 (macroblock optimisation). Thus, there can be different large borders on top and on bottom. If you do not like this behaviour, modify the BilinearResizeWithoutBlackBorders script:
...
5=aab_top = Round((576 - c.height) / 2)
...
Now the borders are always the same size.
- The autocrop-filter can be found here: here (http://www.videofringe.com/autocrop/).
- Some discussions on this filter can be found here (http://forum.doom9.org/showthread.php?s=&threadid=37204).
Cheers,
neopholus
[EDITED] @RB: Thanks for the bugfix!
Clixo
27th November 2002, 14:04
this is a copy and paste from one post of THE GREAT ONE , actualy called here by DVD2SVCD,
[AVISYNTH_BicubicResize_with_monitor_filter]
0=LoadPlugin(!avsmon.dll)
1=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
2=AddBorders(0,^BorderTop,0,^BorderBottom)
3=monitorfilter()
!avsmon.dll=C:\Programmer\DVD2SVCD\Dup\avsmon.dll
^b_value=0.0
^c_value=0.6
you can download the avsmon.dll here (http://members.nextra.at/johann.langhofer/avisynth/avsmon.dll)
PS. if you whant to see the encode running on the screan with fixed subs, you must edit the script befoure the encode and put the subs line bofoure the one with monitorfilter.
neopholus
2nd December 2002, 17:29
Originally posted by jorel
@neopholus
how can i use the script to make vcds?
thanks in advance!;)
Hi jorel,
These are the above scripts adapted for converting movies (16:9 and 4:3) to VCD. I never did a VCD, so I hope, these are correct.
Scripts PAL movie (720x576) -> VCD (352x288)
[AVISYNTH_DetectBorders]
0=LoadPlugin(!AutoCrop.dll)
1=AutoCrop(true,1,1,0,0,0,0,40,10)
2=BilinearResize(^TargetWidth,^TargetHeight)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
!AutoCrop.dll=C:\Programme\SVCD\DVD2SVCD\Autocrop\AutoCrop.dll
[AVISYNTH_BilinearResizeWithoutBlackBordersVCD]
0=Crop(^Crop_Left, ^Crop_Top, ^Crop_Width, ^Crop_Height)
1=AutoResize()
2=AutoAddBorders()
3=function AutoAddBorders(Clip c) {
4=aab_top = Floor((288 - c.height) / 2)
5=aab_bottom = (288 - aab_top) - c.height
6=return addBorders(c, 0, aab_top, 0, aab_bottom)
7=}
8=function AutoResize(Clip c) {
9=factor = (^BorderTop > 10) ? 0.75 : 1.0
10=height = Round((720.0 / c.width) * c.height * factor * (352 / 720))
11=return BilinearResize(c, 352, height)
12=}
^Crop_Left=0
^Crop_Top=0
^Crop_Width=720
^Crop_Height=576
------------------------------------------------------
Scripts NTSC movie (720x480) -> VCD (352x240)
[AVISYNTH_DetectBorders]
0=LoadPlugin(!AutoCrop.dll)
1=AutoCrop(true,1,1,0,0,0,0,40,10)
2=BilinearResize(^TargetWidth,^TargetHeight)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
!AutoCrop.dll=C:\Programme\SVCD\DVD2SVCD\Autocrop\AutoCrop.dll
[AVISYNTH_BilinearResizeWithoutBlackBordersVCD_NTSC]
0=Crop(^Crop_Left, ^Crop_Top, ^Crop_Width, ^Crop_Height)
1=AutoResize()
2=AutoAddBorders()
3=function AutoAddBorders(Clip c) {
4=aab_top = Floor((240 - c.height) / 2)
5=aab_bottom = (240 - aab_top) - c.height
6=return addBorders(c, 0, aab_top, 0, aab_bottom)
7=}
8=function AutoResize(Clip c) {
9=factor = (^BorderTop > 10) ? 0.75 : 1.0
10=height = Round((720.0 / c.width) * c.height * factor * (352 / 720))
11=return BilinearResize(c, 352, height)
12=}
^Crop_Left=0
^Crop_Top=0
^Crop_Width=720
^Crop_Height=480
Please give it a try... to avoid unnecessary posts on this thread, please send me a private message or edit your old message to let me know of any errors... I think, this thread is not for discussions.
Cheers,
neopholus
[EDITED] @RB: Thanks for the bugfix!
markrb
6th December 2002, 04:17
Once again as asked by DVD2SVCD.
Please do not ask questions or answer problems in this thread. It is for the database only. Please make a new post in Basics and reference this here only.
I will be deleting any posts not following these guidelines.
Mark
magnanimous
13th December 2002, 09:57
[AVISYNTH_Simple resize&convolution3d&blockbuster]
0=loadplugin(!simpleresize.dll)
1=loadplugin(!convolution3d.dll)
2=LoadPlugin(!Blockbuster.dll)
3=simpleresize(^TargetWidth,^TargetHeight)
4=convolution3d(^A,^B,^C,^D,^E,^F,^G)
5=Blockbuster( method="sharpen", detail_min=^detail_min, detail_max=^detail_max, strength=^StrengthValue )
6=Blockbuster(method="noise",block_size=3,luma_offset=-1,luma_threshold=28,detail_min=1, detail_max=25)
7=AddBorders(0,^BorderTop,0,^BorderBottom)
!simpleresize.dll=c:\dvd2svcd\simpleresize\simpleresize.dll
!convolution3d.dll=C:\DVD2SVCd\convolution3d\Convolution3D.dll
!Blockbuster.dll=C:\DVD2SVCd\blockbuster\Blockbuster.dll
^A=0
^B=6
^C=10
^D=6
^E=8
^F=2
^G=0
^detail_min=10
^detail_max=99
^StrengthValue=1
After much experimentation, this works well for me!
magnanimous
11th January 2003, 08:54
[AVISYNTH_Movies with simple fluxsmooth blockbuster]
0=loadplugin(!simpleresize.dll)
1=loadplugin(!fluxsmooth.dll)
2=loadplugin(!blockbuster.dll)
3=simpleresize(^TargetWidth,^TargetHeight)
4=fluxsmooth(^value1,^value2)
5=Blockbuster( method="noise", detail_min=1, detail_max=10, variance=1 )
6=Blockbuster( method="sharpen", detail_min=^detail_min, detail_max=^detail_max, strength=^StrengthValue )
7=AddBorders(0,^BorderTop,0,^BorderBottom)
!simpleresize.dll=c:\dvd2svcd\simpleresize\simpleresize.dll
!fluxsmooth.dll=C:\DVD2SVCd\fluxsmooth\FluxSmooth.dll
!blockbuster.dll=C:\DVD2SVCd\blockbuster\Blockbuster.dll
^value1=38
^value2=2
^detail_min=10
^detail_max=90
^StrengthValue=1
I've been experimenting with FLUXSMOOTH to get a bit more speed over CONVOLUTION3D, the results to my eye are very good, I also use it at 1 PASS VBR to save time. (DURON 600 YUK)
jorel
12th January 2003, 19:28
very good one:
fast,sharp and clear without blocks!
[AVISYNTH_LanczosResize, Tweak, Fluxsmooth, Blockbuster, Legalclip]
0=LoadPlugin(!Tweak.dll)
1=LoadPlugin(!FluxSmooth.dll)
2=LoadPlugin(!Blockbuster.dll)
3=LoadPlugin(!Legalclip.dll)
4=LanczosResize(^TargetWidth,^TargetHeight)
5=Tweak(^Hue,^Saturation,^Bright,^Contrast)
6=FluxSmooth()
7=Blockbuster(method="dither", detail_min=1, detail_max=10, variance=1)
8=Legalclip()
9=AddBorders(0,^BorderTop,0,^BorderBottom)
!Tweak.dll=C:\xxxxxx\Tweak.dll
!FluxSmooth.dll=C:\xxxxx\FluxSmooth.dll
!Blockbuster.dll=C:\xxx\Blockbuster.dll
!Legalclip.dll=C:\xxxx\Legalclip.dll
^Hue=0
^Saturation=1.0
^Bright=5
^Contrast=1.0
:D
RB
16th January 2003, 21:29
Originally posted by neopholus
[AVISYNTH_BilinearResizeWithoutBlackBorders]
...
10=height = Round((720.0 / c.width) * c.height * factor)
...
Funny nobody noticed this before, but this is a major bug. This line should of course read
10=height = Round((c.width / 720.0) * c.height * factor)
Because if you are cropping from left and/or right, you reduce the original pictures width so you must also resize to a smaller height.
RB
17th January 2003, 08:28
Err, sorry, must have been too late and probably had too much coffee :scared:. The original line is of course essentially correct but there is still a potential bug with 4:3 movies. In this case factor is 1 and if they crop enough from left and right, the frame will be resized vertically beyond the target height. To avoid this, line 11 should be modified like this:
11=return BilinearResize(c, ^TargetWidth, height).Crop(0, 0, ^TargetWidth, ^TargetHeight + ^BorderTop + ^BorderBottom)
magnanimous
10th March 2003, 09:37
[AVISYNTH_bicubic, Fluxsmooth, Blockbuster]
0=LoadPlugin(!FluxSmooth.dll)
1=LoadPlugin(!Blockbuster.dll)
2=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
3=FluxSmooth(15,8)
4=Blockbuster( method="sharpen", detail_min=^detail_min, detail_max=^detail_max, strength=^StrengthValue )
5=AddBorders(0,^BorderTop,0,^BorderBottom)
!FluxSmooth.dll=C:\dvd2svcd\fluxsmooth\FluxSmooth.dll
!Blockbuster.dll=C:\DVD2SVCd\blockbuster\Blockbuster.dll
^detail_min=10
^detail_max=99
^StrengthValue=1
^b_value=0.0
^c_value=0.6
I've been using this one for quite a while, i'm happy with the results although the edges of images don't seem to be quite right.
badbert
24th April 2003, 03:47
If someone has already posted this or it is common knowledge, please disregard and or delete this post.
I recently updated my version of DVD2SVCD to the latest version of DVD2SVCD 1.1.3 build 2. I also opted to try out the 2.51 version of AVS only to find out that all of my favorite filters do not work with this new version of AVS. I was able to find new versions of most of them, here http://www.avisynth.org/~warpenterprises/. But by reading and searching the AVS forum I found, that by downloading the warpsharp package (http://www.avisynth.org/~warpenterprises/files/warpsharp_25_dll_20030121.zip), I could use all of them!! The package contains a "LoadPluginEx.dll" that will allow you to use most 2.0 filters. Simply add a "LoadPluginEx.dll" line to your "DVD2SVCD.ini" file. I will add "my" ini file, as an example. But I warn you, my combination of filters will kill most computers (I have a dual MP1600)...LOL
[AVISYNTH_Testing3]
0=loadplugin(!LoadPluginEx.dll)
1=loadplugin(!Tweak.dll)
2=loadplugin(!convolution3d.dll)
3=loadplugin(!dustv5.dll)
4=LoadPlugin(!Focus2.dll)
5=LoadPlugin(!Legalclip.dll)
6=Blur2(^Blur)
7=Tweak(^hue,^sat,^bright,^contrast)
8=Sharpen2(^sharpen)
9=Convolution3D(^convpreset)
10=PixieDust()
11=Legalclip()
12=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
13=AddBorders(0,^BorderTop,0,^BorderBottom)
I use DVD2SVCD as an AVS front-end, converting DivX and XviD, I run DVD2SVCD to where it creates the AVS file. I then run the "AviSynth_Script_file.avs" script through VDUBMOD making a "Huffy with a wave file", and then use DVD2SVCD as a front-end for CCE 2.50 with a blank "INI" file.
[AVISYNTH_Blank] (I have to create this one every time, DVD2SVCD will not retain this in the file, anyone got an idea how to make it stay?)
It takes about 4 to 6 hours to do the huffy.
But since there isn't even a resize going on, I have been getting 3.7 and 3.9 in CCE, with this new version (2.51) of AVS. so it takes 2 to 3 hours to do a six pass, 2 hour movie. bringing the total to 6 to 9 hours on a six pass using all of these filters.
telemike
28th May 2003, 10:52
/ADD AVISYNTH 2.08
[AVISYNTH_BilinearResize,Temporal Cleaner,Dustv5]
0=BilinearResize(^TargetWidth,^TargetHeight)
1=LoadPlugin(!Dustv5.dll)
2=LoadPlugin(!TemporalCleanerOld.dll)
3=SpaceDust()
4=TemporalCleaner()
5=AddBorders(0,^BorderTop,0,^BorderBottom)
!Dustv5.dll=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\Dustv5.dll
!TemporalCleanerOld.dll=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\TemporalCleanerOld.dll
[AVISYNTH_BilinearResize,Temporal Cleaner,Dustv5,MergeChromaLuma]
0=BilinearResize(^TargetWidth,^TargetHeight)
1=LoadPlugin(!Dustv5.dll)
2=LoadPlugin(!TemporalCleanerOld.dll)
3=SpaceDust()
4=TemporalCleaner()
5=MergeChroma(blur(1.50))
6=MergeLuma(blur(0.2))
7=AddBorders(0,^BorderTop,0,^BorderBottom)
!Dustv5.dll=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\Dustv5.dll
!TemporalCleanerOld.dll=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\TemporalCleanerOld.dll
telemike
31st May 2003, 04:38
And another one:
/ADD AVISYNTH 2.08
[AVISYNTH_GripFit]
0=LoadPlugin(!GripFit.dll)
1=GripCrop(^Height,^Width,overscan=2,source_anamorphic=^Source_ana)
2=GripSize(resizer="^Resizer")
3=GripBorders()
!GripFit.dll=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\GripFit_preview.dll
^Height=480
^Width=480
^Source_ana=false
^Resizer=BilinearResize
[AVISYNTH_GripFit,Temporal Cleaner, Dustv5]
0=LoadPlugin(!GripFit.dll)
1=GripCrop(^Height,^Width,overscan=2,source_anamorphic=^Source_ana)
2=GripSize(resizer="^Resizer")
3=LoadPlugin(!Dustv5.dll)
4=LoadPlugin(!TemporalCleanerOld.dll)
5=SpaceDust()
6=TemporalCleaner()
7=GripBorders()
!GripFit.dll=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\GripFit_preview.dll
^Height=480
^Width=480
^Source_ana=false
^Resizer=BilinearResize
jorel
20th July 2003, 12:34
i got great results using this script for avisynth252:
thanks to Kwag and Phil(Dialhot)
[AVISYNTH_Adaptative Filter]
0=FieldDeinterlace()
1=nf=0
2=GripCrop(^TargetWidth,^TargetHeight+^BorderTop+^BorderBottom,overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
3=GripSize(resizer="BiCubicResize")
4=Undot()
5=Asharp(1,4)
6=STMedianFilter(^S_FilterThreshHold,^S_EdgeThreshHold,0,0)
7=MergeChroma(blur(^blur_chroma))
8=MergeLuma(blur(^blur_luma))
9=SwitchThreshold=(Width<=352)?4:(Width<=480)?3:2
10=ScriptClip("nf=round(YDifferenceToNext())"+chr(13)+"nf>=SwitchThreshold?unfilter(-(fmin(nf*2,100)),-(fmin(nf*2,100))):TemporalCleaner(6+nf,11+nf)")
11=GripBorders()
12=function fmin(int f1,int f2){return(f1<f2)?f1:f2}
^overscan=1
^source_ana=false
^dest_ana=false
^S_FilterThreshHold=8
^S_EdgeThreshHold=32
^blur_chroma=1.58
^blur_luma=0.1
telemike
11th August 2003, 20:46
/add replaced with newer
telemike
11th August 2003, 20:47
[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.52
telemike
14th August 2003, 19:55
/add replaced with newer
DDogg
16th August 2003, 19:48
I think this is on topic and does not violate the rule of this thread:
^ = Numerical
! = Filename
§ = Text
? = Boolean
For those of you who do not have the "§" on your keyboard, Hold down the ALT key and type on the numeric pad 0167. So that would be ALT+0167 = § (numlock, of course, has to be on).
telemike
10th September 2003, 10:52
Newest for simplicity, quality and speed
[AVISYNTH_STM_BicubicResize]
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=Undot()
2=Asharp(1, 4)
3=STMedianFilter(^S_FilterThreshHold, ^S_EdgeThreshHold, 0, 0 )
4=MergeChroma(blur(^blur_chroma))
5=MergeLuma(blur(^blur_luma))
6=Temporalsoften(2,3,3,mode=2,scenechange=6)
7=AddBorders(0,^BorderTop,0,^BorderBottom)
^S_FilterThreshHold=8
^S_EdgeThreshHold=32
^blur_chroma=1.58
^blur_luma=0.1
^b_value=0.0
^c_value=0.6
/add:
CCE 2.67 speed of .40 on Vaio Celeron 1200 256MB
telemike
17th September 2003, 10:53
Fast and Good:
[AVISYNTH_BilinearResize_Filters]
0=BilinearResize(^TargetWidth,^TargetHeight)
1=undot()
2=unfilter(-5,-5)
3=deen()
4=AddBorders(0,^BorderTop,0,^BorderBottom)
/add 11/11/2003:
This is good for DVD backups and slow processors. :D
nsdn
23rd September 2003, 11:33
Be really good if you guys could put a little description of what your scripts actually do. I can see what filters are there but you have obviously played with your presets. It would help if you indicate what material your filters are usefull/optimised for. For example, if the filter is optimised for dvd rip, or if it is from a DV camera tape? or a old archive with lots of noise. DVD2SVCD has become so much more than its namesake :)
Some of you guys already are doing this...thanks :)
homerjay
9th November 2003, 13:02
[AVISYNTH_QMF_PRE_BilinearResize_Post_Plus_Gamma]
0=converttoyv12()
1=LoadPlugin(!SimpleResize.dll)
2=Levels(0,^Gamma,255,0,255)
3=Tweak(0,1,^bright,^cont)
4=Import(!qmf15b1.avs)
5=Import(!QMF_functions.avs)
6=Import(!PreResize.avs)
7=BilinearResize(^TargetWidth,^TargetHeight)
8=Import(!PostResize.avs)
9=AddBorders(0,^BorderTop,0,^BorderBottom)
!SimpleResize.dll=E:\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize.dll
^Gamma=2
^bright=0
^cont=1
!qmf15b1.avs=E:\DVD2SVCD\Avisynth2.5 Plugins\FACAR\qmf15b1.avs
!QMF_functions.avs=E:\DVD2SVCD\Avisynth2.5 Plugins\FACAR\QMF_functions.avs
!PreResize.avs=E:\DVD2SVCD\Avisynth2.5 Plugins\FACAR\PreResize.avs
!PostResize.avs=E:\DVD2SVCD\Avisynth2.5 Plugins\FACAR\PostResize.avs
my new superscript based on principles of FACAR ( must be installed to work ) for converting hdtv series avis which i have found come out too dark
onesoul
7th June 2004, 02:54
I have found a good filter chain for clean sources with almost none detail damage, (preserving more detail than deen which to my eyes seems to darken certain scene areas like flaming red), and removing noticeably some noise. (Used avscompare 2.5 for my test with LOTR - Two Towers)
For progressive sources:undot()
DctFilter(1,1,1,1,1,1,.5,0)
VagueDenoiser(threshold=0.8,method=1,nsteps=6,chroma=true)For Interlaced sources could be:
separatefields()
e=undot().selecteven().DctFilter(1,1,1,1,1,1,.5,0)
o=undot().selectodd().DctFilter(1,1,1,1,1,1,.5,0)
interleave(e,o)
weave()
VagueDenoiser(threshold=0.8,method=1,nsteps=6,chroma=true,interlaced=true)You can find the above filters at the link inside the sticky of avisynth usage forum.
jorel
25th September 2004, 13:13
my personal taste encoding "the hulk" was using CCE266(D2S-RoBa):
[AVISYNTH_No Resize_Undot_ColorMatrix_Asharp_Deen]
0=Undot()
1=ColorMatrix()
2=Asharp(0.7, 2)
3=Deen()# or deen("a3d",3,4,1,4) # light cleaning
........
Avisynth_Script_File.avs (from D2S-RoBa)
LoadPlugin("C:\ARQUIV~1\DVD2SV~1\AVISYN~1.5PL\MPEG2DEC\MPEG2D~1.DLL")
MPEG2Source("D:\D2S-D\DVD2AV~1.D2V")
Undot()
colormatrix()
Asharp(0.7, 2)
Deen()# or deen("a3d",3,4,1,4) # light cleaning
Import("D:\D2s-d\ResampleAudio.avs")
ResampleAudio(44100)
ConvertToYUY2()
!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.