I quess I have kinda newbie problems, so far I've used dvd2svcd, but I downloaded avisynth 2.52 and decided to study how everything works. Thing is, these seems to be a lot to learn. My script is avisynth 2.5x optimal script.
Addborders (after testings) seem to work, I also managed to do same thing with virtual dub.
However, it's also seem to be done as I want by placing subtitles before filters and by doing conversions (YUY2 for the subs and after this UV12 for the filtering). Anyway, I had extremely lots of problems with subtitles, and by using AVisynth 2.51 they work, but with 2.52 they don't (Avisynthsubtitler) . Another odd thing is that version 2.51 doesn't regognize ScriptClips 'chr' -strings where 2.52 does. So at the moment I can choose subtitles or Linear Motion Adaptive Filtering but not both.
Avisynth 2.51 came with dvd2svcd.
My script:
## DLL Section ##
#
LoadPlugin("D:\Filters25\MPEG2Dec3.dll")
LoadPlugin("D:\Filters25\GripFit_YV12.dll")
LoadPlugin("D:\Filters25\STMedianFilter.dll")
LoadPlugin("D:\Filters25\asharp.dll")
LoadPlugin("D:\Filters25\unfilter.dll")
LoadPlugin("D:\Filters25\undot.dll")
LoadPlugin("D:\Filters25\vsfilter.dll")
LoadPlugin("D:\Filters25\zoom.dll")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\AVIS YN~2.DLL")
## Defined Variables and Constants ##
MaxTreshold = 1.50
nf = 0 # Current frame.
## Main section and static filters ###
Mpeg2Source("h:\test.d2v")
ConvertToYUY2()
AvisynthSubtitler("H:\starsubs3\","permsubs2.txt")
ConvertToYV12()
undot()
Limiter()
asharp(1, 4)
GripCrop(720,576)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
## Linear Motion Adaptive Filtering ##
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
#ScriptClip("nf = round(YDifferenceToNext()+1)"+chr(13)+ "nf > 2 ? \
#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) ")
#
#
#
GripBorders()
Limiter()
#
#
## Functions ###
function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
#
#
####
Does any of this make any sence? Hints?
Btw, also when struggling with sustitles, I wrote small program which modifies permsubs.txt file by letting user to offset timeline or positioning of the subtitles. If anyone is intrested, just let me know.
One more thing, sorry about this topic to grow, it should be moved under Avisynth.
McMount