VideoHelp Forum

+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member
    Join Date
    Mar 2013
    Location
    Argentina
    Search Comp PM
    I just added an Spanish audio to a DVD successfully. My main problem is when you play the DVD it gives you a choice of 2 languages: English and French.
    I want to make those 2 buttons redirect to the Spanish custom audio with PGCEdit, but I don't understand very well how to do it.
    (I think this is the correct VMGM)

    VMGM , LU 1 (--) , 2 (0:00) 2b. - Chapters: n/a, Programs: 1, Cells: 1

    ********** pre commands:
    1 Set gprm(0) =(mov) 0
    2 Set gprm(1) =(mov) 0
    3 Set gprm(2) =(mov) 0
    4 Set gprm(3) =(mov) 0
    5 Set gprm(4) =(mov) 0
    6 Set gprm(5) =(mov) 0
    7 Set gprm(6) =(mov) 0
    8 Set gprm(7) =(mov) 0
    9 Set gprm(8) =(mov) 0
    10 Set gprm(9) =(mov) 0
    11 Set gprm(10) =(mov) 0
    12 Set gprm(14) =(mov) 0
    13 Set gprm(15) =(mov) 0
    14 (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1)
    15 Set gprm(14) =(mov) sprm(16:Preferred audio language)
    16 if ( gprm(14) != 26226 ("fr") ) then { Goto line 18 }
    17 (SetHL_BTN) Set Highlighted Button =(mov) 2048 (button 2)
    18 NOP
    ********** post commands:
    1 Set gprm(14) =(mov) sprm(8:Highlighted button number)
    2 Set gprm(14) /=(div) 1024
    3 Set gprm(10) =(mov) gprm(14)
    4 if ( gprm(14) == 2 ) then { Goto line 8 }
    5 Set gprm(2) =(mov) 0
    6 Set gprm(3) =(mov) 0
    7 Goto line 10
    8 Set gprm(2) =(mov) 1
    9 Set gprm(3) =(mov) 2
    10 Set gprm(6) =(mov) 1
    11 LinkPGCN PGC 3
    ********** cell commands:
    The English audio is 0, Spanish 1 and French 2. I swap between Spanish and French to make the French button play the Spanish audio. But I prefer both redirecting to the Spanish audio from that initial audio selection.

    Also, how to skip that screen with PGCEDit? Would be OK making Spanish default and after inserting the DVD just going to the menu directly w/o going to that language selection screen. That could be more easy, but anyway would be to good know both ways.

    P.S.: I've attached the IFO backup if the provided VMGM is not the correct.
    Image Attached Files
    Last edited by Jorchking; 27th Mar 2022 at 03:20.
    Quote Quote  
  2. The audio (and subtitle) is set by SetSTN. It can't be used in VMGM but is restricted to the VTS domain.

    You could set it in the pre-command to the movie(s) like this:

    Image
    [Attachment 64028 - Click to enlarge]


    and select the audio track:

    Image
    [Attachment 64029 - Click to enlarge]
    Quote Quote  
  3. Member
    Join Date
    Mar 2013
    Location
    Argentina
    Search Comp PM
    Originally Posted by videobruger View Post
    The audio (and subtitle) is set by SetSTN. It can't be used in VMGM but is restricted to the VTS domain.

    You could set it in the pre-command to the movie(s) like this:

    Image
    [Attachment 64028 - Click to enlarge]


    and select the audio track:

    Image
    [Attachment 64029 - Click to enlarge]
    doing that will ignore the language selection in the language screen when playing the DVD?
    Quote Quote  
  4. Originally Posted by Jorchking View Post
    Originally Posted by videobruger View Post
    The audio (and subtitle) is set by SetSTN. It can't be used in VMGM but is restricted to the VTS domain.

    You could set it in the pre-command to the movie(s) like this:

    Image
    [Attachment 64028 - Click to enlarge]


    and select the audio track:

    Image
    [Attachment 64029 - Click to enlarge]
    doing that will ignore the language selection in the language screen when playing the DVD?
    It can. If you add the command to change the language to Spanish as a pre-command for VTS 3, then it will override any menu selection you made previously for that video.
    Quote Quote  
  5. Member Skiller's Avatar
    Join Date
    Oct 2013
    Location
    Germany
    Search PM
    Building up on this idea, you can make the menu buttons write a value to a suitable GPRM and then read out this GPRM in the pre-commands of the movie to play the correct language via some simple code logic.


    For example.


    [English button activated]

    Set gprm(x) = (mov) 1234
    etc...


    [French button activated]

    Set gprm(x) = (mov) 5678
    etc...


    [Pre-commands of the PGC]

    (SetSTN) Set Audio Stream = 1 #default to Spanish
    If ( gprm(x) != 1234 ) then { Goto line x } #execute the next line only if English was selected
    (SetSTN) Set Audio Stream = 0 #Switch to English
    Last edited by Skiller; 27th Mar 2022 at 18:56.
    Quote Quote  



Similar Threads