..
+ Reply to Thread
Results 1 to 25 of 25
-
So, the only problem is the way the times are formated the rest would be fine?
(converting seconds -> hh:mm
s:ff doesn't sound so hard)
users currently on my ignore list: deadrats, Stears555, marcorocchini -
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:- read a file
- split it's content into lines
- check if line contains 'e="..."'
- convert the '...' from text to number
- convert the number to hh:mm:ss:ff
- replace '...' with the new 'hh:mm:ss:ff'
- save the file under a new name (= old name + _adjusted)
Cu SelurLast edited by Selur; 11th Jul 2014 at 03:42.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
just the end, gimme a second
users currently on my ignore list: deadrats, Stears555, marcorocchini -
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 05:44.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Ah mistake on my side I looked for '" s="'

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.is there an easy way to automate the process of converting the timing file into XML file.
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)Last edited by Selur; 11th Jul 2014 at 05:47.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
You could try Subtitle Edit 3.4... right click in the list view in the ocr window, and choose Export -> ...
-
Attached a small tool for conversion AYZ.xml -> AYZ_adjusted.xml which should produce the needed output.
Cu SelurLast edited by Selur; 17th Jul 2014 at 15:06.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
just out of curiosity: did XMLConverter help?
users currently on my ignore list: deadrats, Stears555, marcorocchini -
will only be used if the resolution is 720x576, why would you specify 720p if you resolution isn't 1280x720?Code:
<Format DropFrame="False" VideoFormat="576p" FrameRate="25"/>
looking at the TimedImages info:
the VideoFormat should be 576pCode:<TimedImages targetWidth="720" targetHeight="576" aspectRatio="16:9">
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 15:07.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
attached a version which when called with:
should:Code:XMLConverter.exe "eng" "23.976" "720p" "PATH TO xml file"
a. remove the path from the images
b. set VideoFormat="720p"
c. set FrameRate="23.976"
d. set the header to:
it does not reorder attributes, since XML does not require a specific order of attributes.Code:<?xml version="1.0" encoding="UTF-8"?>
Last edited by Selur; 17th Jul 2014 at 16:00.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
it might,.. will look into it
users currently on my ignore list: deadrats, Stears555, marcorocchini -
should work now
users currently on my ignore list: deadrats, Stears555, marcorocchini -
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 luckusers currently on my ignore list: deadrats, Stears555, marcorocchini -
ah, 576i and not 576p like I guessed
users currently on my ignore list: deadrats, Stears555, marcorocchini



Quote