VideoHelp Forum
+ Reply to Thread
Results 1 to 14 of 14
Thread
  1. Member
    Join Date
    Apr 2023
    Location
    Indonesia
    Search Comp PM
    Hi i download subtitle from xml and convert to .srt but when i play the video the subtitle position got wrong

    example:
    Hi, How are you
    I`m Fine

    become:

    I`m Fine
    Hi, How are you

    do you know how to fix it without change it one by one?
    Image Attached Thumbnails Click image for larger version

Name:	Screenshot (84).png
Views:	16
Size:	108.2 KB
ID:	70456  

    Click image for larger version

Name:	Screenshot (85).png
Views:	10
Size:	1.62 MB
ID:	70457  

    Quote Quote  
  2. SRT doesn't really support explicit positioning of subs. You're problem is probably a result of overlapping (in time) subs and the way particular SRT renders deal with them. Some subtitle editors let you automatically fix overlapping subs, set minimum time between subs, max line length, etc. You'll have to analyze what causes your problem and try those fixes.
    Quote Quote  
  3. Retry with subtitleedit.
    Load your xml, set save as srt (in the menue).
    Done.
    Quote Quote  
  4. Member
    Join Date
    Apr 2023
    Location
    Indonesia
    Search Comp PM
    no changes
    Quote Quote  
  5. Originally Posted by Bobiaj View Post
    no changes
    strange, tried it with several multiline xml subtitles and it worked with all of them.
    Quote Quote  
  6. Upload the xml and srt subs.
    Quote Quote  
  7. Member
    Join Date
    Apr 2023
    Location
    Indonesia
    Search Comp PM
    here
    Image Attached Files
    • File Type: xml 1.xml (75.4 KB, 32 views)
    • File Type: srt 1.srt (41.6 KB, 34 views)
    Quote Quote  
  8. The xml timings are wrong.
    Quote Quote  
  9. I don't think the xml timings are wrong. But the way the renderer stacks subs that occur at the same time are the opposite of the way the program that converted them to SRT stacked them.

    xml
    Code:
    <p end="00:03:22:24" xml:id="p55" begin="00:03:19:24">Qué bueno, ya</p>
    <p end="00:03:22:24" xml:id="p56" begin="00:03:19:24">le tocó regañada.</p>
    SRT:
    Code:
    36
    00:03:20,000 --> 00:03:23,000
    le tocó regañada.
    Qué bueno, ya
    So this appears to be a problem with the conversion program.
    Quote Quote  
  10. SubtitleEdit /convert 1.xml srt


    the above produces


    56
    00:03:19,999 --> 00:03:22,999
    Qué bueno, ya


    57
    00:03:19,999 --> 00:03:22,999
    le tocó regañada.



    This is the correct order. The id offset of 1 is because the .xml starts at p0 whilst the .srt starts at 1.


    The error clearly occurs, as jagabo pointed out, with the conversion program.
    Quote Quote  
  11. Member
    Join Date
    Apr 2023
    Location
    Indonesia
    Search Comp PM
    Could u explain how to fix the p0 set to p1?
    Or anything to make the issue fix?
    I’m not the expert to do this i’m noob btw
    Quote Quote  
  12. Could u explain how to fix the p0 set to p1?
    I have no idea why you would want to do that.
    Guess you can use a text editor or, if you are capable, use awk.

    Isn't
    SubtitleEdit /convert 1.xml srt
    what you are trying to achieve?
    Last edited by jack_666; 23rd Apr 2023 at 16:11.
    Quote Quote  
  13. please have a look at the attached .srt file
    Image Attached Files
    • File Type: srt 1.srt (52.0 KB, 30 views)
    Quote Quote  
  14. Member
    Join Date
    Apr 2023
    Location
    Indonesia
    Search Comp PM
    Finally i found it, how dumb i am.
    https://youtu.be/UAfKFWqLCOI

    Subtitledit > tools > merge line with same time codes > ok > save srt
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!