VideoHelp Forum
+ Reply to Thread
Results 1 to 25 of 25
Thread
  1. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Last edited by MounaLafi; 19th Jul 2017 at 04:59.
    Quote Quote  
  2. So, the only problem is the way the times are formated the rest would be fine?
    (converting seconds -> hh:mms:ff doesn't sound so hard)
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  3. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Last edited by MounaLafi; 19th Jul 2017 at 05:00.
    Quote Quote  
  4. Wrote a small quick&dirty console tool to convert such e="time in seconds" to e="hh:mm:ss:ff".
    Attached source code and 64bit Windows binary.

    What the program does is:
    1. read a file
    2. split it's content into lines
    3. check if line contains 'e="..."'
    4. convert the '...' from text to number
    5. convert the number to hh:mm:ss:ff
    6. replace '...' with the new 'hh:mm:ss:ff'
    7. save the file under a new name (= old name + _adjusted)

    Cu Selur
    Last edited by Selur; 11th Jul 2014 at 04:42.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Last edited by MounaLafi; 19th Jul 2017 at 05:00.
    Quote Quote  
  6. just the end, gimme a second
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  7. attached a new version which should replace both e="..." and s="..." (didn't test it, but it should work)
    Last edited by Selur; 11th Jul 2014 at 06:44.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  8. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Image Attached Thumbnails Click image for larger version

Name:	Output.png
Views:	511
Size:	66.3 KB
ID:	26324  

    Image Attached Files
    Last edited by MounaLafi; 19th Jul 2017 at 05:02.
    Quote Quote  
  9. Ah mistake on my side I looked for '" s="'

    is there an easy way to automate the process of converting the timing file into XML file.
    Don't know any tool which does the conversion, so you would have to write one. Shouldn't be hard if you know how to do some programming.
    All in all it would require to:
    a. convert the input to proper xml (remove html escaping)
    b. read the xml into a dom structure
    c. parse the dom structure
    d. create a new dom structure which looks like the one you want
    e. write the output to a file.
    Probably one or may be two hours of work, assuming the programming language used offers some xml helper tools. If one would want to do it with in a bash or dos script it would probably take quite some time.

    Cu Selur

    Ps.: may be BDSup2Sub++ supports the format your sat box uses. (sadly it's not actively developed anymore otherwise it should have been easy for the author to add support for it)
    Image Attached Files
    Last edited by Selur; 11th Jul 2014 at 06:47.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  10. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Image Attached Files
    Last edited by MounaLafi; 19th Jul 2017 at 05:02.
    Quote Quote  
  11. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Image Attached Thumbnails Click image for larger version

Name:	Error.png
Views:	357
Size:	69.4 KB
ID:	26340  

    Image Attached Files
    Last edited by MounaLafi; 19th Jul 2017 at 05:02.
    Quote Quote  
  12. Member
    Join Date
    Jul 2011
    Location
    Denmark
    Search Comp PM
    Originally Posted by MounaLafi View Post
    1. Is there any program/utility capable to convert the attached XML + PNG files into idx/sub file.

    2. Is there any program/utility capable to convert the attached XML file into Sony BDN XML file which BDSup2Sub can accept.
    You could try Subtitle Edit 3.4... right click in the list view in the ocr window, and choose Export -> ...
    Quote Quote  
  13. Attached a small tool for conversion AYZ.xml -> AYZ_adjusted.xml which should produce the needed output.

    Cu Selur
    Last edited by Selur; 17th Jul 2014 at 16:06.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  14. just out of curiosity: did XMLConverter help?
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  15. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Last edited by MounaLafi; 19th Jul 2017 at 05:02.
    Quote Quote  
  16. Code:
     <Format DropFrame="False" VideoFormat="576p" FrameRate="25"/>
    will only be used if the resolution is 720x576, why would you specify 720p if you resolution isn't 1280x720?
    looking at the TimedImages info:
    Code:
    <TimedImages targetWidth="720" targetHeight="576" aspectRatio="16:9">
    the VideoFormat should be 576p


    About the order: xml documents normally have no order for their attributes -> order of attributes should not matter.
    About the image: Will fix that.
    Last edited by Selur; 17th Jul 2014 at 16:07.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  17. attached a version which when called with:
    Code:
    XMLConverter.exe "eng" "23.976" "720p" "PATH TO xml file"
    should:
    a. remove the path from the images
    b. set VideoFormat="720p"
    c. set FrameRate="23.976"
    d. set the header to:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    it does not reorder attributes, since XML does not require a specific order of attributes.
    Last edited by Selur; 17th Jul 2014 at 17:00.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  18. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Last edited by MounaLafi; 19th Jul 2017 at 05:03.
    Quote Quote  
  19. it might,.. will look into it
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  20. should work now
    Image Attached Files
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  21. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Last edited by MounaLafi; 19th Jul 2017 at 05:03.
    Quote Quote  
  22. my guess the problem is that the subtitles belong to SD content (according to your input xml) and you flag them as hd content.
    -> much luck
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  23. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Last edited by MounaLafi; 19th Jul 2017 at 05:03.
    Quote Quote  
  24. Member
    Join Date
    Dec 2008
    Location
    Switzerland
    Search Comp PM
    ..
    Last edited by MounaLafi; 19th Jul 2017 at 05:03.
    Quote Quote  
  25. ah, 576i and not 576p like I guessed
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!