Hello,
i added an additional Audio Track to my DVD. The original DVD includes only an english Audio Track and german Subtitles.
Luckyly there is already a Language Menu on it:
- english Flag starts the Movie with eng Audio Track and no Subs
- german Flag starts the Movie with eng Audio Track and german Subs
I already added the new Audio Track in the DVD (PGCdemux->muxman->VOBblanker->PGCedit) and was able to set the german Audio Track to the german Flag Button via "SetSTN". Everything worked great.
My Problem now is:
this Language Menu also appears at the very beginning, right after you put the DVD in a Player. It's almost the same Menu, just without the Exit Button at the bottom. Sadly this Time i can't set my new Audio Track to the german Flag via "SetSTN", because this command is greyed out! :/
Seems this "first Menu" works different. Maybe somebody can help me with that?
Sorry, if the english is bad...
thanks for your attention
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 25 of 25
Thread
-
-
Seems this "first Menu" works different.
-
Thanks for the replies,
Is it possible that my scratchbook is empty?! When i try to save it, nothing happens. And when i try to open it with the Button, in the upper right corner, there are no commands listed. :/
I made 3 pics of the VMG domain instead, hope this helps:
Or maybe i should upload the ifos?
thanks a lot -
Yeah, that would work, but i want that everything works (the whole structure). :/
-
The scrapbook is empty by default. You can use it to store VM commands that you use frequently, but it is not supposed to reflect the DVD structure. The correct way to copy the whole DVD structure is via the menu Info -> DVD commands (or, for a single PGC, use Info -> PGC). You can also use File -> Backups -> Create Zip Backup. When prompted, include the images of the menus. Finally post the ZIP file in a file sharing service. Anybody will be able to open the backup files in PgcEdit and analyse the navigation more easily than with the DVD Commands info.
As explained by videobruger, the SetSTN command cannot be present in the VMG or VMGM PGCs. If the menu is authored in the VMGM, it has to jump to a PGC somewhere in a VTS to execute the SetSTN command. Usually, the menu buttons changes the value of a GPRM, and then jumps (directly or indirectly) to the PGC where the SetSTN command is located.
Use the search field (in the bottom right corner of the main window) to find all occurrences of SetSTN. You should see the PGC that you have already modified, plus another one. In the second PGC, there will probably be some conditional GOTOs that jump to the correct SetSTN command according to the value of the GPRM that has been modified by the menu button. Change the right SetSTN to suit your needs.
If that seems complicated, use the Trace instead. Just enable trace mode, and follow the navigation step by step. You will see when the SetSTN command is executed. Break the trace and edit it.
And if you are still stuck, post the output of Info -> DVD Commands here (preferably in a CODE section), or better, post a link to the ZIP backup, as explained above.Last edited by r0lZ; 4th Dec 2017 at 04:52.
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV -
Thanks a lot for your reply...
I tried my best, but i can't find the right spot. :/ Is it possible, that there is no command for it ? Because on the original DVD, there is only one Audio Track, so could it be, that there is only a command for setting subtitles yes/no ?
I also tried it over the DVD Commands list, but i can only find 3 "setSTN" Commands on the whole DVD. 2 of them are for subpics and one is for the Audio track, but thats the one from the laguage menu in the root. :/ I can't find a way to edit the "first play" langugage menu. :/
Anyway, i uploaded the DVD Commands List, hope this helps. :/ -
SetSTN can be used to set or change the Subtitles, the Audio and the Angle separately or at the same time with a single command. So yes, if the original DVD has only 1 audio track, it is useless to set the audio, and therefore it is logical that only the subtitle stream is changed. (Similarly, changing the angle doesn't make sense if the movie has only one angle.)
So, you should edit the SetSTN commands you've found so that instead of changing only the subtitle, it changes also the audio according to your need. That should not be too difficult if the SetSTN commands set directly the stream number ("constant track numbers" in PgcEdit). Just select the Audio -> "set to" option in the SetSTN command, and use the slider to specify the audio track to use (0 or 1). However, if the SetSTN commands set the subtitle indirectly, via GPRMs, things can be more difficult. I'll have a look tomorrow, as it is late here, but try to do it yourself first.
[EDIT] I have had a look at the DVD Commands.txt file, and unfortunately, it seems that only the button command sets the subtitles with constant track numbers. The two other SetSTN commands use GPRM 6 to set the audio stream. I will explain tomorrow how to modify the DVD to change the audio track with the subtitles. In the meantime, can you post the ZIP backup as explained above? It will be much easier for me than having to figure out how the navigation works with just the text file.Last edited by r0lZ; 5th Dec 2017 at 18:37.
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV -
OK, I've spent already too much time in trying to analyse the text file. It's too complicated without the backup. Since you have read my previous post (I saw yesterday that you were present), and you have not posted the backup yet, I assume that you are not interested in my analysis, and I give up. Sorry.
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV -
Hum, according to the modifications you did, when the German option is selected in the VTSM 2 menu, the audio is correctly set to track 2 (German) but the subtitles are still enabled. And if the first button is activated, the English audio is selected, without any subtitles. I suppose that you want the English audio + German subtitles with button 1, and German audio without subtitles with button 2. Right ? Anyway, it's what I've made, and I have had to invert the logic of the original DVD.
I did also the same thing with the VMGM menu that appears first.
Obviously, the authoring program that has been used to make that DVD stores the subtitle number in GPRM(6) and the audio track number in GPRM(5), but since the original audio has only 1 single audio track, most commands dealing with GPRM(5) were not present. I have just re-created them. And for the reason explained above, I have inverted the values of GPRM(6) so that now, the subtitle is turned ON when the English audio is selected, and OFF for German.
So, here is what you need to modify (changes or additions are highlighted in red):
Code:VMGM , LU 1 (en) , 2 (dummy) - Chapters: n/a, Programs: 0, Cells: 0 ********** pre commands: [00 A1 00 0F 00 02 00 08] 1 if ( gprm(15) == 2 ) then { Goto line 8 } [00 A1 00 04 00 01 00 06] 2 if ( gprm(4) == 1 ) then { Goto line 6 } [71 00 00 06 00 40 00 00] 3 Set gprm(6) =(mov) 64 [71 00 00 05 00 00 00 00] 4 Set gprm(5) =(mov) 0 [00 01 00 00 00 00 00 08] 5 Goto line 8 [71 00 00 06 00 00 00 00] 6 Set gprm(6) =(mov) 0 [71 00 00 05 00 01 00 00] 7 Set gprm(5) =(mov) 1 [30 06 00 01 02 83 00 00] 8 (JumpSS) Jump to VTSM 2, Root menu (TTN 1) ********** post commands: ********** cell commands:
Code:VTSM 2 , LU 1 (en) , 8 (0:30) 3b. - Chapters: n/a, Programs: 1, Cells: 1 ********** pre commands: [71 00 00 00 00 07 00 00] 1 Set gprm(0) =(mov) 7 [71 00 00 01 0C 00 00 00] 2 Set gprm(1) =(mov) 3072 [00 A1 00 06 00 00 00 06] 3 if ( gprm(6) == 0 ) then { Goto line 6 } [56 00 00 00 04 00 00 00] 4 (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1) [20 06 00 00 00 00 00 01] 5 LinkPGN Program 1 [56 00 00 00 08 00 00 00] 6 (SetHL_BTN) Set Highlighted Button =(mov) 2048 (button 2) [00 01 00 00 00 00 00 05] 7 Goto line 5 ********** post commands: [61 00 00 06 00 82 00 00] 1 Set gprm(6) =(mov) sprm(2:Sub-picture track number) [61 00 00 05 00 81 00 00] 2 Set gprm(5) =(mov) sprm(1:Audio track number) [71 04 00 00 00 00 00 01] 3 Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1 ********** cell commands: [20 07 00 00 00 00 00 01] 1 LinkCN Cell 1 ********** menu buttons commands: VOB ID 9, Cell ID 1 (First NAV pack LBA=52540) 1 Group, Select button=0, Action button=0, 3 numerically selectable buttons. 1: [51 01 00 80 C0 00 04 0D] (SetSTN) Set Audio track = 0 ; Set Sub-picture track = 0, on ; LinkTailPGC, button 1 (1024) 2: [51 01 00 81 80 00 08 0D] (SetSTN) Set Audio track = 1 ; Set Sub-picture track = 0, off ; LinkTailPGC, button 2 (2048) 3: [71 04 00 00 00 00 00 01] Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1
Code:VTST 2 , 1 TTN 1 (1:33:39) Title 4 - Chapters: 44, Programs: 44, Cells: 44 ********** pre commands: [00 A1 00 0B 00 01 00 03] 1 if ( gprm(11) == 1 ) then { Goto line 3 } [30 08 00 00 01 00 00 00] 2 (CallSS) Call the First Play PGC, resume cell 1 [71 00 00 0F 00 03 00 00] 3 Set gprm(15) =(mov) 3 [71 00 00 0C 00 00 00 00] 4 Set gprm(12) =(mov) 0 [41 00 00 85 86 00 00 00] 5 (SetSTN) Set Audio track = gprm(5) ; Set Sub-picture track = gprm(6) ********** post commands: [71 00 00 00 00 00 00 00] 1 Set gprm(0) =(mov) 0 [71 00 00 01 04 00 00 00] 2 Set gprm(1) =(mov) 1024 [71 00 00 0C 00 63 00 00] 3 Set gprm(12) =(mov) 99 [30 08 00 00 01 83 00 00] 4 (CallSS) Call the VTSM Root menu of the current VTS, resume cell 1 ********** cell commands:
Note that you can simply copy the commands from the code above and paste them in PgcEdit. Just copy the numbers between [ and ] and use Paste Replace, Paste Before or Paste After to paste them at the right locations. Verify also that the Goto commands point to the right line number after your edits.
Please verify carefully if it's what you need (with the PgcEdit trace or a good player, or burn a DVD-RW first), as I have not verified myself.
And the next time you need help, post immediately the ZIP backup.Last edited by r0lZ; 6th Dec 2017 at 11:34.
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV -
Wow, so fast?!
I'll check that, when i'm home and give feedback... Thanks a lot. I really appreciate...
-
I just edited everything and it works!
Unfortunately i forgot to mention that i need:
german audio with german subs
and
english audio without any subs
It's a documentary and not completely synchronized in german, so i made german subs for the parts still in english.
I tried to fix it by myself, but i have a little problem. For the "first play" menu it works by editing this:
Code:VMGM , LU 1 (en) , 2 (dummy) - Chapters: n/a, Programs: 0, Cells: 0 ********** pre commands: [00 A1 00 0F 00 02 00 08] 1 if ( gprm(15) == 2 ) then { Goto line 8 } [00 A1 00 04 00 01 00 06] 2 if ( gprm(4) == 1 ) then { Goto line 6 } [71 00 00 06 00 40 00 00] 3 Set gprm(6) =(mov) 0 [71 00 00 05 00 00 00 00] 4 Set gprm(5) =(mov) 0 [00 01 00 00 00 00 00 08] 5 Goto line 8 [71 00 00 06 00 00 00 00] 6 Set gprm(6) =(mov) 64 [71 00 00 05 00 01 00 00] 7 Set gprm(5) =(mov) 1 [30 06 00 01 02 83 00 00] 8 (JumpSS) Jump to VTSM 2, Root menu (TTN 1) ********** post commands: ********** cell commands:
Code:VTSM 2 , LU 1 (en) , 8 (0:30) 3b. - Chapters: n/a, Programs: 1, Cells: 1 ********** pre commands: [71 00 00 00 00 07 00 00] 1 Set gprm(0) =(mov) 7 [71 00 00 01 0C 00 00 00] 2 Set gprm(1) =(mov) 3072 [00 A1 00 06 00 00 00 06] 3 if ( gprm(6) == 0 ) then { Goto line 6 } [56 00 00 00 04 00 00 00] 4 (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1) [20 06 00 00 00 00 00 01] 5 LinkPGN Program 1 [56 00 00 00 08 00 00 00] 6 (SetHL_BTN) Set Highlighted Button =(mov) 2048 (button 2) [00 01 00 00 00 00 00 05] 7 Goto line 5 ********** post commands: [61 00 00 06 00 82 00 00] 1 Set gprm(6) =(mov) sprm(2:Sub-picture track number) [61 00 00 05 00 81 00 00] 2 Set gprm(5) =(mov) sprm(1:Audio track number) [71 04 00 00 00 00 00 01] 3 Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1 ********** cell commands: [20 07 00 00 00 00 00 01] 1 LinkCN Cell 1 ********** menu buttons commands: VOB ID 9, Cell ID 1 (First NAV pack LBA=52540) 1 Group, Select button=0, Action button=0, 3 numerically selectable buttons. 1: [51 01 00 80 C0 00 04 0D] (SetSTN) Set Audio track = 0 ; Set Sub-picture track = 0, off ; LinkTailPGC, button 1 (1024) 2: [51 01 00 81 80 00 08 0D] (SetSTN) Set Audio track = 1 ; Set Sub-picture track = 0, on ; LinkTailPGC, button 2 (2048) 3: [71 04 00 00 00 00 00 01] Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1
I'm still not getting behind it. :/ -
Damn! It's what I asked with this:
So, indeed, you have to change the value of GPRM(6) everywhere from 64 to 0 and from 0 to 64 (to revert the logic again). It's what you did in VMGM 2, and in VTSM 8. 2, but you forgot to change if ( gprm(6) == 0 ) then { Goto line 6 } to if ( gprm(6) == 64 ) then { Goto line 6 }
If I understand correctly the navigation, that line should change only the button that is highlighted by default when you enter the language menu (VTSM 2, 8). It doesn't change the language of the subtitles and audio track. With your modifications, everything should work as you want, but if you select German in the first menu and then you go to the other language menu, the English button will be selected, and vice-versa. Not a big problem IMO, but to fix that little problem, you have just to change the line in red above in VTSM 2 , LU 1 (en) , 8, and that should be perfect.Last edited by r0lZ; 7th Dec 2017 at 05:09.
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV -
Ok, just edited it and it works.
I'm so happy, you helping me this and thanks a lot for your patience... but i noticed another thing.There seems to be some kind of interaction, depending wich button i choose in the "first play" menu...
I try to explain:
"First Play" Menu -> Button 1 (eng) -> Hit directly "Play" in Root Menu -> everything is fine. But no matter what i choose in the "Root" Language Menu, Audio will always be english.
"First Play" Menu -> Button 2 (ger) -> Hit directly "Play" in Root Menu -> everything is fine. But no matter what i choose in the "Root" Language Menu, Audio will always be german.
Subtitles are always "right" at all constellations.
Maybe you have one last hint for me? Did i messed up something? Here is the current backup:Last edited by schmutzbrust; 7th Dec 2017 at 16:08.
-
Hum, at a first glance, I think that what I did is correct, but I'll verify tomorrow.
But verify post command #2 in VTSM 2, 8:
2 Set gprm(5) =(mov) sprm(1:Audio track number)
And verify also if the two buttons of the second menu set the correct audio track.r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV -
Should be fine:
Maybe it's the best idea to simply scap that "first play" thing completely, but i assume that won't fix it? Slowly feeling uncomfortable, taking so much of your time. :/
I also made another discovery. The Root Menu switches, appending what Button you choose at the start. The Commands "Play" "Chapters" "Setup" becomes "Abspielen" "Kapitel" and so on...
Maybe this gives you some Clue?Last edited by schmutzbrust; 8th Dec 2017 at 12:22.
-
OK, there are too many things that have changed now. Please load the ORIGINAL IFOs, create a ZIP backup and when prompted, select include the menu IMAGES (not small VOB!). Post the ZIP here. I will start over. Keep the current IFOs and VOBs with the new German audio, as you will need them later, but I want the original, unmodified IFOs.
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV -
ok here it is... (i made the whole thing new from beginning, because i made some improvements to my subtitles). These are the files/ifos i got directly from VOBBlanker.
-
OK, I have the solution.
I assume that you know how to modify the PGC and the Domain Stream Attributes of the main movie to add the new audio track, since you did it already the first time. I will explain only the VM commands to modify. As above, the red lines are the commands to add or modify. There are also blue lines, that are optional.
Note that I have assigned a label to 3 GPRMs, just to make things easier to understand. If you wish, you can do it too with Info -> GPRMs, but it's not at all mandatory, as anyway, the labels are ignored when the final IFOs are built. The 3 labels are:
gprm(4) language
gprm(5) audio
gprm(6) subtitle
Let's begin with an optional command. Insert it only if you want the Detusch button highlighted by default in the first language menu.
Code:VMG , First-Play PGC - Chapters: n/a, Programs: n/a, Cells: n/a ********** pre commands: [71 00 00 04 00 01 00 00] 1 Set gprm(4:language) =(mov) 1 [30 06 00 00 00 42 00 00] 2 (JumpSS) Jump to VMGM Title menu ********** post commands: ********** cell commands:
Be sure to verify the Gotos, because the line numbers have changed due to the new lines. (They should change automatically, but verify anyway.)
Note that the video (with the two buttons) of this PGC cannot be played. It is therefore useless to modify the button commands.
Code:********** pre commands: [00 A1 00 0F 00 02 00 08] 1 if ( gprm(15) == 2 ) then { Goto line 8 } [00 A1 00 04 00 01 00 06] 2 if ( gprm(4:language) == 1 ) then { Goto line 6 } [71 00 00 05 00 00 00 00] 3 Set gprm(5:audio) =(mov) 0 [71 00 00 06 00 00 00 00] 4 Set gprm(6:subtitles) =(mov) 0 [00 01 00 00 00 00 00 08] 5 Goto line 8 [71 00 00 05 00 01 00 00] 6 Set gprm(5:audio) =(mov) 1 [71 00 00 06 00 40 00 00] 7 Set gprm(6:subtitles) =(mov) 64 [30 06 00 01 02 83 00 00] 8 (JumpSS) Jump to VTSM 2, Root menu (TTN 1) ********** post commands: ********** cell commands:
The two optional blue lines are necessary only if you want that the text written in the menus change to reflect the selected language. In the original DVD, the language used for the text of the menu buttons is the language selected in the very first menu, and it is not possible to change it later. With the two blue lines, it will change also if you change the language in the second language menu. (If you do not add that two lines, the Goto must point to line 6 instead of 8. In all cases, it must point to the last post-command.)
The menu buttons of this PGC do NOT need to be changed. (It's because you changed them in your attempt that I had difficulties to understand the logic used by the original authoring.) They set the sprm(6) (holding the subtitle) to 0 or 64 according to the selected language. I have just added the logic to change also the gprm(5) holding the current audio stream, and I've added the SetSTN commands. (I'm not sure the SetSTN commands are really necessary here, as a SetSTN is also used in the PGC of the main movie, but they doesn't hurt anyway.)
Code:VTSM 2 , LU 1 (en) , 8 (0:30) 3b. - Chapters: n/a, Programs: 1, Cells: 1 ********** pre commands: [71 00 00 00 00 07 00 00] 1 Set gprm(0) =(mov) 7 [71 00 00 01 0C 00 00 00] 2 Set gprm(1) =(mov) 3072 [00 A1 00 06 00 40 00 06] 3 if ( gprm(6:subtitles) == 64 ) then { Goto line 6 } [56 00 00 00 04 00 00 00] 4 (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1) [20 06 00 00 00 00 00 01] 5 LinkPGN Program 1 [56 00 00 00 08 00 00 00] 6 (SetHL_BTN) Set Highlighted Button =(mov) 2048 (button 2) [00 01 00 00 00 00 00 05] 7 Goto line 5 ********** post commands: [71 00 00 04 00 00 00 00] 1 Set gprm(4:language) =(mov) 0 [71 00 00 05 00 00 00 00] 2 Set gprm(5:audio) =(mov) 0 [51 00 00 80 80 00 00 00] 3 (SetSTN) Set Audio track = 0 ; Set Sub-picture track = 0, off [00 A1 00 06 00 00 00 08] 4 if ( gprm(6:subtitles) == 0 ) then { Goto line 8 } [71 00 00 04 00 01 00 00] 5 Set gprm(4:language) =(mov) 1 [71 00 00 05 00 01 00 00] 6 Set gprm(5:audio) =(mov) 1 [51 00 00 81 C0 00 00 00] 7 (SetSTN) Set Audio track = 1 ; Set Sub-picture track = 0, on [71 04 00 00 00 00 00 01] 8 Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1 ********** cell commands: [20 07 00 00 00 00 00 01] 1 LinkCN Cell 1
Code:VTST 2 , 1 TTN 1 (1:33:39) Title 4 - Chapters: 44, Programs: 44, Cells: 44 ********** pre commands: [00 A1 00 0B 00 01 00 03] 1 if ( gprm(11) == 1 ) then { Goto line 3 } [30 08 00 00 01 00 00 00] 2 (CallSS) Call the First Play PGC, resume cell 1 [71 00 00 0F 00 03 00 00] 3 Set gprm(15) =(mov) 3 [71 00 00 0C 00 00 00 00] 4 Set gprm(12) =(mov) 0 [41 00 00 85 86 00 00 00] 5 (SetSTN) Set Audio track = gprm(5:audio) ; Set Sub-picture track = gprm(6:subtitles) ********** post commands: [71 00 00 00 00 00 00 00] 1 Set gprm(0) =(mov) 0 [71 00 00 01 04 00 00 00] 2 Set gprm(1) =(mov) 1024 [71 00 00 0C 00 63 00 00] 3 Set gprm(12) =(mov) 99 [30 08 00 00 01 83 00 00] 4 (CallSS) Call the VTSM Root menu of the current VTS, resume cell 1 ********** cell commands:
I hope that this time, it's exactly what you want.
Have fun!Last edited by r0lZ; 9th Dec 2017 at 07:40.
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV -
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV
Similar Threads
-
[PGCEDIT] Help on executing Title Button and Menu Button on the PGCEDIT
By kirous in forum Authoring (DVD)Replies: 1Last Post: 1st Jan 2017, 21:47 -
DVD to mp4/m4v to sync additional audio to the video... Settings advice?
By nobodyhome in forum DVD RippingReplies: 5Last Post: 12th May 2016, 15:28 -
Adding an audio track and subtitle track to a DVD?
By killerteengohan in forum Authoring (DVD)Replies: 2Last Post: 9th May 2015, 19:35 -
How do I (BATCH) set a specific subtitle track, and audio track as default?
By MountainSplash00 in forum Newbie / General discussionsReplies: 3Last Post: 2nd Dec 2014, 07:53 -
Software for syncing and muxing audio track with video track?
By uranometria in forum Video ConversionReplies: 1Last Post: 21st Jul 2014, 02:52