View Single Post
Old 26th September 2009, 13:46   #36  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,251
textST

I wrote a small tool to process .pes files extracted with tsRemux or directly the original m2ts files with text subtitles...

Here is what came out of yours:

Code:
Detected 41 presentation marks:

001 00:02:29,538 00:02:33,000 -> What are you doing here?
002 00:02:51,227 00:02:53,771 -> Who has touched you?!
003 00:03:00,778 00:03:01,862 -> Imhotep?!
...
039 01:49:21,986 01:49:23,446 -> Give me that book!!
040 01:49:37,668 01:49:39,796 -> Now you die.
041 01:50:30,471 01:50:32,723 -> Now it's your turn.
Code:
1
00:02:29,538 --> 00:02:33,000
What are you doing here?

2
00:02:51,227 --> 00:02:53,771
Who has touched you?!

3
00:03:00,778 --> 00:03:01,862
Imhotep?!

...

39
01:49:21,986 --> 01:49:23,446
Give me that book!!

40
01:49:37,668 --> 01:49:39,796
Now you die.

41
01:50:30,471 --> 01:50:32,723
Now it's your turn.
I haven't used the presentation times from the playlist file, only those in the textST stream, but if you can compare with the movie - let me know if they fit at all.

textST (CLI) (630KB) self extractable 7z archive (contains calclib.dll and textST.exe), or if you're using multiAVCHD then you can download just the executable textST.exe (80kb) and put it in your multiAVCHD folder.

Drag-drop your .m2ts or .pes file to textST.exe - it will create a .srt file, or if using command prompt:

textST in_file [out_file]

* in_file must be in .m2ts or .pes format, containing only textST text subtitle stream (one per file)
* out_file if not set, output will be written to in_file.srt

It does quite basic parsing, ignoring styles, fonts, positions and other information, extracting only the text and timestamps.

Dean
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP

Last edited by deank; 26th September 2009 at 19:30.
deank is offline   Reply With Quote