View Full Version : srt style formatting
chipzoller
29th June 2006, 02:56
Does anyone know if there are any documents specifying SRT formatting and all the layout options? Or is the SRT format just a file format for the most basic subtitle parameters?
ai4spam
29th June 2006, 13:06
SRT only supports font color and style (bold, italic, underline). There is also support for positioning, but most players just ignore it, or don't work with it.
chipzoller
29th June 2006, 14:31
The positioning in particular...where can I find more info. about positioning in SRT?
ai4spam
30th June 2006, 03:50
It's of the form:
00:03:05,042 --> 00:03:07,520 X1:000 X2:000 Y1:000 Y2:000
The X1,Y1,X2,Y2 are (probably) the coordinates of the top-left and bottom-right corners of the bounding rectangle of the original subtitle.
chipzoller
30th June 2006, 03:56
Do you know of any documents that have all the specifics on what this format has to offer?
ai4spam
30th June 2006, 13:42
No. But the point was... I know of no player that actually supports these (many may actually not work at all, instead of ignoring the position information), and it doesn't make sense without additional info such as font size (which may be supported in something like <Font Name="Tahoma" Color="FFFFFF">...<Font>, but nobody knows), since players can decide the size of the font themselves.
So... unless you're making your own player to support these, why bother? On the other hand, if you are, you can be literally setting the new standard, and that's perfectly ok. I suppose others will follow, if it's a good standard. In this case, I'd advise you to keep it simple.
check
30th June 2006, 14:36
If you need positioning capabilities I would recommend you use a different subtitle format, such as SSA/ASS. There's some useful summaries of formats here: http://www.cccp-project.net/wiki/index.php?title=Video_File#Common_Subtitle_Formats
gameplaya15143
5th July 2006, 21:13
Subtit1400 (the subtitle filter for oggds) can handle font size tags in the same way that html does.
3=normal
2=smaller
7=huge
But, IIRC, vsfilter takes them to represent font size in points, so size=2 would give you a 2pt font :rolleyes:
ai4spam listed all that srt currently officially supports.
I think it only supports one color per line though. I don't think you are allowed to have each word a different color.
I don't think that vsfilter even understands the position tags, and will just ignore them.
Unofficially, I would assume it would support most basic html formatting. Use it at your own risk though :sly: I recommend against it, as it adds potential for problems down the road.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.