Log in

View Full Version : Converting Bluray disc subtitles


Pages : 1 [2] 3 4 5 6 7

hhp
15th May 2007, 07:57
You can demux all subtitle streams one by one...

I means there is many different language subtitles can't OCR by Supread, like Chinese. If outport to idx/sub type then we can use in player program even no ocr.

Carpo
15th May 2007, 10:40
heres the prob - i am trying to back up ghost in the shell 2 blue ray edition, back up goes fine i get all the folders i supposed to, in the bdmv folder i have 2 m2ts files when i try to get the subs from them using the commands i have seen in this thread - xport -hj 00000.m2ts 1 1 1 1 - all i get is a mpv mpa and a 40k bup file, which after looking at it is part of the jap text in the very fitst scene, i get nothing else after that.

if more info is need please tell me what and how and i will post what ever you need if i can get this to work i will have to del the back up as 34GB is a lot to leave laying about.

Thanks

manusse
15th May 2007, 21:08
@hhp,

The HD subtitles don't use the same exact format as the SD subtitles (which is what idx files are, SD subtitles). So they can't be directly converted to idx files. They must first be downsized to SD definition and their number of colors must be reduced to 3 + background. I've already done it for HD-SUP (using SubtitleCreator).

Is this what you need? Or do you want to keep the resolution and number of color as it is? If this is the case I don't think there is a software that can display them at the moment.

Cheers
Manusse

hhp
17th May 2007, 15:09
I just want to think a way to use the original subtitle when playing movie by kmplayer, any way i can use the English subtitle to resync my chinese subtitle.

manusse
17th May 2007, 15:14
@hhp,

Actually, the VobSub format (sub/idx) supported by KMPlayer is SD only. To my knowledge HD-VobSub files don't exist yet.
So if you want to use the original subtitles, you should use the method I've described (convert them to SD) using one future version of SubtitleCreator. At present only HD-DVD subtitles are supported but in the future, BD-DVD subtitles should be also.

Cheers
Manusse

Zelos
18th May 2007, 23:04
Is there anyway to extract only Audio stream ? :D

dmz01
19th May 2007, 00:45
FYI, TsRemux now supports adding SUP files. Since I don't have any software players that can check if I'm doing it correctly, I need someone to test it for me. Let me know what you find.
:thanks:

dmz

Momber
19th May 2007, 13:56
What is TsMuxer? Do you mean tsremux?

dmz01
19th May 2007, 14:47
What is TsMuxer? Do you mean tsremux?

Yes, It's been a long day. :)

Momber
20th May 2007, 03:36
Is the OCR module not properly implemented in SUPread yet or am I doing something wrong? I tried changing parameters in the options tab but no matter what, SUPread won't recognize any characters.
The bitmaps are fine btw (demuxed from BluRay with xport).

Example OCR output:

1
00:00:10,177 --> 00:00:19,811
·e····us··es·····ou···
·sc··?·c·s···-····e···e·'

2
00:01:05,857 --> 00:01:12,239
····e·c········.

zgx
21st May 2007, 13:34
Is there anyway to extract only Audio stream ? :Dxport -h file.m2ts 1 X Y

X = a number that is not a valid video stream .. like "9" for example

Y = the number of the audio stream you would like to extract.

Pelican9
21st May 2007, 17:05
Is the OCR module not properly implemented in SUPread yet or am I doing something wrong? I tried changing parameters in the options tab but no matter what, SUPread won't recognize any characters.
The bitmaps are fine btw (demuxed from BluRay with xport).

Example OCR output:

1
00:00:10,177 --> 00:00:19,811
·e····us··es·····ou···
·sc··?·c·s···-····e···e·'

2
00:01:05,857 --> 00:01:12,239
····e·c········.

Unfortunatelx some title uses font type which is quite different (e.g 't' smaller than 'i'). The other problem is the foreiign (not english) characters, which is not implemented yet. Share the stream and I'll check it.

