Log in

View Full Version : Help with Scenarist Code for Title with Multi Subtitles


Eric69
22nd January 2013, 03:08
Hi Folks

I have a title with 22 different subtitle languages. It has a main movie with the Subtitles and several smaller extras with no subtitles

The title has an Always On Menu IG with a looping background and a Pop-Up Menu IG Both IGs have the ability to select a particular subtitle and a “subtitle off” button. The “Pop-Up” IG is shared among all – the Main Feature and the Extras.

Id like to list my code and ask you if you think this will be sufficient:

MAIN MENU
Each button will basically set the GPR value according to which subtitle the user selects:

Eng - GPR 0== 1
Span - GPR 0==2
French – GPR 0 ==3
Portuguese – GPR 0==4

….and so on…

POP-UP
Each button will set the GPR value AND set the the proper PG stream since this will be active during the movie and want things to change on the fly.

Eng - GPR 0== 1
SetPG_textSt NO=1[DispON]
Span - GPR 0==2
SetPG_textSt NO=2[DispON]
French – GPR 0 ==3
SetPG_textSt NO=3[DispON]
Portuguese – GPR 0==4
SetPG_textSt NO=4[DispON]


….and so on…


Now….at the head of the main movie (ABOVE all the abstraction code since there are chapters) Id put the following code to turn on and off the correct subs since the extras do not have subs and Id assume players default back to position 1 if they hit a title with no subs:

1. if ((GPR NoEnteried[ID 0]=1) SetPG_textSt NO=1[DispON]
2. if ((GPR NoEnteried[ID 0]=2) SetPG_textSt NO=2[DispON]
3. if ((GPR NoEnteried[ID 0]=3) SetPG_textSt NO=3[DispON]
4. if ((GPR NoEnteried[ID 0]=4) SetPG_textSt NO=4[DispON]

and so on

From here, it goes on to play the film with the correct subtitle. Just want to make sure Im on the right path before I work on this next week. I did a smaller project similar to this but with less subs. It worked on the fly but didnt once I went out to the Main Menu and returned to the movie? Weird

Also, could someone explain exactly the difference between DispON and DispOFF??

E

Eric69
1st February 2013, 21:36
OK....could someone explain exactly the difference between DispON and DispOFF??

rik1138
1st February 2013, 21:46
Disp = Display. It just means if the subtitles are visible. You can set the subtitle stream, but not have them displayed on screen (for whatever reason, the studios seem to think there's logic with this...)

So:
SetPG_textSt NO=1[DispON]

Would set the first subtitle stream, and turn it on so it's visible to the user on the TV.

SetPG_textSt NO=1[DispOFF]

Would set the first subtitle stream, and turn it off so it's NOT visible to the user.

rik1138
1st February 2013, 21:53
Also, can a user jump to a bonus piece while watching the film, and then when the bonus piece is finished, does the film resume automatically? If so, you should put your subtitle activating code at the end of each bonus piece just before the Resume command. When resuming, all your 'pre commands' on the feature are bypassed, the player just jumps back into the feature where you left off, and the subs will be pushed back to #1 since the bonus material has none...

If you can't jump out of the feature and resume back like this, don't worry about it... :)

Eric69
2nd February 2013, 07:42
Thanks for clearing that up!

So my code is sound? No, the bonus piece will play and only go back to the Top Menu

bigotti5
2nd February 2013, 08:08
[DispOFF] will make forced tables in stream visible to the user.
Example BDN XML
...
<Event Forced="False" InTC="00:00:35:00" OutTC="00:00:38:00">
<Graphic>PES_picture_0001.png</Graphic>
</Event>
<Event Forced="True" InTC="00:00:40:00" OutTC="00:00:45:00">
<Graphic>PES_picture_0002.png</Graphic>
</Event>
...
[DispON] will show both tables
[DispOFF] second table only

If you want to edit in Scenarist
PES Editor - Epoch - DisplaySet - CompositionObject - Forced On Flag

rik1138
7th February 2013, 21:52
Ah, hadn't thought of that, guess that makes sense... :) The studios never seem to use real forced subtitles, they just do it all in programming instead. (At least the studios I've worked with... I assume forced is used sometimes, but it seems very rare... I think they don't trust that all players will do it correctly, so they prefer to handled it 'manually')

Eric69
10th February 2013, 22:20
Thanks for the help guys, its greatly appreciated