SRT-Untertitel - Problem mit Zeilenumbrüchen

4780
toms

Ich habe manuell eine SRT-Datei über textEdit erstellt. Ich habe alle richtigen Formatierungen verwendet und es hat auf VLC gut funktioniert.

20 00:04:23,020 --> 00:04:24,230 - Nah, I'm not hungry.  21 00:04:24,230 --> 00:04:26,230 - How was the meeting?  22 00:04:26,230 --> 00:04:29,050 - Yeh, fine. 

Alles ist soweit cool. Jetzt fiel mir auf, dass einige Zeilen in zwei Zeilen aufgeteilt werden sollten und einen Zeilenumbruch erfordern würden. Aufgrund der Formatierung und Analyse von SRT-Dateien sollte ich einfach die Eingabetaste drücken können. Aber VLC scheint diese Zeilen einfach zu überspringen, als ob sie nicht existieren würden.

17 00:04:13,070 --> 00:04:14,150 Hi.  18 00:04:18,220 --> 00:04:21,040 Hey. -Hey dad.  19 00:04:21,220 --> 00:04:23,020 Have you eaten yet? 

Zeile 18 wird nicht angezeigt, solange dort ein Zeilenumbruch vorliegt.

Wie gesagt, ich arbeite an textEdit.

Kann jemand ein Licht auf dieses werfen?

1

1 Antwort auf die Frage

0
rboy

Couple of things to note:

First, the number of lines displayed depend upon the application, there is not standard for the actual number of lines displayed. You can get the specification details here: SRT Specifications

Second, parsing the line break depends on the application. Some applications want CFLR (dos style, carriage return + line feed) and some only LF (unix style Line feed only). You need to see what VLC needs, try changing the line break to CRLF and LF and see if that fixes your issue. I'm not sure of TextEdit support both styles of line break, VIM or GVIM does.