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.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > IFO/VOB Editors
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th November 2004, 01:02   #1  |  Link
M!ro
Registered User
 
Join Date: Sep 2003
Location: Croatia
Posts: 34
subtitle question

just a quick one. if i have
[71 00 00 0E 00 45 00 00] Set gprm(14) =(mov) 69
and then
[41 00 00 00 8E 00 00 00] (SetSTN) Set Sub-picture stream = gprm(14)

what exactly do i get in the end? i mean, which subtitle number this selects? according to dvd shrink list, this would select subtitle #6. so when using SetSTN with gprm, gprms are starting from 64 for first subtitle stream? can someone confirm this?
M!ro is offline   Reply With Quote
Old 10th November 2004, 01:20   #2  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
Re: subtitle question

Quote:
Originally posted by M!ro

[71 00 00 0E 00 45 00 00] Set gprm(14) =(mov) 69
gprm(14) will be assigned the decimal value of 69

Quote:
[41 00 00 00 8E 00 00 00] (SetSTN) Set Sub-picture stream = gprm(14)
sprm(2) will now be assigned the decimal value of grpm(14) so sprm(2) = 69

Quote:
what exactly do i get in the end? i mean, which subtitle number this selects?
Subtitle #6

Quote:
according to dvd shrink list, this would select subtitle #6. so when using SetSTN with gprm, gprms are starting from 64 for first subtitle stream?
DVD Shrink is correct and you are also too for the starting 64 value. Also if sprm(2) = 0 then no subtitles will display.

Quote:
can someone confirm this?
OK. confirmed.
__________________
2COOL

Last edited by 2COOL; 10th November 2004 at 01:34.
2COOL is offline   Reply With Quote
Old 10th November 2004, 01:37   #3  |  Link
blutach
Country Member
 
blutach's Avatar
 
Join Date: Sep 2004
Location: is everything!
Posts: 6,499
@2COOL - Bit confused here.

I thought SPRM(2) has to be 62 (and then add 128) (ie 0xBE) to be off?
__________________
Les

Only use genuine Verbatim or Taiyo Yuden media.
blutach is offline   Reply With Quote
Old 10th November 2004, 01:46   #4  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
Quote:
Originally posted by blutach
@2COOL - Bit confused here.

I thought SPRM(2) has to be 62 (and then add 128) (ie 0xBE) to be off?
I was working on a DVD earlier with a subtitle menu with 4 options

Subp 1: English
Code:
[51 04 00 00 C0 00 00 09]  (SetSTN) Set Sub-picture stream = 0, on ; LinkPGCN PGC 9
Subp 2: French
Code:
[51 04 00 00 C1 00 00 09]  (SetSTN) Set Sub-picture stream = 1, on ; LinkPGCN PGC 9
Subp 3: Espanol
Code:
[51 04 00 00 C2 00 00 09]  (SetSTN) Set Sub-picture stream = 2, on ; LinkPGCN PGC 9
None

Upon viewing the sprm(2) after selection...

English > sprm(2)= 64
French > sprm(2) = 65
Espanol > sprm(2) = 66
None > sprm(2) = 0

I tested other DVDs other and yielded the same results.
__________________
2COOL
2COOL is offline   Reply With Quote
Old 10th November 2004, 02:03   #5  |  Link
blutach
Country Member
 
blutach's Avatar
 
Join Date: Sep 2004
Location: is everything!
Posts: 6,499
So why is this the command to turn all subbies off?

Code:
[51 00 00 00 BE 00 00 00]   7  (SetSTN) Set Sub-picture stream = 62:none
Regards
__________________
Les

Only use genuine Verbatim or Taiyo Yuden media.
blutach is offline   Reply With Quote
Old 10th November 2004, 02:14   #6  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
Quote:
Originally posted by blutach
So why is this the command to turn all subbies off?

