Log in

View Full Version : Converting Bluray disc subtitles


Pages : 1 2 3 4 5 6 [7]

rack04
24th November 2008, 15:15
Does anyone have a sample m2ts or evo with subtitles that I could experiment with? Here (ftp://mplayerhq.hu/MPlayer/samples/evob/Subtitle-sample.evo) is one that I initially tested but it's really to short to get any good practice with.

GZZ
24th November 2008, 15:47
You can create your own bluray subtitle in TSmuxer from at SRT file or if you have a HD-DVD/Bluray you can demux a subtitle from.

Zorg
29th November 2008, 11:54
Is it possible to add to TSmuxer the bold and italics processing in srt files? I'd guess it's not a big problem.

EDIT: Apparently it was not :) I found a version of TSmuxer 1.8.8 which is able to do this! (unofficial?I thought there was 1.8.4b so far...)
http://www.videohelp.com/download/tsMuxeR_1.8.8b.zip

wangchuanyan1982
13th January 2009, 09:28
I'm wondering if this is possible yet.

I've tried ripping the data from a bluray disc's .m2ts file. I believe that PIDs starting from 1200 are the subtitle streams, but I have no idea what to do with them.

Anyone have any information on how to convert them to SRTs? Or where I can find the format specifications for them?

i am doing the same work ,could you support some info for me ,thank you

B4tm4n
13th January 2009, 19:27
i am doing the same work ,could you support some info for me ,thank you

http://www.videohelp.com/tools/SUPread

I think supread is what your after.

Rectal Prolapse
14th January 2009, 17:35
wang, don't worry about that - supread or suprip will work for you.

wangchuanyan1982
15th January 2009, 08:01
wang, don't worry about that - supread or suprip will work for you.

i want to know the format of pgs ,
15 85 6e 0 0 0 c0 0 85 67 3 5f 0 95 0 92 ff 1e 32 0 c3 4b ff 0 0 0
the above ii think is first line of the sub bitmap,how can i translter it ,
15 is identifier
85 6e is the size of section
0 0 ls one line end
but how ls the RLE in this ,i can not guess it ,could you help me ?thank you very much!

wangchuanyan1982
15th January 2009, 08:03
More:

00 03 = The next 3 pixels use color index 0.

00 01 = The next pixel is color index 0.

So, basically, 00 is reserved as an RLE command. To get the color 0 you need to do the above.

Given the above, here are some examples:

00 47 80 00 00 00 42 0F 0E 14 00 84 FE 14 0E 00 0F

Breaks down into:

00 47 80 = 1920 pixels of color 0.
00 00 = end of line, go to the beginning of the next line.
00 42 0F = 527 pixels of color 0
0E = pixel at x location 528 is color 14.
14 = pixel at x location 529 is color 20.
00 84 FE = the next 4 pixels are of color 254.
14 = the next pixel is color 20.
0E = the next pixel is color 14.
00 0F = the next 15 pixels are color 15.

This will go on until 1920 pixels for the line have been specified, and shall end in a 00 00 pair.

Now, not all subpictures will be 1920 pixels across - this depends on the header before the bitmap info.
16 0 13 7 80 4 38 40 0 0 80 0 0 1 0 0 0 0 2 11 3 6c

17 0 a 1 0 2 11 3 6c 3 5f 0 95

14 1 42 0 0 1 da 80 80 ff .......3f 10 80 80 a7 40 6e 80 80 ff

15 85 6e 0 0 0 c0 0 85 67 3 5f 0 95 0 92 ff 1e 32 0 c3 4b ff 0 0 0

what about this ?some different?

Rectal Prolapse
16th January 2009, 22:14
Oh - you didn't clarify you wanted to know the binary format of a .sup file.

Unfortunately you will need to purchase the full Blu-ray specification - the information I posted is incomplete!

You could look at the MPC-HC (Media Player Classic - Home Cinema) source code for how to decode the PG streams though. Look for the thread here on doom9 about that player:

http://forum.doom9.org/showthread.php?t=123537

wangchuanyan1982
19th January 2009, 04:13
Oh - you didn't clarify you wanted to know the binary format of a .sup file.

Unfortunately you will need to purchase the full Blu-ray specification - the information I posted is incomplete!

You could look at the MPC-HC (Media Player Classic - Home Cinema) source code for how to decode the PG streams though. Look for the thread here on doom9 about that player:

http://forum.doom9.org/showthread.php?t=123537

thank you

Rectal Prolapse
8th March 2012, 05:30
New tool for Blu-ray sup files:

http://forum.doom9.org/showthread.php?t=164370

Nibbio
25th October 2016, 12:49
I need the same answers. Thank you for the topic, guys.