View Single Post
Old 9th February 2003, 10:01   #1  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
Turning Subtitles (On/Off) by Default Guide

Turning Subtitles On by Default

A friend of mine wanted to learn about displaying subtitles by default when DVD is inserted. I initially didn’t know about going about it so we did a search and read a lot of threads and a DVD authoring book. From multiple sources, I decided to post this working method so that people who want to turn on or off their subtitles by default, can hopefully have a easier time understanding.

11/10/2004: New and improved HTML guides using PgcEdit.
2/9/2003 NOTE:This guide has been updated in consideration of stripped subpictures. Thanks to jmartina for pointing this out. And also, there is a change in hex value in “Turning Subtitles Off by Default” guide. (previous value was 9f). Thanks to mpucoder for his recommendation.

2/27/2003 Update: You must also set your default subtitle language on your standalone DVD Player.

Tools used:
IfoEdit


Note: Assumption is made in this guide that VTS_01_0.IFO is your main movie’s IFO.
______________________________________________________
1. In VTS_01_0.IFO/VMG Overview/ Title Set (Movie) attributes section, we need to find out which Subtitle we want turned on.

Select the following options that describes your subpictures status.
  • If you did not strip any subpictures out then go to next step.
  • If you’ve STRIPPED any subpictures, then goto step 4.

______________________________________________________
2. Since you didn’t strip any subpictures out, all we need to know is the byte value (highlighted to the left in blue) associated with your selected SubPicture. Write your value down that’s associated with language you want to display.

  • C0 SubPicture 1: Language (2-bit rle ) (ID: 0x20)
    C1 SubPicture 2: Language (2-bit rle ) (ID: 0x21)
    C2 SubPicture 3: Language (2-bit rle ) (ID: 0x22)
    C3 SubPicture 4: Language (2-bit rle ) (ID: 0x23)
    C4 SubPicture 5: Language (2-bit rle ) (ID: 0x24)
    C5 SubPicture 6: Language (2-bit rle ) (ID: 0x25)
    C6 SubPicture 7: Language (2-bit rle ) (ID: 0x26)
    C7 SubPicture 8: Language (2-bit rle ) (ID: 0x27)
    C8 SubPicture 9: Language (2-bit rle ) (ID: 0x28)
    C9 SubPicture 10: Language (2-bit rle ) (ID: 0x29)
    CA SubPicture 11: Language (2-bit rle ) (ID: 0x2A)
    CB SubPicture 12: Language (2-bit rle ) (ID: 0x2B)
    CC SubPicture 13: Language (2-bit rle ) (ID: 0x2C)
    CD SubPicture 14: Language (2-bit rle ) (ID: 0x2D)
    CE SubPicture 15: Language (2-bit rle ) (ID: 0x2E)
    CF SubPicture 16: Language (2-bit rle ) (ID: 0x2F)
    D0 SubPicture 17: Language (2-bit rle ) (ID: 0x30)
    D1 SubPicture 18: Language (2-bit rle ) (ID: 0x31)
    D2 SubPicture 19: Language (2-bit rle ) (ID: 0x32)
    D3 SubPicture 20: Language (2-bit rle ) (ID: 0x33)
    D4 SubPicture 21: Language (2-bit rle ) (ID: 0x34)
    D5 SubPicture 22: Language (2-bit rle ) (ID: 0x35)
    D6 SubPicture 23: Language (2-bit rle ) (ID: 0x36)
    D7 SubPicture 24: Language (2-bit rle ) (ID: 0x37)
    D8 SubPicture 25: Language (2-bit rle ) (ID: 0x38)
    D9 SubPicture 26: Language (2-bit rle ) (ID: 0x39)
    DA SubPicture 27: Language (2-bit rle ) (ID: 0x3A)
    DB SubPicture 28: Language (2-bit rle ) (ID: 0x3B)
    DC SubPicture 29: Language (2-bit rle ) (ID: 0x3C)
    DD SubPicture 30: Language (2-bit rle ) (ID: 0x3D)
    DE SubPicture 31: Language (2-bit rle ) (ID: 0x3E)
    DF SubPicture 32: Language (2-bit rle ) (ID: 0x3F)

______________________________________________________
3. Go to step 5.
______________________________________________________
4. If you had stripped any subpictures, all your remaining subpictures will have shifted up in order but their Ids will be kept. Disregarding your ID : 0x## , use Step 2’s values . Write your value down that’s associated with language you want to display. So, if your Subpicture 32 became Subpicture 3, then your Subpicture’s new value would be C2.
______________________________________________________
5. Go to /VTS_PGCITI/VTS_PGC_1/PGC Command Table, and select the following option below which describes your pre commands.

If you have...
  • ...NO "Break" commands in your pre-commands, then go to next step.
  • ...have ANY "Break" commands in your Pre-commands section, then go to step 9.
  • ...have NO pre-commands present, then go to step 14.

______________________________________________________
6. No "Break" commands

We need to add another pre-command so right click on any pre-command line and select “Add PreCommand”. You will get a new pre command at the end containing “NOP”.
______________________________________________________
7. Double left click on this new pre command line and you will be presented with your HexEdit Module window. In our example, substitute “XX” with the hex value you wrote down in step 2 or 4. Edit the hex value as follows.


OLD > Pre Command...NOP......................................[00 00 00 00 00 00 00 00]
NEW > Pre Command...(SetSTN) Set Subpicture Stream: #(Off)...[51 00 00 00 XX 00 00 00]