Code:
[51 00 00 00 BE 00 00 00]   7  (SetSTN) Set Sub-picture stream = 62:none
Regards
You are right. sprm(2)=62 can also turn off subtitles. I found in my testings that if no selection is made in the subtitle menu, sprm(2) will hold a value of 0 during Title play. By default, sprm(2) should be 0 upon DVD insert.

Edit: hmmm...let me get back to you on sprm(2). I'll see if I can get a reference.

Update: Default sprm(2) is 62.
__________________
2COOL

Last edited by 2COOL; 10th November 2004 at 02:20.
2COOL is offline   Reply With Quote
Old 10th November 2004, 02:21   #7  |  Link
blutach
Country Member
 
blutach's Avatar
 
Join Date: Sep 2004
Location: is everything!
Posts: 6,499
My reference is 2COOL's guide on turning off subbies (hosted by rolz)
__________________
Les

Only use genuine Verbatim or Taiyo Yuden media.

Last edited by blutach; 10th November 2004 at 02:53.
blutach is offline   Reply With Quote
Old 10th November 2004, 02:45   #8  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
In SetSTN, the value you use is the number of the subtitle (ie 0 to 31, or 62 for none selected, or 63 for forced) + 0x40 to turn the subtitle ON.
You MUST also set the bit 7 (0x80) to instruct SetSTN to change the subtitle assignment.
Valid values are therefore:
128 to 159: Select subtitle 0-31 but don't turn it on.
192 to 223: Select subtitle 0-31, and turn it on.
190: Don't select any subtitle (leave the player decide)
255: Set forced subtitle

When playing, the SPRM 2 will hold the same value ORed with 0x7F (ie, bit 7 is turned off):
0 to 31: Subtitle 0-31 selected but not displayed.
64 to 95: Subtitle 0-31 displayed.
62: Player decide.
127: Forced subtitle.

The value 69 is therefore: Subtitle 5 displayed.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 10th November 2004, 03:01   #9  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
[edit]
__________________
2COOL
2COOL is offline   Reply With Quote
Old 10th November 2004, 03:04   #10  |  Link
blutach
Country Member
 
blutach's Avatar
 
Join Date: Sep 2004
Location: is everything!
Posts: 6,499
Here were mpucoder's thoughts:

Stream 31 is not "off", it is just very unlikely that it will be present. There can be as many as 32 subpicture streams, numbered from 0 to 31 (0x00 to 0x1f, or substream numbers 0x20 to 0x3f). The designation for "off" is stream 62 (ox3e, combined with the required flag to cause the new value to be stored is 0xbe).
I know IfoEdit is messed up in its interpretation, and we had a long thread about the values. Since that was awhile ago, it bears repeating.
value meaning
00-7f will do nothing, bit 7 must be set to cause any change
80-9f stream 0 to 31 selected, but off
a0-bd meaningless
be no subpicture
bf stream 0 forced, but off - ie, invalid
c0-df stream 0 to 31 selected and displayed
e0-fe meaningless
ff stream 0 forced and displayed.

__________________
Les

Only use genuine Verbatim or Taiyo Yuden media.

Last edited by blutach; 10th November 2004 at 03:08.
blutach is offline   Reply With Quote
Old 10th November 2004, 03:13   #11  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Exactly what I said, but in hexadecimal!
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 10th November 2004, 03:15   #12  |  Link
blutach
Country Member
 
blutach's Avatar
 
Join Date: Sep 2004
Location: is everything!
Posts: 6,499
Yes, except for 62. You have said "let the player decide" while mpucoder has said "no subbie".

__________________
Les

Only use genuine Verbatim or Taiyo Yuden media.
blutach is offline   Reply With Quote
Old 10th November 2004, 03:20   #13  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
He is right... and wrong. When 'not set', the player may take the decision to select and turn on a subpic, based on the user's preferences. This is why it is best to use a stream explicitely turned off (values 128 to 159) to be sure the player won't select one.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 10th November 2004, 03:30   #14  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
Quote:
Originally posted by r0lZ
The value 69 is therefore: Subtitle 5 displayed.
I stand corrected.

