Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
27th January 2016, 03:14 | #81 | Link |
Spielberger
Join Date: Feb 2005
Posts: 838
|
After a test encode with Blu-print
PaletteID 254 is a quirk in Scenarist Number of dialog presentation segments is removed from elementary stream by mkvmerge (from The Mummy 00012.m2ts eng textST) Last edited by bigotti5; 27th January 2016 at 03:18. |
27th January 2016, 10:18 | #82 | Link |
Registered User
Join Date: Oct 2002
Posts: 72
|
Ah, perfect. This explains it. Still odd that mkvextract removes this.
Anyways, another question: I did some testing yesterday and found that the timestamps I decoded from the stream do not match with the movie. Do you have any guidance how the "dialog_start_time" needs to be interpreted. Currently, I devide the 5 byte number by 90 to get the amount of milliseconds. Unfortunately, this does not seem to work. Is the factor wrong or is there any sort of delay?
__________________
CU DVD |
27th January 2016, 11:50 | #83 | Link |
Spielberger
Join Date: Feb 2005
Posts: 838
|
You have to remove muxing delay from PTS
In corresponding mpls you can find "in_time" - this is the muxing delay Look for first "4D 32 54 53" (M2TS), ignore 3 bytes, next 4 bytes are "in_time". (Should be always from byteposition 0x52) Divide by 45 und you have the value in ms. In case of The Mummy e.g. 11.650 Common delays are 00:10:00.000 - Scenarist 00:00:11.650 - Blu-Print 00:00:02.000 - Panasonic |
31st January 2016, 02:55 | #84 | Link |
Registered User
Join Date: Oct 2002
Posts: 72
|
@ bigotti5: Thanks, this helps!
I added some code to parse all MPLS files from a Disc and list the in_time delays so they can be used to correct the offsets. I am almost done with my code. I need to add some small features/fixes, but for the most part it seems to work now. The ASS/SSA files it produces work quite nicely and they even use the correct formatting/position from the TextST subtitles now (taken from The Mummy Returns): Original BD Image - Example 1 Original BD Image - Example 2 Original BD Image - Example 3 ASS representation in the MKV file - Example 1 ASS representation in the MKV file - Example 2 ASS representation in the MKV file - Example 3
__________________
CU DVD |
1st February 2016, 18:24 | #85 | Link |
Registered User
Join Date: Oct 2002
Posts: 72
|
TextST Parser and Converter supporting SRT and ASS output
Hello,
I am now done with implementing a more complete version which also includes export to Advanced SubStation Alpha Subtitles (ASS) as well as simple SubRip Text (SRT) support. Although the feature set is far from complete, it worked quite well for my "The Mummy" and "The Mummy Returns" Blu-Rays. Timing and formating seem fine and on "The Mummy Returns" it even positions the subtitle on the top/bottom of the screen depending on its assigned screen position in the original TextST file. (For some screenshots of the result, see previous post) I thought I share my code and some instructions how to use it so that somebody willing to use or even extend on it can give it a shot and does not need to start from scratch. Here is how it works:
Please note that the code does not come with any form of warranty! Again, special thanks to bigotti5 for providing his valuable input!
__________________
CU DVD Last edited by DVD; 1st February 2016 at 18:35. |
1st February 2016, 23:34 | #86 | Link |
Spielberger
Join Date: Feb 2005
Posts: 838
|
Attachment approval takes days so cant test your prog now.
I made a small BD to test. Contains 3 StyleRegions and many inline styles. This rar file contains BD folder and a tes file (number of dialog presentations removed). |
1st February 2016, 23:41 | #87 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Not so long ago, a moderator suggested that fastest way to get an attachment approved was to 'report' your own post.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
2nd February 2016, 00:10 | #88 | Link | |
Registered User
Join Date: Oct 2002
Posts: 72
|
Quote:
__________________
CU DVD |
|
|
|