View Single Post
  #14  
Old 28.08.2015, 17:17
maxmaster
Guest
 
Posts: n/a
Default

Die Timecodes sind jetzt grundsätzlich richtig.
Aber die Anpassung ist zu aggressiv, wenn die Timecodes im XML "falsch" sind, also erst bei 10:00:00:xx anfangen.

Z.B.
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

Im XML:
Code:
<tt:body>
<tt:div style="defaultStyle">
  <tt:p xml:id="sub1" style="textCenter" region="bottom" begin="10:00:03.720" end="10:00:06.320">
    <tt:span style="textGreen">(Gysi:)</tt:span>
    <tt:br/>
    <tt:span style="textGreen">Herr Schäuble, Sie sind dabei,</tt:span>
  </tt:p>
  <tt:p xml:id="sub2" style="textCenter" region="bottom" begin="10:00:06.440" end="10:00:08.720">
    <tt:span style="textGreen">die europäische Idee zu zerstören.</tt:span>
  </tt:p>
Im SRT:
Code:
1
00:00:00,000 --> 00:00:02,600
<font color=#00ff00>(Gysi:)</font>
<font color=#00ff00>Herr Schäuble, Sie sind dabei,</font>

2
00:00:02,720 --> 00:00:05,000
<font color=#00ff00>die europäische Idee zu zerstören.</font>
Abgesehen vom 10-Stunden-Offset setzen die Untertitel im XML 3,72 Sekunden später ein als im SRT, wenn man das SRT mit dem heruntergeladenen MP4 abspielt.



Ähnliches hier:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

XML:
Code:
<tt:body>
  <tt:div style="defaultStyle">
    <tt:p xml:id="sub1" style="textCenter" region="bottom" begin="09:59:58.000" end="10:00:00.560">
      <tt:span style="textCyan">Herzlich willkommen</tt:span>
      <tt:br/>
      <tt:span style="textCyan">zu unserer Sendung.</tt:span>
    </tt:p>
    <tt:p xml:id="sub2" style="textCenter" region="bottom" begin="10:00:01.280" end="10:00:02.960">
      <tt:span style="textCyan">Nach einem heißen Sommer.</tt:span>
    </tt:p>
SRT:
Code:
1
00:00:00,000 --> 00:00:02,560
<font color=#00ffff>Herzlich willkommen</font>
<font color=#00ffff>zu unserer Sendung.</font>

2
00:00:03,280 --> 00:00:04,960
<font color=#00ffff>Nach einem heißen Sommer.</font>
Hier sind die SRT-Untertitel zwei Sekunden hinterher.

Wenn man von den Untertiteln in dem Beispiel 10 Stunden vom Timecode abzieht, hätte man beim ersten Untertitel einen negativen Timecode. Hier müsste man dann die Startzeit auf 00:00 setzen.

Aufgrund der Beispiele müsste es reichen, von den Timecodes nur volle Stunden abzuziehen. Wieviele, müsste man am Timecode des zweiten oder dritten Untertitel erkennen können.

Last edited by maxmaster; 28.08.2015 at 17:19.
Reply With Quote