PDA

View Full Version : Subtitles on MPEG-2 with AviSynth


aldaco12
4th November 2005, 15:04
Hi. I'm starting using the powerful instrument, but I've been quite surprised on this.

My native language isn't english, and therefore I prefere to encode permanently subtitles on movies, before burning them to (S)VCD (I don't own a DVD burner).

I learned to use the Vsfilter + Subresync combo to encode permanently subtitles, on a scrypt like this:

AviSource("c:\movies\movie.avi")
LoadPlugin("c:\Programs\AviSynth 2.5\plugins\TextSub\VSFilter.dll")
LanczosResize(332,288)
AddBorders(10,0,10,0)
TextSub("C:\subtitles\movie_new.ssa")
ConvertToYUY2()

where
LanczosResize(332,288)
AddBorders(10,0,10,0)
have been put to resize the AVI to a 352x288 VCD but leaving 10 pixel of E/W border because my TV doesn't show a little part of border.
With a fount of Arial 16 , everything is perfect.

The problem occurs when I try to encode the subtitles on a SVCD.
Let's suppose I have the scrypt:

AviSource("c:\movies\movie.avi")
LoadPlugin("c:\Programs\AviSynth 2.5\plugins\TextSub\VSFilter.dll")
LanczosResize(448,432)
AddBorders(16,52,16,92)
TextSub("C:\subtitles\movie_new.ssa")
ConvertToYUY2()

Now it seems VSFilter doesn't support well the SVCD letterboxng , because [I chose Arial 11 as font because the screen is enlarged and 480x680 must appear 4:3 or 640x480] and , on the subtitle, the 'O' appears a litle 'squeezed', i.e. a little larger and less tall [a flipped '0'].
Note that VSFilter appears after the LanzosResize command, and written words, on movie's ending credits, are perfect.

What can I do? Is there a better way or a better Avisynth plugin?

Thanks...

shirohamada
4th November 2005, 20:28
how about textsub it before resizing.

other important thing about hardsubbing is the colours. white is hard on the eyes, so choose that doesn't. small fonts tends to halo easily on tv.
you might want to check out transparency feature. thats on .ass (advanced sub station), not sure if ssa does it.

aldaco12
9th November 2005, 14:49
SubResync, the application which comes togheter the TextSub plugin, has a 'Shadow' option (which I put at zero) and an 'Outline' option (which I leave 2 as default) to change.