Hendrik Tews <[EMAIL PROTECTED]> writes:
how do I create a subtitle menu with qdvdauthor?
OK, found out myself:
Which subtitle is played is governed by the variable "subtitle",
set it to 64 for the first subtitle stream and set it to 0 to
disable subtitles. You can set this variable for instance with a
button: go into the button dialog ("Edit button"), click on
"Advanced" and then use the subtitle pull down menu. Selecting
"0" there, adds "subtitle=64;" in the line below. There is no
entry for deselecting subtitles, you have to add "subtitle=0;"
manually.
To create a subtitle menu simply create two buttons that select
their own menu (or the main menu or whatever menu) and add a
suitable assignment on subtitle for them.
To force a particular subtitle, add an assignment to the subtitle
variable in the button that jumps to the movie. But this way one
can only deselect the subtitles via other means (eg. remote
control).
To enable a some subtitles by default you can add a suitable
pre-action to the main menu. The pre-action is always executed
when the menu is entered. However, you want to assign the
subtitle variable only the first time. Therefore it is slightly
more complicated:
if ( g5 eq 0 ) { g5=1; subtitle=64; }
Here g5 is one of the general purpose registers (I hope) which is
not used otherwise and which seems to be zero-initialized. Now
subtitles are shown by default, but you can have a button to
disable them (or select a different subtitle stream).
We only have to get this pre-action onto the dvd. In version 1.02
the pre-command field of the main menu seems to forget everything
I enter there. [To find the pre-comman field of some menu:
Maneuver into the dvd structure tree on the bottom left, right
click on the menu and select properties.]
Because the pre-command field does not work, we have to add our
subtitle pre-command the hard way in the dvdauthor.xml: Finish
your dvd authoring and click on "Create DVD" as usual to create
the dvd file structure. When you have reached the "Command Queue
Dialog" don't press "OK" immediately. Instead open a text editor,
point it to the dvdauthor.xml, which is inside the project
directory, inside the tmp directory (what you configured when you
created this project). In there, find the <pre> inside <pgc
entry="title"> and add the above pre-command literally there. In
my simple test project, I changed the file from
[...]
<pgc entry="title" >
<pre> { if ( g4 gt 0 ) button=g4;
if ( g2 gt 0 ) {
if ( g2 eq 1 ) jump titleset 1 menu entry root;
[...]
to
[...]
<pgc entry="title" >
<pre> { if (g5 eq 0) {g5=1; subtitle=64;}
if ( g4 gt 0 ) button=g4;
if ( g2 gt 0 ) {
if ( g2 eq 1 ) jump titleset 1 menu entry root;
[...]
This works for me, at least when viewing the dvd with vlc. Use
my recommandations at your own risk, I have absolutely no clue
about what I am writing here.
Questions:
- It seams qdvdauthor uses g2, g3 and g4. Is g5 always the first
free one? What about g0 and g1? What is the purpose of g2, g3
and g4?
- Where can I find documentation on dvdauthors xml input format?
- I see
<video format="pal" aspect="4:3" resolution="720x576" />
<pgc entry="title" >
and
<titleset>
<menus>
<pgc entry="root" >
in my dvdauthors.xml for a simple test project with one menu,
one movie and three buttons. Does the first one really describe
the main menu? What is the second one good for?
- Is "subtitle=0;" the right thing to disable subtitles?
- The dvdauthor website has two links to dvd documentation, but
for both one has to pay. Is there also some free documentation?
Bye,
Hendrik
=================================================================
Hendrik Tews Postdoc in the Digital Security (DS) group
Radboud Universiteit Nijmegen, The Netherlands
Telefon: +31 24 3652217
e-mail: [EMAIL PROTECTED]
www: http://www.cs.ru.nl/~tews/
pgp key: http://www.cs.ru.nl/~tews/pgpkey.asc
=================================================================
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QDVDAuthor-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users