View Full Version : TextSub subs too large by default
Betsy25
27th October 2011, 10:39
Hi,
I encode all my DVD's with Dutch subs hardcode, therefor i use TextSub in MeGUI's .avs creator.
It's adding these with the following lines at the end of the .avs
LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\VSFilter.dll")
TextSub("I:\Other DVD 2\Rundskop DVDShrink\VIDEO_TS\VTS_01_1.Dutch.srt", 1)
Unfortunately TextSub creates all lines almost the full width of the video, which is way too large to be easily readible.
Isn't there a way (preferably in the .avs) too make the subs fill about 3/4 of the line by default, please ?
TheSkiller
27th October 2011, 10:53
The default font settings in VSfilter (Textsub) can't be altered by the user. I see you are feeding it with SRT subtitles. Well, SRT does not contain any "visual styles" required to draw the subtitles on the video the way you like it. So my suggestion is download Aegisub (http://www.aegisub.org), use it to open your SRT subtitle, click on the styles button, click on default and change the font size, font, color, whatever you like. Save. Now your subtitles are in ASS format. This whole procedure is just a matter of a minute, don't worry, it's worth it.
Then use Textsub("...VTS_01_1.Dutch.ass")
If you assign a nice subtitle font it will look a lot nicer as well compared to the defaults for SRT.
Betsy25
27th October 2011, 11:05
Thanks TheSkiller,
After following your method, and saving the file to .ass,
and in the Style Manager, it set ScaleW% & ScaleY% to 75,
but somehow the default assumes every file is 640x480 by default ?:confused:
the top of the file looks like this :
[Script Info]
; Script generated by Aegisub 2.1.8
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 640
PlayResY: 480
ScaledBorderAndShadow: yes
Last Style Storage: Default
Video Aspect Ratio: 0
Video Zoom: 6
Video Position: 0
I really hope the VSFilter author will some day, make his filter a little bit more customizable.
sneaker_ger
27th October 2011, 11:19
You might also want to take a look at AssRender (http://forum.doom9.org/showthread.php?t=148926) (C-Plugin, i.e. LoadCPlugin("assrender.dll")), which can basically do the same things as vsfilter, but in addition allows you to choose font and scaling for srt in AviSynth, without converting to ass first. TheSkiller's solution is more powerful, naturally.
TheSkiller
27th October 2011, 11:32
Yes, it assumes 640x480. You can change it to the resolution your video has at the point where you intend to use Textsub() in your AVS script. There's also a button for that in Aegisub.
To make the formatting of the subtitles easier you can also try to load your video into Aegisub and have a live preview. If Aegisub fails to open your video by itself then make a simple AVS with Directshowsource("yoursource.file") and open that.
It would also recommend to use the font size control on the left to alter the size not the font stretching controls. Those are required for anamorphic video to have the subtitles look normal and not stretched.
Groucho2004
27th October 2011, 12:44
I really hope the VSFilter author will some day, make his filter a little bit more customizable.
It is customizable. You just have to provide a style sheet along with the .srt file. See here for details:
http://forum.doom9.org/showthread.php?t=125626
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.