Momber
21st May 2007, 17:20
Share the stream and I'll check it.
Already deleted. Sorry.
Found a replacement at http://subscene.com/subtitlesearch.aspx so it's no problem.

S.

changomacanaz
23rd May 2007, 23:07
I used TSReader Lite. There are also pay versions of those, but I think the Lite version is all we need right now. I guessed that the PIDs for subs begin at PID 1200. I hope I am right!


Presentation graphics streams are in PIDs 0x1200 to 0x121f, Text subtitles are in PID 0x1800. Subtitles in text format allow the viewer to change subtitle font style and position... although many content providers use bitmaps for subtitles like in the old dvd, you might not be able to find the subtitles in the stream if you only scan 0x1200 PIDs

Zelos
27th May 2007, 20:19
xport -h file.m2ts 1 X Y

X = a number that is not a valid video stream .. like "9" for example

Y = the number of the audio stream you would like to extract.


thanks ;)

hhp
29th May 2007, 14:23
I convert srt to sup via SubtitleCreater 2.2.2 and want to remux into Blu-ray m2ts file by TsRemuxer. But there's is a error when muxing, is the problem caused by SubtitleCreater becasue of the width only upto 720? or by which way can I get the Blu-ray Sup from srt subtitle?

hm10
29th May 2007, 15:40
I convert srt to sup via SubtitleCreater 2.2.2 and want to remux into Blu-ray m2ts file by TsRemuxer. But there's is a error when muxing, is the problem caused by SubtitleCreater becasue of the width only upto 720? or by which way can I get the Blu-ray Sup from srt subtitle?

I too have this problem =\

manusse
29th May 2007, 19:30
Blu-ray sup, HD-DVD sup and PAL/NTSC sup file don't use the same format. At present there is no program that allows to generate HD-SUP or BD-SUP from srt files. I think Pelican9 is preparing a version of SUPRead that will do it. (see here (http://forum.doom9.org/showthread.php?p=1006013#post1006013)).
SubtitleCreator should also later be able to do it. (You'll have to wait a few months for that).

Cheers
Manusse

hhp
31st May 2007, 14:11
Thanks for the answer of manusse. just have to wait for your working result now.

kensystem
7th June 2007, 23:21
So how hard would it to be to print the timestamp and maybe even other metadata fields to stdout, that the AVCHD cams embed in the stream? I'm interested in it mostly for educational purposes, but also it could be useful of the executable could just print these and exit so that shell/CGI/etc scripts can read the file's datetime and other info.

Rectal Prolapse
18th June 2007, 21:34
Pelican9, I have a feature request. :)

Would it be possible to have an option to only extract forced subtitles? That would be great for movies that are dubbed in english but have the occasional foreign speaker with forced subs.

Rectal Prolapse
19th June 2007, 06:51
There appears to be a bug in xport's subtitle demux feature. In some cases subtitles are being skipped over.

I've discovered this with the Face/Off Blu-ray disc (Japanese version). Around 200 lines of dialog are missing. I confirmed this appears to be a bug in xport, as PowerDVD 7.3 has no trouble displaying all of them.

Also, I realize that it may be easier to have xport output the timestamps for Forced subtitles. I have no idea if the .sup format has flags for forced subs.

Rectal Prolapse
19th June 2007, 21:55
Not so fast - there may also be a bug in supread too - xport reports a subtitle with a valid timestamp, but it is missed by supread.

I guess I will PM you now Pelican9 - this is a tough nut to crack. :)

Pelican9
20th June 2007, 10:44
Not so fast - there may also be a bug in supread too - xport reports a subtitle with a valid timestamp, but it is missed by supread.

I guess I will PM you now Pelican9 - this is a tough nut to crack. :)

Send me the .sup file.

Pelican9
20th June 2007, 20:57
SUPread makes new subtitle line if it finds an "Epoch Start" composition state. I'll try to fix it.

