digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   DVD2SVCD: Script for Interlaced sources (http://www.digitalfaq.com/archives/encode/6456-dvd2svcd-script-interlaced.html)

azel 11-01-2003 03:12 PM

Script for Interlaced sources
 
Here is a script for Interlaced sources:

Code:

[AVISYNTH_MA Interlaced]
0=nf=0
1=SeparateFields()
2=UnDot()
3=BicubicResize(^TargetWidth-(^Edge*2),^TargetHeight/2,0,0.6)
4=MergeChroma(Blur(1.5))
5=MergeLuma(Blur(0.1)) # use only if the video won't get too blurry!
6=STMedianFilter(4,32,0,0)
7=SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
8=even=SelectEven().ScriptClip("nf=YDifferenceToNext()"+chr(13)+"nf>=SwitchThreshold?unfilter(-(fmin(round(nf)*2,100)),-(fmin(round(nf)*2,100))):TemporalSoften(fmin(round(2/nf),6),round(1/nf),round(3/nf),0,2)")
9=odd=SelectOdd().ScriptClip("nf=YDifferenceToNext()"+chr(13)+"nf>=SwitchThreshold?unfilter(-(fmin(round(nf)*2,100)),-(fmin(round(nf)*2,100))):TemporalSoften(fmin(round(2/nf),6),round(1/nf),round(3/nf),0,2)")
10=Interleave(even,odd)
11=Weave()
12=AddBorders(^Edge,^BorderTop,^Edge,^BorderBottom)
13=Limiter()
14=function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
^Edge=16

Remember to place decomb.dll in avisnth's plugin directory!
More Info

Dialhot 11-01-2003 06:39 PM

What is this strange 10-pixel width edge you add ?
A border must be mod16 to be block aligned. Else your CQ suffer a lot from the misalignment.

azel 11-02-2003 11:05 AM

OK, so if I change it to 16, it will be OK???

Dialhot 11-02-2003 11:29 AM

For instance, yes. You can also use parameters like I do in the optimal scripts. This way things wan be changed following the needs.


All times are GMT -5. The time now is 09:50 AM  —  vBulletin © Jelsoft Enterprises Ltd

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