View Full Version : Turning subtitles on and off with Scenarist
nfinney
27th January 2005, 02:38
I've looked around the forum and asked a few people for help on this subject but no luck, hopefully somebody can help me out. I'm creating a project that has 1 English subtitle track and 2 English audio tracks.
Now here is the problem, I have created a menu where you can choose which audio track you want and where you can choose to turn the subtitle on and off. Once you choose one of the options it goes back to the root menu and to start the movie you must press a play button. I have tried to use GPRM's to do this and I have a pretty good understanding of how to use these commands, thanks to the Scenarist PDF guide. But the problem is that when I play the movie without selecting any audio or subtitle's, the subtitle is displayed automatically. And then when i try to turn it off using the menus it is still being displayed. Why is this happening? I have even compiled it and made it into and ISO to see if it would work and the subtitles are still displayed no matter what. If you can help me out that would be wonderful!!
nfinney
5th February 2005, 01:45
So does anybody have a clue on how to do this?
dgoodbourn
5th February 2005, 09:39
When you imported the subs, did you have the tag line 'Forced Subs ON'? If so, this will automatically forced the subs to be displayed.
D.
nfinney
5th February 2005, 09:52
When looking at the .srt file i see
st_format 2
Display_Start non_forced
TV_Type NTSC
Tape_Type NON_DROP
I checked the subtitle properties in the property browser of Scenarist and the Forced Start Checkbox is unchecked and has always been unchecked from when I first imported them. I ahve a feeling that I might be using the GPRM's wrong. If you could direct me to a book or site about how to use GPRM's that would be great. I have gone through the small example in the Scenarist PDF guide, but it has only helped to a small extent.
Thanks,
Nick Finney
dgoodbourn
5th February 2005, 10:18
Can't think of any books off the top of my head. All you need to know is when using GPRMs to set the subs:
0 = subs stream 1 OFF
1 = subs stream 2 OFF
etc...
64 = subs stream 1 ON
65 = subs stream 2 On
etc...
Hope this helps,
D.
Trahald
5th February 2005, 22:16
this site is good http://www.dvd-replica.com/DVD/productinfo.php also mpucoders site has some great info
nfinney
7th February 2005, 05:47
ok so here is what I have so far.
Language Menu Button Commands:
Subtitles ON Button - Mov GPRM1, 64
Subtitles OFF Button - Mov GPRM1, 0
Audio Menu Button Commands:
Audio 1 Button - Mov GPRM3, 3
Audio 2 Button - Mov GPRM3, 2
Pre command of main movie
Mov GPRM0, 0
Mov GPRM2, 2
if(GPRM0=GPRM1) SetSN subpicture=1 :OFF
if(GPRM0!=GPRM1) SetSN subpicture=1 :ON
if(GPRM2=GPRM3) SetSN audio=2, subpicture=1 : ON
if(GPRM2!=GPRM3) SetSN audio=1
Now the audio selection works perfectly, no problem. But the subtitles are always on, and they are NOT force started. When going through the process of trying to turn the subtitles on and off through the menu's i get this warning in the information window. Obviously this has something to do with the subtitles always appearing but i can't figure it out.
Info Starting Simulation...
Info VMG-VTS "VTS_1"
Info Language-Title "English_1"
Info PGC "Main-t-pgc"
Info Program "Main-t-scn-pg"
Info Cell "Main-t-scn-cell"
Info Button-Command 4 : LinkPGCN Subt & Lang-t-pgc
Info PGC "Subt & Lang-t-pgc"
Info Program "Subt & Lang-t-scn-pg"
Info Cell "Subt & Lang-t-scn-cell"
Info Button-Command 4 : { Mov GPRM1, 0 ; LinkPGCN Main-t-pgc }
Info PGC "Main-t-pgc"
Info Program "Main-t-scn-pg"
Info Cell "Main-t-scn-cell"
Info Button-Command 1 : JumpVTS_TT Title_1
Info VMG-VTS "VTS_1"
Info Language-Title "Title_1"
Info PGC "VTS__01_P01.16~9_1-t-pgc"
Info Program "VTS__01_P01.16~9_1-t-scn-"
Info Pre-Command 1: Mov GPRM0, 0
Info Pre-Command 2: Mov GPRM2, 2
Info Pre-Command 3: if ( GPRM0 == GPRM1 ) SetSTN subpicture=1:OFF
Info Pre-Command 4: if ( GPRM0 != GPRM1 ) SetSTN subpicture=1:ON
Info Pre-Command 5: if ( GPRM2 == GPRM3 ) SetSTN audio=2, subpicture=1:ON
Info Pre-Command 6: if ( GPRM2 != GPRM3 ) SetSTN audio=1, subpicture=1:OFF
Warning Subpicture streams ( 0) is not available.
nfinney
11th February 2005, 06:15
So after some more researching and testing I have figured it out.
Take a look at this thread in order to see why I'm setting the GPRM values to certain immediate values:
http://forum.doom9.org/showthread.php?s=&postid=567987#post567987
Here is what I have
Language Menu Button Commands:
On Button: Mov GPRM1, 65
OFF Button: Mov GPRM1, 0
Audio Menu Button Commands:
Regular Audio(stream 1): Mov GPRM3, 2
Documnetary Audio(stream 2): Mov GPRM3,3
Pre command of main movie
SetSTN subpicture=GPRM1
Mov GPRM2, 3
if(GPRM2=GPRM3) SetSTN audio=2
if(GPRM2!=GPRM3) SetSTN audio=1
dgoodbourn
11th February 2005, 10:48
Originally posted by nfinney
Language Menu Button Commands:
On Button: Mov GPRM1, 65
OFF Button: Mov GPRM1, 0
Do you mean:
On Button: Mov GPRM1, 64
D.
nfinney
11th February 2005, 13:30
See, I'm not really sure. I know that I have Mov GPRM1, 65 and it is working perfectly. I was questioning that too after I compiled and ran it through IfoEdit. What I will do, is change it to 64, re-compile it and see if it still works.
nfinney
11th February 2005, 14:13
Ok so i just finished the test. I left everything at the same value except that i changed the subtitle ON button to: Mov GPRM1, 64. When running this through IFOEdit it works. What I'm thinking is that since, in the property browser of Scenarist under VTS 1(main movie), I have the Subpicture Availability Flag Policy set to "custom" and not to "adjust maximum streams in this title", that the values of subtitle streams(64-95) all default back to substream 64 since I have only one subtitle stream. I could be totally wrong here and correct me if I am, but this is how I see it.
nfinney
12th February 2005, 00:19
Well when I thought I had it all figured out, it backfires. I burnt the compilation on a DVD-RW using nero and then went to see if it works on a standalone DVD player. I find out that it doesn't show the subtitles when selected through the menus. It does switch the audio though, so there is some good news. I changed the movies pre command back to this
Mov GPRM0, 0
Mov GPRM2, 2
if(GPRM0=GPRM1) SetSN subpicture=1 :OFF
if(GPRM0!=GPRM1) SetSN subpicture=1 :ON
if(GPRM2=GPRM3) SetSN audio=2, subpicture=1 : ON
if(GPRM2!=GPRM3) SetSN audio=1
and then compiled it and mounted it with Daemon tools but still no luck. So I'm back at square one, if anyone has ideas, I'm willing to listen. Thanks for the help
nfinney
16th February 2005, 21:47
Finally figured it out. I have the subtitle button "ON" set to SetSTN subpicture=1 ON; link to main menu
and the "OFF" to SetSTN subpicture=1 OFF; link to main menu.
This worked in the Scenarist Simulation window but not in PowerDVD. After burning it and watching it on a standalone the menu's work like I want them to. Thanks
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.