Edit:
I've changed the condition of the new line.

Rectal Prolapse
21st June 2007, 03:06
Great! I can't wait to try out the fix. :)

Pelican9
21st June 2007, 07:55
You can try, but I recommend to wait for the next stable version.

Rectal Prolapse
21st June 2007, 17:37
Okay, will do!

chrkou
27th June 2007, 18:20
Pelican 9 Any news, about making hd .sup subtitles with supread?

Pelican9
27th June 2007, 20:36
I've stucked at the transparency of PNG pictures.
(If somebody familiar with handling of the PNG images in delphi please help me.)
If I'll fix it, you can reauthor any HD DVD with Sonic Scenarist.
The rebuilt (by EVOdemux) EVO cannot play in powerdvd because the map files don't match with the EVOs.
(I'm looking for the specs of the map files too.)
The next task to fix the BD .sup export (because it's almost ready) and make an srt (text) to subtitle (image) routine and then you can remux any BD title with a new subtitle track (with Tsremux).
After that I'll make the HD DVD .sup export. This one is not so important, because no tool for remux a HD DVD with a new subtitle stream...

You can call me pel or pelican, the '9' is an unwanted extension here (pelican was already reserved).

Ralin
23rd July 2007, 12:29
Hi!
This thread looks kinda dead but it was the most "on-topic" I could find.
I have been trying to fix subtitles for The Rock BluRay so I can mux them to a downscaled 720p MKV.
However using OCR with Supread fails, as output is garbish.
-Kl. 0000 tr··s··r········.
-Hvem r·al·l·erje6 med·
Bri6ade·e·eral ·ra·cirY. Hummel,
mari·ei···ter¡et.je· er p· Alcatraz.

I read in some other thread that you could use SubtitleCreator to downscale the subs (size is 1920x1080 and theres too many colors if I remember correct?) to SD-Subtitles, but SubtitleCreator only manages to open the .sup-file, saving it gives me a huge errormessage ( Original SUP (http://privat.ralin.org/subtitlecreatorbits0001.BD.23.976.txt)
Exported SUP from SUPread (http://privat.ralin.org/subtitlecreatorbits0001.txt) ) Im stuck on what to do next, my ideal goal would be to get a Sub/Idx-file for muxing, but what steps would be necessary to get there?
Is doing the job manually my only option?

For info:
SUPRead.exe Version 0.45b MD5:B15C3DBCC6538A8494A8E3090CA4B5AC
SubtitleCreator.exe Version 2.2.2 MD5:2D8C4DB5F80418E5014D629DB4B9569F

Links for sup-files:
This is the original SUP from the disc (http://privat.ralin.org/bits0001.rar)
This is from export sup in Supread (http://privat.ralin.org/bits0001.BD.23.976.rar)

Rectal Prolapse
23rd July 2007, 16:31
The best method I found was to use ABBYY's FineReader 8.0 program. Tell Supread to output BMPs, then use ABBYY's FineReader for OCR. However, you need to find a way to convert FineReader's text output into SRT format...so if you know how to program in Python, .NET, or some other language then you will have great results.

BTW, I get 99% accuracy using FineReader. However, I did have to use a photoshop batch action to change the background color to black, as Supread outputs a gray color, which messes up OCR because each white letter has a black outline. Changing the background to black eliminates this.

Ralin
24th July 2007, 01:04
...

I can't code, so thats that then :p
So everyone else is sitting there manually doing the job?

ahmguy
9th August 2007, 05:12
Hi, Can any one upload sample Presentation Graphics Stream ?

:thanks:

Pelican9
9th August 2007, 16:20
Hi, Can any one upload sample Presentation Graphics Stream ?

:thanks:

You can find on my page.

Ralin
11th August 2007, 02:06
btw, I just output a stream to BMP, going to try the approach given by Rectal Prolapse above, and the subtitles.scn-sst -file contains: 1 00:01:17:07 00:01:19:08 line0001.png
The output however is BMP...
edit: Using supread 0.45b
edit2: and speaking of that file, what is it really for?

Pelican9
11th August 2007, 11:02
That file is for the Scenarist which can read PNG only.

ahmguy
11th August 2007, 13:52
You can find on my page.
Thanks for help. But, I did not able to get sample PG stream on ur page.

It will be nice if u can provide link.

Thanks,

Ahmguy.

Pelican9
11th August 2007, 15:29
ahmguy:
For example bits0001.sup

ahmguy
11th August 2007, 15:52
ahmguy:
For example bits0001.sup
Pelican9:
Thanks for help.

I think "bits0001.sup" is subtitle file and does not contain any Presentation Graphics Stream PGS.

I wish to have PGS sample stream. It will be nice if some one can provide it.

Thanks,

Ahmguy.

Addition :

May be I was wrong.

[/off] I am vary much new to subtitle and PGS. I was trying to compare stream with doc and I did not work.[/off]

Thanks,

Viral

Pelican9
11th August 2007, 16:42
You think wrong.
Why do you ask if you know everything better? :)

woah!
12th August 2007, 20:13
hi

is there any way to add a delay to a subtitles.scn-sst file?

i looked at tsremux but it seems the delay area at the bottom is grayed out for me anyways. i have succeeded in authoring the png's into SACA and the result plays fine in powerdvd showing the subs, but they are 12 secs to late to the voice. this is constant delay throughout the movie.

other than that issue tho it all seems to be ok :)

Pelican9
12th August 2007, 20:22
woah!:
Do you mean you've suceeded with subtitles.scn-sst and pngs made by SUPread?
I can create a delay option in SUPread, but I think it's meanless, I cannot imagine how that 12 sec delay occured.
Could you try another movie?

woah!
12th August 2007, 20:26
yes i used tsremux to demux the subread track from ghostrider blueray, i opened it in supread and exported to .pngs

i then imported those into sonic aca with no issues (it seems) but the start time in the sst file is 1min 06secs but to match up to the voice it needs 12sec delay? weird huh..

Pelican9
12th August 2007, 20:31
What the first time value on the SRT page in SUPread?

woah!
12th August 2007, 21:13
Blu-ray subtitle found.
------------1----------
00000002: PTS=005B7DE2 (00:01:06,622)
0000000A: PCS (13) state: 2
0000002A: WDS1 (0A) id: 0 [674,876] - [1254,1025]
00000041: PDS (142) 64 palettes
00000190: ODS (6931) 580 x 149
00006ACE: END
00006AD3: PTS=006012EE (00:01:09,959)
00006ADB: PCS (0B) state: 0
00006AF3: WDS1 (0A) id: 0 [674,876] - [1254,1025]
00006B0A: END



so the voice starts at 54secs into the movie and the subs start at 1min 06sec by my eye. the audio is completely sync with the video.

Rectal Prolapse
12th August 2007, 21:21
woah, sounds like you need to apply a PTS delay offset to the subs (the timestamps never start at zero by the way - usually there is a 10 second or more delay added for some unknown reason). xport with the PGS extraction option is able to apply the proper offset.

What is SACA? And, are you playing the subs in PowerDVD using external subs? Were they left in bitmapped format? I would like to get bitmapped subs working in other players that support DirectVobSub, but for now I have to convert to text-format. I'd rather avoid that step to save time and fixing OCR errors.

woah!
12th August 2007, 21:31
what is the cmd in xport for extracting the subs ? didnt know it could do them.

these are png files in sonic advanced content author. they are subs that can be turned on/off with the menu.

Pelican9
12th August 2007, 21:59
xport -hj something.m2ts 1 1 1 1
The last 1 is the subtitle number.

woah!
12th August 2007, 22:17
hmm what version of xport do you have? i see no j option listed?

if i use 1 0 0 1 it doesnt run on v0.96