View Full Version : Switching audio turns subs off, Scenarist HDMV
nazo-gema
22nd September 2008, 00:13
Hi All,
Scenarist HDMV question. :eek:
I have 2 audio streams running, and 1 subtitle track in my project.
Now for some reason, (probably a good one, or not) *they (*sonic) have put
the subtitles off/on flagging in the same pull-down menu as that of the audio streams and angles. Even when you do not set the
subtitle stream when switching audio, it will still flag your subs off
because it is just a tick box turning your subs on and off.
This causes stuff like, your menus displaying your subs are on, but they are actually off. Etc.
I am at the moment glad I don;t have to deal with PIP or angles, because it's in the same menu too.
Is there any way to get around this?
So you can switch your audio, but when you have your subtitles
on, they will still display? (and off when you have selected subs off)
Thanks :thanks:
Nazo-Gema
cyrille
21st September 2009, 13:00
I have the same problem, did you find a workaround,?
thanks
dvdboy
21st September 2009, 17:52
I think you'll find that *they is the BD Association who set the BD Spec - Sonic just put a GUI on the BD Spec and yes it is very stupid!!
The workaround is to script everything as conditionals:
IF SUBS ARE ON, SET AUDIO TRACK 2, SUBS ON
IF SUBS ARE OFF, SET AUDIO TRACK 2, SUBS OFF
etc.
HTH
deank
21st September 2009, 19:25
I don't see how difficult it is to set text, pgs and audio switches in different checkboxes/options. A lazy programmer may be :)
rik1138
22nd September 2009, 00:51
Hi All,
Scenarist HDMV question. :eek:
Now for some reason, (probably a good one, or not) *they (*sonic) have put the subtitles off/on flagging in the same pull-down menu as that of the audio streams and angles.
:rolleyes: As mentioned, that's got nothing to do with Sonic, that's how the BD Spec is written... Obviously before they really thought about the programming side of things...
I don't see how difficult it is to set text, pgs and audio switches in different checkboxes/options. A lazy programmer may be :)
Not sure what you mean by that, but when you set an audio stream in Blu-ray, you _HAVE_ to set the subtitles either on or off (you can't just say 'leave subs alone and change audio'). Very annoying, but easy to get around. Here's the code:
First, set aside a GPR for storing whether subs are on or off (in this example GPR5 is 'SubsOn'. 1 = yes, 0 = no). You will want these four lines of code before you change your audio:
Move (GPR)SubsOn[ID:5] 0
if ( (PSR)PG TextST stream and PiP PG TextST stream[ID:2] & 0x80000000 ) Move (GPR)SubsOn[ID:5] 1
SetStream Audio:No=2 PG_textST:[DispOFF]
if ( (GPR)SubsOn[ID:5] == 1 ) PG_textST:[DispON]
Line 1- resets the SubsOn to 0
Line 2- Sets it to 1 if the subtitles are being displayed
Line 3- Changes your audio to stream 2, with subtitles off (obviously, this can be stream 1, etc or a GPR...)
Line 4- Turns subtitles back on if they were previously on
Now, what would be really nice is if you could just copy/paste that code into your project... :cool: But once you create it the first time, you can copy/paste the lines everywhere you change audio...
cyrille
22nd September 2009, 11:43
thank you all, I will try this
deank
22nd September 2009, 14:15
Not sure what you mean by that, but when you set an audio stream in Blu-ray, you _HAVE_ to set the subtitles either on or off (you can't just say 'leave subs alone and change audio'). Very annoying, but easy to get around.
Right... I was thinking of 'stream number change' and forgot about the 'display flag' and that I'm checking PSR2 first and then change the audio stream number. Of course it needs about 10 nav-commands (since I don't use Scenarist and can't script it :) )
cyrille
22nd September 2009, 14:43
Great, it works!
thanks a lot
Cyrille
srfscenar
6th November 2009, 17:09
Hi all,
i have tried another solution which seems to be working also.
I have set GPRM1=1 when you select the first subtitle, GPRM1=2 for the second etc. and for the audio streams GPRM2=1 for the first audio, GPRM2=2 for the second etc.
Then on the movie commands, it checks which GPRM is ON and plays the according stream.
That seems to be working great.
I'd love to hear ANY comments on my solution cause i am a newbie on HDMV authoring.
Thanks.
rik1138
6th November 2009, 21:11
Hi all,
i have tried another solution which seems to be working also.
I have set GPRM1=1 when you select the first subtitle, GPRM1=2 for the second etc. and for the audio streams GPRM2=1 for the first audio, GPRM2=2 for the second etc.
Then on the movie commands, it checks which GPRM is ON and plays the according stream.
That seems to be working great.
I'd love to hear ANY comments on my solution cause i am a newbie on HDMV authoring.
Thanks.
Yeah, I usually store subtitles/audio like that for tracking as well, but you also have to know if subtitles are on or off (of course, this depends on what you need it to do).
Do you store a 0 in GPR1 for no subtitles?
If you play a piece of video with no subtitles, then subtitles are turned 'off'. If you store this value it will overwrite your feature subtitle setting. It all depends on what you need the disc to do. Some studios like to remember what subtitle was selected, even when it's off (so, for example, they would want subtitle stream 3 selected, but turned off). So you have to store the subtitle number, as well as an on/off state. No practical reason for this, but they tend to ask for it... But if that's not a concern, then what you are doing will probably work fine.
Rik
srfscenar
6th November 2009, 22:23
Yes rik,
I do store a value of 0 for turning subtitles off.
And by adding all those commands in all the videos in the disc (some of them have subtitles and some of them not) it seems to be working great.
Thanks for your comment!
srfscenar
2nd March 2011, 14:04
Move (GPR)SubsOn[ID:5] 0
if ( (PSR)PG TextST stream and PiP PG TextST stream[ID:2] & 0x80000000 ) Move (GPR)SubsOn[ID:5] 1
SetStream Audio:No=2 PG_textST:[DispOFF]
if ( (GPR)SubsOn[ID:5] == 1 ) PG_textST:[DispON]
Line 1- resets the SubsOn to 0
Line 2- Sets it to 1 if the subtitles are being displayed
Line 3- Changes your audio to stream 2, with subtitles off (obviously, this can be stream 1, etc or a GPR...)
Line 4- Turns subtitles back on if they were previously on
Rik,
please explain to me where do you put those commands?
In the beginning of the feature? And at the buttons that sets the subs and the audio what do you put?
Sorry if i miss the obvious:confused:
rik1138
2nd March 2011, 20:58
Anywhere you would place a command to change the audio stream. These exact lines of code are to be used only WHILE the video with subtitles is playing (like in your pop-up menu over the feature, or the main menu, which should have identical aud/sub streams as your feature- dummy streams).
For example: If you have a button that sets audio stream #2, use these 4 lines of code as the button commands.
If you have bonus content on the disc with only one audio stream (and no subtitles), and your feature has multiple streams, you will need to set your feature back to what ever stream it was on, you'd use 4 commands similar to these, but you'd have to store a 'Are subtitles on/off' state in advance (because after playing your bonus, subs will be 'off' if the bonus has no subtitles) at the beginning of the feature (the 'Pre commands', to use DVD speak)...
If every piece of video on the disc has the exact same number of subtitles, then you can use the code I've written exactly as is everywhere on the disc (which is why some studios put dummy subtitles streams on all of their bonus content).
Basically, if you are going to use 'SetStream Audio:...' anywhere (on a stream that has subtitles), you would use these commands.
Rik
srfscenar
3rd March 2011, 12:32
Thank you Rik,
now I got it and I made it work.
So, because of the reason that when you change an Audio Stream you CAN'T leave unchanged the Subtitle stream and because when you change a Subtitle stream you CAN leave unchanged the audio stream we must put those commands at the POP menus at the buttons that changes an audio stream.
Pop menus that are under a video asset to which we want to change the streams immediately when we watch it.
That's the idea right?
Thanks again!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.