View Full Version :
subtitles
ssjbrolly
11th January 2002, 14:20
I need to insert permanent subtitles on my (S)vcd movies from ssa files or using vobsub.
Is there someplace where can i found a guide to these plugin usage.
Thanks for u help.
A avisynth script would help.
Vitor
dinesh
11th January 2002, 15:59
I am not sure of a Guide. Try the following.
For SSA subtitling:
Use virtualdub's Subtitler filter - download the latest from www.virtualdub.org.
If you are using Virtualdub, you can follow the instructions pretty straightforward.
If you are using Avisynth, use the same filter downloaded above and use the following lines in your script and call the function .
function VD_Subtitler(clip clip, string filename)
{
LoadVirtualdubPlugin("C:\Vdub\plugins\subtitler.vdf", "_VD_Subtitler")
return clip._VD_Subtitler(1, filename)
}
Of course you need to enter the actual path of the vdf file. "filename" is the full path name of the SSA Script.
For Vobsub:
I am not aware of a way using Avisynth. For a virtualdub guide, check Doom9's Subtitle guide. It worked for me.
ARDA
11th January 2002, 23:09
LoadPlugin("C:\mpeg2dec_dll\mpeg2dec.dll")
Import("C:\avisynth\vdfilters.avs")
LoadPlugin("C:\WINNT\system32\vobsub.dll")
mpeg2source("YOUR DVD2AVI PROY.d2v")
#ALL THE PARAMETERS AND FILTERS OR RESIZE YOU NEED
#VobSub("FileName")
#VobSub("D:\YOUR CLIP DIRECTORY\VIDEO_TS\VTS_01_0")
#BE CAREFUL WHERE IT SAY VTS_01_0 MAY BE ANOTHER NUMBER ACCORDING THE ORIGINAL IFO AND VOBS
This is a very short example of part of a script to use vobsub in avysinth;before that you should read a vobsub guide, (included in Gnot guide to obtain the subtitles from the original DVD if it is the case)I hope that can help you.
gabest
12th January 2002, 21:37
For better quality subs you should put vobsub BEFORE the resizing function.
ARDA
12th January 2002, 22:27
@gabest
I thank you for the advice; but I use to add bottom borders in my clips and the subtitles on it.
I use vobsub to adjust the size,colors(most yellow or white) and transparecy to make them well visible.
I watch my clips on my monitor or in a not too big Tv screen and subtitles over the image bother me; and as the angle of vision over a small screen from 2 or 3 meters allows to watch all it in such one sight I do not feel uncomfortable to read them.
Sometimes I apply any noise filter after resizing and that; Would not affect the quality of the subtitles?.
Could explain a newbie why you consider that is better to add subtitles before resizing ?
I hope not to make you waste too much time, and thank you for your great tools.
Vitor
15th January 2002, 11:13
Hi
Thanks for your help.
After some tests the following script solve my problem.
The subtitles came after resizing because I want subtitles on
black borders.
Vitor
Ps.- my username changed to vitor
LoadPlugin("c:\Program Files\dvd2svcd\mpeg2dec\mpeg2dec.dll")
LoadVirtualdubPlugin("d:\Virtualdub\plugins\subtitler.vdf","_VD_Subtitler")
function VD_Subtitler(clip clip, string filename)
{
return clip._VD_Subtitler(1, "c:\tombraider.ssa")
}
#clip=AviSource("f:\tomb.Raider.DVDivX.Thefrail.avi")
AviSource("f:\tomb.Raider.DVDivX.Thefrail.avi")
#VD_Subtitler(clip, "c:\tombraider.ssa")
BicubicResize(352,146,0,0.75)
TemporalSmoother(3,5)
clip=AddBorders(0,47,0,47)
VD_Subtitler(clip, "c:\tombraider.ssa")
ResampleAudio(44100) # CCE seems to need this
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.