______________________________________________________
8. Now go to step 16.
______________________________________________________
9. Break commands present

Your DVD might have one Break command but some have more. For ease of selecting the right one to work with, we’ll just do them all. So right click on your first break command line and select “Insert PreCommand” on your pop-up menu. You will get a new pre command before your Break containing a “NOP”.
______________________________________________________
10. Double left click on this new pre command line and you will be presented with your HexEdit Module window. In our example, substitute “XX” with the hex value you wrote down in step 2 or 4. Edit the hex value as follows.


OLD > Pre Command...NOP......................................[00 00 00 00 00 00 00 00]
NEW > Pre Command...(SetSTN) Set Subpicture Stream: #(Off)...[51 00 00 00 XX 00 00 00]

______________________________________________________
11. You may have commands before your new inserted commands that contained “Goto” statements. Pre-Commands have shifted down, 1 line after your SetSTN command, so those prior Goto commands need to be fixed. Just edit them to next hexadecimal number. Just edit the ones from your last break line or if you have just one, from pre-command #1.
______________________________________________________
12. Repeat steps 9 to 11 for all pre commands that have that “Break” in them.
______________________________________________________
13. Now go to step 16
______________________________________________________
14. No Pre Commands

There will be a line near the bottom saying “There is no PGC Command Table.” Right-click on text and select “Add PreCommand”.
______________________________________________________
15. You will have a new pre command containing a “NOP” command Double left click on this new pre command line and you will be presented with your HexEdit Module window. In our example, substitute “XX” with the hex value you wrote down in step 2 or 4. Edit the hex value as follows.


OLD > Pre Command...NOP......................................[00 00 00 00 00 00 00 00]
NEW > Pre Command...(SetSTN) Set Subpicture Stream: #(Off)...[51 00 00 00 XX 00 00 00]

______________________________________________________
16. OPTIONAL: If you want your subtitle permanently ON and your subpictures button on our remote disabled, just go to your /VTS_PGCITI/VTS_PGC_1/Prohibited user operations and double click in section. Check “Subpicture Stream Change” and press OK
______________________________________________________
17. Save VTS_01_0.IFO
______________________________________________________
18. Get VTS Sectors
______________________________________________________
19. Press DVDPlay to preview and test.
______________________________________________________

Turning Subtitles OFF by Default

Note: Assumption is made in this guide that VTS_01_0.IFO is your main movie’s IFO.
______________________________________________________
1. Go to /VTS_PGCITI/VTS_PGC_1/PGC Command Table, and select the following option below which describes your pre commands.
  • If you have NO break commands in your pre-commands then go to next step.
  • If you have ANY “Break” commands in your Pre-commands section, then go to step 5.
  • If you NO pre-commands present, then go to step 10.

Note: Using the preferred value of 0xbe will disable the subpictures completely. This is interpretted as Stream 62 off as there can never be a stream 62. It will be confusing to know that
(SetSTN) Set Subpicture Stream: 30(On) should really say “Off in the following steps. This is an error that Derrow, IFOedit’s author, needs to fix.
______________________________________________________
2. NO break commands

We need to add another pre-command so right click on any pre-command line and select “Add PreCommand”. You will get a new pre command at the end containing a command “NOP”
______________________________________________________
3. Double left click on this new pre command line and you will be presented with your HexEdit Module window. Edit the hex value as follows.


OLD > Pre Command...NOP............................................[00 00 00 00 00 00 00 00]
NEW > Pre Command...(SetSTN) Set Subpicture Stream: 30(On).........[51 00 00 00 be 00 00 00]

______________________________________________________
4. Now go to step 12.
______________________________________________________
5.Break commands present

Your DVD might have one Break command but some have more. For ease of selecting the right one to work with, we’ll just do them all. So right click on your first break command line and select “Insert PreCommand” on your pop-up menu. You will get a new pre command before your Break containing a command “NOP”
______________________________________________________
6. Double left click on this new pre command line and you will be presented with your HexEdit Module window. Edit the hex value as follows.


OLD > Pre Command...NOP............................................[00 00 00 00 00 00 00 00]
NEW > Pre Command...(SetSTN) Set Subpicture Stream: 30(On).........[51 00 00 00 be 00 00 00]

______________________________________________________
7. You may have commands before your new inserted commands that contained “Goto” statements. Commands shifted down 1 line after your SetSTN command so those prior Goto commands need to be fixed. Just edit them to next hexadecimal number. Just edit the ones from your last break line or if you have just one, from pre-command #1.
______________________________________________________
8. Repeat steps 5 to 7 for all pre commands that have that “Break” in them.
______________________________________________________
9. Now go to step 12.
______________________________________________________
10. No Pre Commands

There will be a line near the bottom saying “There is no PGC Command Table.” Right-click on text and select “Add PreCommand”.
______________________________________________________
11. You will have a new pre command containing a “Break” command Double left click on this new pre command line and you will be presented with your HexEdit Module window. Edit the hex value as follows.


OLD > Pre Command...NOP............................................[00 00 00 00 00 00 00 00]
NEW > Pre Command...(SetSTN) Set Subpicture Stream: 30(On).........[51 00 00 00 be 00 00 00]

______________________________________________________
12. Save VTS_01_0.IFO
______________________________________________________
13. Get VTS Sectors
______________________________________________________
14. Press DVDPlay to preview and test.

______________________________________________________
__________________
2COOL

Last edited by 2COOL; 11th July 2005 at 19:36.
2COOL is offline   Reply With Quote