SPRM(2)'s Value When Setting SubPictures (SetSTN)
Code:
Selected but OFF (not displayed) 

[51 00 00 00 80 00 00 00]  (SetSTN) Set Sub-picture stream = 0, off  sprm(2) = 0
[51 00 00 00 81 00 00 00]  (SetSTN) Set Sub-picture stream = 1, off  sprm(2) = 1	
[51 00 00 00 82 00 00 00]  (SetSTN) Set Sub-picture stream = 2, off  sprm(2) = 2
[51 00 00 00 83 00 00 00]  (SetSTN) Set Sub-picture stream = 3, off  sprm(2) = 3
[51 00 00 00 84 00 00 00]  (SetSTN) Set Sub-picture stream = 4, off  sprm(2) = 4
[51 00 00 00 85 00 00 00]  (SetSTN) Set Sub-picture stream = 5, off  sprm(2) = 5
[51 00 00 00 86 00 00 00]  (SetSTN) Set Sub-picture stream = 6, off  sprm(2) = 6
[51 00 00 00 87 00 00 00]  (SetSTN) Set Sub-picture stream = 7, off  sprm(2) = 7
[51 00 00 00 88 00 00 00]  (SetSTN) Set Sub-picture stream = 8, off  sprm(2) = 8
[51 00 00 00 89 00 00 00]  (SetSTN) Set Sub-picture stream = 9, off  sprm(2) = 9
[51 00 00 00 8A 00 00 00]  (SetSTN) Set Sub-picture stream = 10, off  sprm(2) = 10
[51 00 00 00 8B 00 00 00]  (SetSTN) Set Sub-picture stream = 11, off  sprm(2) = 11
[51 00 00 00 8C 00 00 00]  (SetSTN) Set Sub-picture stream = 12, off  sprm(2) = 12
[51 00 00 00 8D 00 00 00]  (SetSTN) Set Sub-picture stream = 13, off  sprm(2) = 13
[51 00 00 00 8E 00 00 00]  (SetSTN) Set Sub-picture stream = 14, off  sprm(2) = 14
[51 00 00 00 8F 00 00 00]  (SetSTN) Set Sub-picture stream = 15, off  sprm(2) = 15
[51 00 00 00 90 00 00 00]  (SetSTN) Set Sub-picture stream = 16, off  sprm(2) = 16
[51 00 00 00 91 00 00 00]  (SetSTN) Set Sub-picture stream = 17, off  sprm(2) = 17
[51 00 00 00 92 00 00 00]  (SetSTN) Set Sub-picture stream = 18, off  sprm(2) = 18
[51 00 00 00 93 00 00 00]  (SetSTN) Set Sub-picture stream = 19, off  sprm(2) = 19
[51 00 00 00 94 00 00 00]  (SetSTN) Set Sub-picture stream = 20, off  sprm(2) = 20
[51 00 00 00 95 00 00 00]  (SetSTN) Set Sub-picture stream = 21, off  sprm(2) = 21
[51 00 00 00 96 00 00 00]  (SetSTN) Set Sub-picture stream = 22, off  sprm(2) = 22
[51 00 00 00 97 00 00 00]  (SetSTN) Set Sub-picture stream = 23, off  sprm(2) = 23
[51 00 00 00 98 00 00 00]  (SetSTN) Set Sub-picture stream = 24, off  sprm(2) = 24
[51 00 00 00 99 00 00 00]  (SetSTN) Set Sub-picture stream = 25, off  sprm(2) = 25
[51 00 00 00 9A 00 00 00]  (SetSTN) Set Sub-picture stream = 26, off  sprm(2) = 26
[51 00 00 00 9B 00 00 00]  (SetSTN) Set Sub-picture stream = 27, off  sprm(2) = 27
[51 00 00 00 9C 00 00 00]  (SetSTN) Set Sub-picture stream = 28, off  sprm(2) = 28
[51 00 00 00 9D 00 00 00]  (SetSTN) Set Sub-picture stream = 29, off  sprm(2) = 29
[51 00 00 00 9E 00 00 00]  (SetSTN) Set Sub-picture stream = 30, off  sprm(2) = 30
[51 00 00 00 9F 00 00 00]  (SetSTN) Set Sub-picture stream = 31, off  sprm(2) = 31

