Help with menus and subtitles

View: New views
5 Messages — Rating Filter:   Alert me  

Help with menus and subtitles

by Miguel V. S. Frasson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear list

I have one mpeg file with 2 subtitles.  the final DVD will have only one main menu with 3 buttons:
Play
Play with English subtitles (sup 1)
Play with Portuguese subtitles (sup 0)

Does anyone has simple xml files for spumux to make the mpeg menu and for dvdauthor to set commands correctly? I have not seen any examples of subtitles menus.

Many tanks in advance.

Miguel

--
Miguel Vinicius Santini Frasson
mvsfrasson@...
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users@...
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users

Re: Help with menus and subtitles

by Wolfgang Wershofen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Miguel V. S. Frasson schrieb:

> Dear list
>
> I have one mpeg file with 2 subtitles.  the final DVD will have
> only one main menu with 3 buttons: Play Play with English subtitles
> (sup 1) Play with Portuguese subtitles (sup 0)
>
> Does anyone has simple xml files for spumux to make the mpeg menu
> and for dvdauthor to set commands correctly? I have not seen any
> examples of subtitles menus.
>
Subtitles may come in two different ways:
1. As forced subtitles, displayed even when subtitles are disabled. If
for instance one or more persons in the movie talk in a different
(maybe even fictious) language than the rest of the movie and the
viewer should know, what they are talking about, then forced subtitles
are used.

2. As Non-forced subtitles, only displayed if subtitles are turned on.
These are generally used for movies that are not synchronized into the
viewer's language.

For both types, a movie may have up to 32 different subtitle tracks,
ranging from 0-31 for the forced subtitles and 64-95 for the
non-forced subs.

That's roughly what I know about subtitles. Maybe others may correct
me, if I stated something wrong...

I presume, you are talking about non-forced subtitles, so your
portuguese subs will have a stream id of 64 and the english version
65. Which stream id should be displayed as subtitle is handled with
the special register "subtitle" in the xml file. So your xml may look
something like this:

<dvdauthor>
<vmgm />
 <titleset>
  <menus>
   <pgc entry="root" pause="0">
    <pre> { if (subtitle lt 64) subtitle=0; } </pre>
    <vob file="menu.mpg" pause="inf" />
    <button name="play"> { if (subtitle ge 64) subtitle=subtitle-64;
jump title 1 chapter 1; } </button>
    <button name="play_en"> { subtitle=65; jump title 1 chapter 1; }
</button>
    <button name="play_pt"> { subtitle=64; jump title 1 chapter 1; }
</button>
   </pgc>
  </menus>
  <titles>
   <subtitle lang="PT">
   <subtitle lang="EN">
   <pgc>
    <vob file="movie.mpg" />
   </pgc>
  </titles>
 </titleset>
</dvdauthor>

As you may notice, the subtitle stream for the first button is
calculated by subtracting 64 from a previously existing value in that
register. This way, you may switch between existing forced and
non-forced subtitles of the same language, if the mpeg has
corresponding forced subtitles and the streams are ordered correctly.

hth
Wolfgang

- --
Geek by nature, Linux by choice

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpeFKgUafbxFH+p8RAiYuAJ9WSXgEqVU37k4c9bXw+CEgP53G9gCfeJSX
rUyODrExcFaxhUMfu0wiGC4=
=7ALc
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users@...
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users

Re: Help with menus and subtitles

by Bob Hairgrove :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 2. As Non-forced subtitles, only displayed if subtitles are turned on.
> These are generally used for movies that are not synchronized into the
> viewer's language.
>
> For both types, a movie may have up to 32 different subtitle tracks,
> ranging from 0-31 for the forced subtitles and 64-95 for the
> non-forced subs.
>
> That's roughly what I know about subtitles. Maybe others may correct
> me, if I stated something wrong...

It's the other way around, according to the man page for dvdauthor:
0-31 for subtitles which can be switched on and off, and 64-95
for forced subtitles. However, I am struggling with this myself, so
I can't verify whether maybe the man page got it backwards or not! :)

Re: Help with menus and subtitles

by Giacomo Comes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 09, 2007 at 02:47:44PM -0800, Bob Hairgrove wrote:

>
> > 2. As Non-forced subtitles, only displayed if subtitles are turned on.
> > These are generally used for movies that are not synchronized into the
> > viewer's language.
> >
> > For both types, a movie may have up to 32 different subtitle tracks,
> > ranging from 0-31 for the forced subtitles and 64-95 for the
> > non-forced subs.
> >
> > That's roughly what I know about subtitles. Maybe others may correct
> > me, if I stated something wrong...
>
> It's the other way around, according to the man page for dvdauthor:
> 0-31 for subtitles which can be switched on and off, and 64-95
> for forced subtitles. However, I am struggling with this myself, so
> I can't verify whether maybe the man page got it backwards or not! :)

A dvd can have up to 32 subtitles with id 0 .. 31.
The subtitle id is selected with the option -s of spumux (spumux -s n)

For example let's consider n=0.
The subtitle of stream id 0 is composed of several pictures.
Each picture has several attributes (start time, end time, colors, etc).
One attribute selects if the picture is a forced subtitle or not.

If in the dvdauthor xml file you set:
subtitle=64
then only the pictures of the subtitle stream with id 0 that have the
forced attribute will be displayed. If you set:
subtitle=0
then all the pictures of the subtitle stream with id 0 will be displayed
regardeless of the forced attribute.

I hope this clarifyes the matter.

Ciao
Giacomo

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users@...
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users

Re: Help with menus and subtitles

by Giacomo Comes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 10, 2007 at 10:42:43PM -0400, Giacomo Comes wrote:

> On Fri, Nov 09, 2007 at 02:47:44PM -0800, Bob Hairgrove wrote:
> >
> > > 2. As Non-forced subtitles, only displayed if subtitles are turned on.
> > > These are generally used for movies that are not synchronized into the
> > > viewer's language.
> > >
> > > For both types, a movie may have up to 32 different subtitle tracks,
> > > ranging from 0-31 for the forced subtitles and 64-95 for the
> > > non-forced subs.
> > >
> > > That's roughly what I know about subtitles. Maybe others may correct
> > > me, if I stated something wrong...
> >
> > It's the other way around, according to the man page for dvdauthor:
> > 0-31 for subtitles which can be switched on and off, and 64-95
> > for forced subtitles. However, I am struggling with this myself, so
> > I can't verify whether maybe the man page got it backwards or not! :)
>
> A dvd can have up to 32 subtitles with id 0 .. 31.
> The subtitle id is selected with the option -s of spumux (spumux -s n)
>
> For example let's consider n=0.
> The subtitle of stream id 0 is composed of several pictures.
> Each picture has several attributes (start time, end time, colors, etc).
> One attribute selects if the picture is a forced subtitle or not.
>
> If in the dvdauthor xml file you set:
> subtitle=64
> then only the pictures of the subtitle stream with id 0 that have the
> forced attribute will be displayed. If you set:
> subtitle=0
> then all the pictures of the subtitle stream with id 0 will be displayed
> regardeless of the forced attribute.
>
> I hope this clarifyes the matter.

It was late when I wrote this and I did the most stupid mistake.
It's the other way around: subtitle=0 shows only forced subtitles and
subtitle=64 shows all the subtitles.

Ciao
Giacomo

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users@...
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users