EBU STL Subtitle Converter

Open an EBU Tech 3264 .stl file to read its header and subtitles, edit times and text, shift the timing, check for overlaps and long lines, then save SRT, WebVTT, TTML or a new STL; SRT and VTT files can be turned into STL too.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Open

    Drop an .stl, .srt or .vtt file.

  2. 2
    Header

    Check the titles, frame rate and character table.

  3. 3
    Edit

    Fix times and text and shift if needed.

  4. 4
    Check

    Clear overlaps and over-long lines.

  5. 5
    Export

    Save SRT, WebVTT, TTML or STL.

Sobre aquesta eina

The EBU STL Subtitle Converter handles the binary subtitle format that European broadcasters have exchanged since the 1990s. An STL file starts with a 1,024-byte General Subtitle Information block, the GSI, followed by 128-byte Text and Timing Information blocks, one or more for each subtitle. The converter checks the disk format code, which gives the frame rate (STL25.01 for 25 frames a second, STL30.01 for 30), and shows the header in a card: programme, episode and translated titles, disk format, character table, language code, code page, the number of subtitles and blocks, the maximum characters per row and rows, the start of programme timecode, creation date, publisher and country of origin. If the header's block count does not match the file, a warning says so. Text is decoded with the character table named in the header. Table 00 is ISO 6937 Latin, where an accent is a separate byte before the letter; the converter combines them into single characters, so "Nu" with an acute accent byte becomes Nú. Tables 01 to 04 use ISO 8859-5 Cyrillic, 8859-6 Arabic, 8859-7 Greek and 8859-8 Hebrew. Italic on and off codes become <i> tags, line break codes become new lines, teletext colour codes are read (the first colour is noted) and shown as spaces, and boxing and underline codes are dropped. Extension blocks of a long subtitle are joined, and user data and comment blocks are skipped. Timecodes in hours, minutes, seconds and frames are turned into seconds, and an option subtracts the start of programme timecode so that a file starting at 10:00:00:00 begins at zero.

Editing the cues

Each subtitle row has editable in and out times in the form 0:00:01.200, the text with <i> for italics, and a delete button, and Add subtitle appends a new one half a second after the last. Shift moves every cue by a number of seconds, forwards or back. A check lists any subtitle that ends before it starts, overlaps the one before, or has a line longer than the maximum characters a line, which starts at 40. SRT and WebVTT files can be opened in the same drop zone; other tags than italics are removed.

Output formats

- SRT: numbered cues with comma milliseconds and Windows line ends. - WebVTT: cues with the vertical position turned into a line percentage and left or right justification kept. - TTML: an XML file with each cue as a paragraph, italics as styled spans and line breaks as br tags. - EBU STL: a new file in ISO 6937, or in the ISO 8859 table the opened file used, 25 or 30 frames a second, code page 850, 40 characters and 23 rows, two line-break codes between lines, a vertical position of row 22 for one line and row 20 for two, and centred text. - Print / PDF: a table of numbers, times and text.

The sample programme

The sample is episode 3 of "Harbour Lights" from Northwind Media, with four subtitles, one in italics and two with Spanish and French accents. Saved as STL it makes a 1,536-byte file: the 1,024-byte header plus four 128-byte blocks. STL stores time in frames of 40 milliseconds at 25 fps, so when the file is read back, 4.1 seconds becomes 4.08, 9.9 becomes 9.92 and 10.5 becomes 10.52, while 1.2, 3.8 and 7.4 stay as they are. The accented words survive the round trip, and in WebVTT the one-line cues get line:95% and the two-line cue line:86%.

Limits

Colours, boxing and double height are read but not carried into SRT, VTT or TTML, and TTML always uses English as its language tag. When an STL with character table 01 to 04 is saved again, the text is written through the same ISO 8859 table, so Cyrillic, Greek, Arabic and Hebrew survive; a character the table lacks becomes a question mark. Header text such as titles and the publisher is written in Latin-1. Teletext rows and positions are only approximated in WebVTT. Check the result in your playout or subtitling system before delivery. This is not legal advice about broadcast delivery or accessibility requirements.

Exemple resolt

Harbour Lights, episode 3: 4 subtitles, STL file of 1,536 bytes (1,024 + 4 x 128); after the round trip 4.1 s reads 4.08 s, 9.9 s reads 9.92 s and 10.5 s reads 10.52 s at 25 fps.

En resum

Preguntes freqüents

Which STL files can it read?

EBU Tech 3264 files with a disk format code such as STL25.01 or STL30.01 and character table 00 (ISO 6937 Latin) or 01 to 04 (Cyrillic, Arabic, Greek and Hebrew). Files shorter than the 1,024-byte header are refused.

Are italics kept?

Yes. Italic codes in the STL become <i> tags in the editor, SRT and WebVTT, and styled spans in TTML. When writing STL, <i> and </i> become the italic on and off codes again.

Why did my times change by a few milliseconds?

STL stores timecodes in whole frames, 40 milliseconds each at 25 fps. Times between frames are rounded to the nearest frame when the file is written, so 4.1 seconds becomes 4.08.

What does subtract TCP do?

The start of programme timecode (TCP) in the header often says 10:00:00:00. Ticking the option before opening the file subtracts it, so the first subtitle starts near zero, as SRT and web players expect.

Can I turn an SRT file into STL?

Yes. Open the .srt or .vtt file, choose 25 or 30 fps and save EBU STL. Latin text with accents is written in ISO 6937, and two-line subtitles are placed on rows 20 and 22.

Is the subtitle file uploaded?

No. The file is read, edited and converted inside this browser tab, and every export is saved on your device.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes