Log in

View Full Version : Setting subtitle position


marnix88
18th July 2006, 15:30
Hello, is there a way to change the position of subtitles with VSFilter?

I'm using the script below to add subtitles when encoding an AVI clip with CCE. I know I can create a Style file for SRT subtitles and edit SSA/ASS subtitles to change the Y position, but it would be a lot easier if it could be done directly in the AVISynth script.

Thanks.

LoadPlugin("D:\VirtualDubMod\plugins\VSFilter.dll")
AVISource("H:\TestClip.avi",audio=False)
ConvertToYUY2()
LanczosResize(720,464)
AddBorders(0,8,0,8)
TextSub("C:\MySubtitles.srt")

foxyshadis
18th July 2006, 17:32
Instead of using srt, you should just use aegisub or subtitle workshop, convert them to ASS, and apply a global style (or several styles as desired). You can't access style parameters with TextSub like you can in vsfilter, its only optional arguments are charset and fps.

marnix88
18th July 2006, 19:22
Thanks a lot :)