Subpictures OFF (Not displayed)(Default setting) 

[51 00 00 00 BE 00 00 00]  (SetSTN) Set Sub-picture stream = 62:none sprm(2) = 62


Selected and ON (displayed) 

[51 00 00 00 C0 00 00 00]  (SetSTN) Set Sub-picture stream = 0, on  sprm(2) = 64
[51 00 00 00 C1 00 00 00]  (SetSTN) Set Sub-picture stream = 1, on  sprm(2) = 65
[51 00 00 00 C2 00 00 00]  (SetSTN) Set Sub-picture stream = 2, on  sprm(2) = 66
[51 00 00 00 C3 00 00 00]  (SetSTN) Set Sub-picture stream = 3, on  sprm(2) = 67
[51 00 00 00 C4 00 00 00]  (SetSTN) Set Sub-picture stream = 4, on  sprm(2) = 68
[51 00 00 00 C5 00 00 00]  (SetSTN) Set Sub-picture stream = 5, on  sprm(2) = 69
[51 00 00 00 C6 00 00 00]  (SetSTN) Set Sub-picture stream = 6, on  sprm(2) = 70
[51 00 00 00 C7 00 00 00]  (SetSTN) Set Sub-picture stream = 7, on  sprm(2) = 71
[51 00 00 00 C8 00 00 00]  (SetSTN) Set Sub-picture stream = 8, on  sprm(2) = 72
[51 00 00 00 C9 00 00 00]  (SetSTN) Set Sub-picture stream = 9, on  sprm(2) = 73
[51 00 00 00 CA 00 00 00]  (SetSTN) Set Sub-picture stream = 10, on  sprm(2) = 74
[51 00 00 00 CB 00 00 00]  (SetSTN) Set Sub-picture stream = 11, on  sprm(2) = 75
[51 00 00 00 CC 00 00 00]  (SetSTN) Set Sub-picture stream = 12, on  sprm(2) = 76
[51 00 00 00 CD 00 00 00]  (SetSTN) Set Sub-picture stream = 13, on  sprm(2) = 77
[51 00 00 00 CE 00 00 00]  (SetSTN) Set Sub-picture stream = 14, on  sprm(2) = 78
[51 00 00 00 CF 00 00 00]  (SetSTN) Set Sub-picture stream = 15, on  sprm(2) = 79
[51 00 00 00 D0 00 00 00]  (SetSTN) Set Sub-picture stream = 16, on  sprm(2) = 80
[51 00 00 00 D1 00 00 00]  (SetSTN) Set Sub-picture stream = 17, on  sprm(2) = 81
[51 00 00 00 D2 00 00 00]  (SetSTN) Set Sub-picture stream = 18, on  sprm(2) = 82
[51 00 00 00 D3 00 00 00]  (SetSTN) Set Sub-picture stream = 19, on  sprm(2) = 83
[51 00 00 00 D4 00 00 00]  (SetSTN) Set Sub-picture stream = 20, on  sprm(2) = 84
[51 00 00 00 D5 00 00 00]  (SetSTN) Set Sub-picture stream = 21, on  sprm(2) = 85
[51 00 00 00 D6 00 00 00]  (SetSTN) Set Sub-picture stream = 22, on  sprm(2) = 86
[51 00 00 00 D7 00 00 00]  (SetSTN) Set Sub-picture stream = 23, on  sprm(2) = 87
[51 00 00 00 D8 00 00 00]  (SetSTN) Set Sub-picture stream = 24, on  sprm(2) = 88
[51 00 00 00 D9 00 00 00]  (SetSTN) Set Sub-picture stream = 25, on  sprm(2) = 89
[51 00 00 00 DA 00 00 00]  (SetSTN) Set Sub-picture stream = 26, on  sprm(2) = 90
[51 00 00 00 DB 00 00 00]  (SetSTN) Set Sub-picture stream = 27, on  sprm(2) = 91
[51 00 00 00 DC 00 00 00]  (SetSTN) Set Sub-picture stream = 28, on  sprm(2) = 92
[51 00 00 00 DD 00 00 00]  (SetSTN) Set Sub-picture stream = 29, on  sprm(2) = 93
[51 00 00 00 DE 00 00 00]  (SetSTN) Set Sub-picture stream = 30, on  sprm(2) = 94
[51 00 00 00 DF 00 00 00]  (SetSTN) Set Sub-picture stream = 31, on  sprm(2) = 95

