I have a little problem again. I'm making a very simple DVD project with one movie, audio and subtitle stream. I've also have created basic menu with three buttons: "Watch movie", "Subtitle 1" and "No subtitle". What i want is that "Subtitle 1" will be activated when user press "Watch movie" button (or "Subtitle 1" button), but not activated when user press "No subtitle" button. When i checked autostart box in subtitle options "Subtitle 1" is always shown...even when user chooses not to activate subtitles ("No subtitle" button).
Here is dvdauthor xml file:
Code:<?xml version="1.0" encoding="utf-8"?> <dvdauthor dest="d:\DVD\DVD"> <vmgm> <menus> <video format="ntsc"></video> <pgc entry="title"> <pre> { if (g1 eq 0) g1=1; button=g1*1024; } </pre> <vob file="d:\DVD\Temp\MMMenu.mpg" pause="0"/> <button name="MMB1">jump titleset 1 menu;</button> <post>jump titleset 1 menu;</post> </pgc> </menus> </vmgm> <titleset> <menus> <video format="ntsc"></video> <pgc entry="root"> <pre> { subtitle=64; button=1024; } </pre> <vob file="d:\DVD\Temp\TS1Menu.mpg" pause="inf"/> <button name="TS1B1">if (g1 eq 0) {subtitle=64;resume;} else {subtitle=64;jump menu 1;}</button> <button name="TS1B2">if (g1 eq 0) {subtitle=0;resume;} else {subtitle=0;jump menu 1;}</button> <button name="TS1B0">jump title 1 chapter 1;</button> </pgc> </menus> <titles> <audio lang="EN" /> <subpicture lang="ET" /> <pgc> <pre> { g1=0; } </pre> <vob file="d:\DVD\Temp\VTS_01_PGC_01_1 - 0xE0 - Video - MPEG-2 - 720x480 (NTSC) - 16~9 - Letterboxed_SUB1.mpg" chapters="00:00:00.000,some skipped,03:08:42.000"/> <post>call menu;</post> </pgc> </titles> </titleset> </dvdauthor>
+ Reply to Thread
Results 1 to 2 of 2
-
-
Two tips:
1. Is seems to be better to set subtitle=62 to 'really' switch subs off.
2. I would use only 2 buttons on the titlesetmenu:
- Watch movie with subtitles
- Watch movie without subtitles
The corresponding actions would be:
Watch movie with subtitles: subtitle=64; jump title 1 chapter 1;
Watch movie without subtitles: subtitle=62; jump title 1 chapter 1;
The problems is probably, that the action: 'if (g1 eq 0) {subtitle=64;resume;} else {subtitle=64;jump menu 1;}' should be used only for a dedicated subtitle menu, not for a 'normal' titlesetmenu.GUI for dvdauthor:
https://www.videohelp.com/~gfd/
Similar Threads
-
MPC-HC subtitle default
By cheerful in forum Software PlayingReplies: 0Last Post: 30th Oct 2010, 14:27 -
How to enable a DVD subtitle by default?
By dexter30 in forum SubtitleReplies: 1Last Post: 26th Dec 2009, 22:18 -
Subtitle Creator - Unable to set Default Subtitle Colors & Default Prof
By blue2 in forum Authoring (DVD)Replies: 2Last Post: 15th Nov 2009, 22:47 -
how to make a DVD subtitle as a default playing subtitle
By yozloy in forum Authoring (DVD)Replies: 3Last Post: 15th Sep 2008, 10:51 -
How can i set subtitle ON by default?
By shay86 in forum Authoring (DVD)Replies: 3Last Post: 3rd Oct 2007, 08:34