View Full Version : Using subtitles in AVS with definable font/size
Vlcek
4th January 2009, 20:06
Is there any plugin for AVS beside VSFILTER, which can add subtitles and is able to set font/size/placement in the same script?
Cant find any :(
IanB
4th January 2009, 22:14
The internal SubTitle() filter allows you to set font/size/placement, but it is for writing arbitrary text, not a subtitle stream as VSFilter does. There is also a SubTitleEx() plugin available that reads the text from an external file, but again not a subtitle stream.
IIRC subtitle streams are graphic not textual, so the font/size is already implicit in the stream. There are application that can 'OCR' the stream back into a source document so you can rebuild a stream with a font of your choice. Have a read in the Subtitle threads section.
Vlcek
4th January 2009, 23:26
Already did, my problem is that I have to work with big sets of video files and apropriate subtitles in text SRT files. And the fastest way how to handle them is batchgenerated script for AVS. Problem is, that default font for vsfilter is quite big and wide, so it usually breaks to more lines than two.
I can recode video with third party app, which hardcode titles to video, but I want to avoid quality loss before converting to MPG for DVD. So AVS script is best way, only problem is with used font :(
IanB
5th January 2009, 00:39
:confused: VSFilter renders the font that is described in the SRT files. So edit the SRT files. :confused:
kemuri-_9
5th January 2009, 02:37
iirc, SRT doesn't contain font information and uses the default font specified by vsfilter:
Arial (Bold?), white foreground, black background and shadow.
if you converted them to SSA or ASS with aegisub or some similar program you can specify the styling much easier.
~bT~
6th January 2009, 03:06
http://avisynth.org.ru/docs/english/externalfilters/vsfilter.htm
TheFluff
6th January 2009, 05:27
iirc, SRT doesn't contain font information
correct, srt is just timing+text+some very simple formatting tags (italics, bold, underline and font color; choice of typeface and font size is left to the renderer)
the appropriate solution is to write a script to batch convert the .srt's to .ass files, adding appropriate font style information.
IanB
6th January 2009, 07:09
@Vlcek,To override the default style you can use a second file named e.g. "your_file.srt.style" (the filename + ".style") which must be in SSA or ASS syntax and contains only formatting information (makes only sense when NOT using SSA/ASS).Looks like this is what you want.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.