Subpicture 0 is forced to display.   The value of 63 is called a Dummy Stream value.

[51 00 00 00 FF 00 00 00]  (SetSTN) Set Sub-picture stream = 63:forced sprm(2) = 127
__________________
2COOL

Last edited by 2COOL; 11th November 2004 at 18:57.
2COOL is offline   Reply With Quote
Old 10th November 2004, 03:35   #15  |  Link
blutach
Country Member
 
blutach's Avatar
 
Join Date: Sep 2004
Location: is everything!
Posts: 6,499
Really confused now
__________________
Les

Only use genuine Verbatim or Taiyo Yuden media.
blutach is offline   Reply With Quote
Old 10th November 2004, 03:36   #16  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
You must turn the forced subpic ON, so last line should be:

[51 00 00 00 FF 00 00 00] (SetSTN) Set Sub-picture stream = 63:forced sprm(2) = 127
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 10th November 2004, 03:38   #17  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Quote:
Originally posted by blutach
Really confused now
Just play with the SetSTN GUI in PgcEdit: you'll understand...
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 10th November 2004, 03:42   #18  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
Quote:
Originally posted by r0lZ
You must turn the forced subpic ON, so last line should be:

[51 00 00 00 FF 00 00 00] (SetSTN) Set Sub-picture stream = 63:forced sprm(2) = 127
Ooop!. Everything is correct now and can be used as a solid reference. thanks again r0lZ! I was meaning to document that for a long time now. It just keeps getting bump down my TODO list.
__________________
2COOL

Last edited by 2COOL; 10th November 2004 at 03:45.
2COOL is offline   Reply With Quote
Old 10th November 2004, 03:43   #19  |  Link
blutach
Country Member
 
blutach's Avatar
 
Join Date: Sep 2004
Location: is everything!
Posts: 6,499
@rolz

Does this mean that we want the forced stream on in every instance?

By forced stream, I understand this to mean, the occasional subtitles that display (such as the Japanese subbies in Kill Bill 1?) as opposed to the full dialogue. Is this correct?

Regards
__________________
Les

Only use genuine Verbatim or Taiyo Yuden media.
blutach is offline   Reply With Quote
Old 10th November 2004, 03:50   #20  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
Quote:
Originally posted by blutach
Does this mean that we want the forced stream on in every instance?

By forced stream, I understand this to mean, the occasional subtitles that display (such as the Japanese subbies in Kill Bill 1?) as opposed to the full dialogue. Is this correct?
I feel like I'm 0-2 now but here is goes.
Code:
[51 00 00 00 FF 00 00 00]  (SetSTN) Set Sub-picture stream = 63:forced sprm(2) = 127
This will only force subpicture 0. It's actually the first subpicture. Can't confirm with Kill Bill 1 but the Japanese subs aren't Subp 0, then it won't show them. I hope I read your question right.
__________________
2COOL
2COOL is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.