digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   DVD2SVCD: Latest optimal scripts for DVD2SVCD (http://www.digitalfaq.com/archives/encode/6468-dvd2svcd-latest-optimal.html)

Dialhot 07-10-2004 07:45 AM

If you want to use DVD2SVCD for making your KVCD, copy the following lines at the end of the avisynth.ini file.

Four new choices will appear in the frameserver tab of D2S : Divx Filter, Adaptative Filter, DVD2DVD and DVD2DVD_NoResize

The first one has to be used for converting Divx. The second one is "my" adaptation of MA script (don't forget to check the parameter source_ana according to your source - set to true by default, ie source is anamorphic). Two last are for DVD to DVD. The first use a resize as usual, the second is if you like quick work with no resize at all.

Note : you will need to have avs 2.52 and all necessary plugins into the directory "plugins" of avs.
(necessary plugins are : Asharp, BlockBuster, Convolution3DYV12, DctFilter, Gripfit_YV12, STMedianFilter, Undot, Deen)

Note2 : "Divx Filter" and "Adaptative Filter" do NOT work with permsubs.

Code:

[AVISYNTH_Divx Filter]
0=BlindPP(cpu=4)
1=Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
2=Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
3=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
4=GripSize(resizer="^resizer")
5=Undot()
6=TemporalSoften(2,7,7,3,2)
7=DCTFilter(1,1,1,1,1,1,0.5,0)
8=GripBorders()
9=function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
^overscan=1
^source_ana=false
^dest_ana=false
^resizer=LanczosResize

[AVISYNTH_Adaptative Filter]
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, ^T_FilterThreshHold,  ^T_EdgeThreshHold )
6=MergeChroma(blur(^blur_chroma))
7=MergeLuma(blur(^blur_luma))
8=SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
9=ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf), round(3/nf) , 1, 1)  ")
10=GripBorders()
11=function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
12=function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
^overscan=1
^source_ana=true
^dest_ana=false
^S_FilterThreshHold=3
^S_EdgeThreshHold=3
^T_FilterThreshHold=1
^T_EdgeThreshHold=1
^blur_chroma=1.58
^blur_luma=0.1

[AVISYNTH_DVD2DVD]
0=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
1=GripSize(resizer="^resizer")
2=Undot()
3=Deen()
4=DCTFilter(1,1,1,1,1,1,0.5,0)
5=GripBorders()
^overscan=2
^source_ana=true
^dest_ana=true
^resizer=LanczosResize

[AVISYNTH_DVD2DVD_NoResize]
0=Undot()
1=Deen()
2=DCTFilter(1,1,1,1,1,1,0.5,0)
3=Letterbox(16,16,16,16)

IMPORTANT
DVD2SVCD is no delivered with a KVCD matrix that is not the latest KVCD Notch. Add this to the "matrices.ini" file and select "KVCD-Notch" in the matrix tab of the settings in DVD2SVCD.
Code:

[KVCD-Notch]
Intra=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,
22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48,58,29,
34,37,38,40,48,58,69,34,37,38,40,48,58,69,79
NonIntra=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,
32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,
40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44

------
Change Log
10/07/04 : add DVD2DVD scripts - add KVCD-Notch matrix.

28/11/03 : last MA script (full linear filtering)

02/11/03 : Change Divx Filter for last V4 optimal script

10/24/03 - Updated to last optimal MA script - Changed STMedian filter values to work on a smaller radius, to clean small noise particles. Also added smallest temporal values to the filter.

10/17/03 - Update Divx filter to latest optimal script from avi->kvcd forum (thanks to staigerpaip)

09/02/03 - New Divx script (I still have the former one, if someone wants it)
+ Trick to override YUY2 convertion done by DVD2SVCD and be sure to always work in YV12

08/29/03 - Removed ConvertToYV12() from Divx script : not so usefull and cause problem with permsubs

08/28/03 - Reintroduced SwitchThreshold line that was missing in MA script

08/27/03 - Removed useless Limiter() lines and ConvertToYV12() in MA script

08/26/03 - Set "source_ana" to true by default in Adaptative script (most DVD are anamorphic)


All times are GMT -5. The time now is 05:03 AM  —  vBulletin Jelsoft Enterprises Ltd

Site design, images and content © 2002-2022 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2022 Jelsoft Enterprises Ltd.