Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

there is some formatting in srt subtitle files. for example

<i> blah blah blah </i> 

for italic or

<u> blah blah blah </u>

for underline or

<font color="color name"> ... </font>

for colorful text.

there is a code for moving the text up the screen instead of down. what is that code?

share|improve this question
up vote 3 down vote accepted

You must write {\an} before your text.

{\a10} for center of screen, {\a6} for center above, {\a5} for left above, {\a9} for left center, etc...

(if it doesn't work, copy my writing to your subtitle)

share|improve this answer
that's correct. I should also do the following to enable KM player to support that function: Preferences -> Subtitle processing -> Multi-sub/etc -> Advanced tab, enable the external subtitles module for .srt files. – living being Jul 18 '14 at 14:06
At least with VLC, the anchor tag is {\anX} (and not just '{\aX}') where X is 1,2,... and it counts from the bottom left to the top right, so {\an8} is top center, {\an1} is bottom left, etc.. The tags do not seem to be part of the srt format: There is also the positioning tags as mentioned by @Zerobinary99, though those don't seem to work in VLC. – David Ljung Madison Jun 16 '15 at 15:11

As far as I know there is no such setting in the .srt format (this is confirmed by this page), that will depend on the program you use to view your videos. For example, in the settings of vlc you have "Force subtitle position":

enter image description here

share|improve this answer

There is an extended SRT format specification. The link to visualsubsync merely confirms that this very program only supports the standard spec. It also implies that there indeed is support for coordinations and there is:

You need to place coordinates for the pixels behind the time code like that:

00:10:30,796 --> 00:10:33,799 X1:117 X2:619 Y1:042 Y2:428
<font color="#ffffff">Any kind of text</font>

The example was taken from the following link:

Your player, encoder, filter etc. might not support the extended SRT specs, though.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .