dvdnav code is actually in MPlayer, but it is currently disabled, with
a comment saying that it doesn't work.  Some code in MPlayer looks
like this:

      switch (dvdnav_event->event) {
      case DVDNAV_BLOCK_OK: {
          /* be silent about this one */
                break;
          }
      case DVDNAV_HIGHLIGHT: {
          dvdnav_highlight_event_t *hevent =
(dvdnav_highlight_event_t*)(dvdnav_event->details);
          if (!hevent) {
                printf("DVDNAV Event: Highlight event broken\n");
                break;
          }

          if (hevent->display && hevent->buttonN>0)
          {
                //dvdnav_priv->seen_root_menu=1; /* if we got a
highlight, we're on a menu */       
                sprintf( dvd_nav_text, "Highlight button %d
(%u,%u)-(%u,%u) PTS %d (now is %5.2f)",
                     hevent->buttonN,
                     hevent->sx,hevent->sy,
                     hevent->ex,hevent->ey,
                     hevent->pts, d_video->pts);
                printf("DVDNAV Event: %s\n",dvd_nav_text);
                //osd_show_dvd_nav_delay = 60;                                         
             

                osd_show_dvd_nav_highlight=1;
                osd_show_dvd_nav_sx=hevent->sx;
                osd_show_dvd_nav_ex=hevent->ex;
                osd_show_dvd_nav_sy=hevent->sy;
                osd_show_dvd_nav_ey=hevent->ey;
          }

This looks promising.  I hacked up the configure files to force dvdnav
to compile, just so I could see for myself what was up with this
feature.  It turns out that dvdnav breaks the compile.  Basically, the
code looks to have been written for an older version of
libdvdnav. Some API calls are even missing arguments that are not
anywhere in MPlayer's data structures, which indicates that the fix
will not exactly be trivial.

So, the code is there, but apparently nobody cares enough to get it
working at the moment.  Maybe I'll give it a shot in my spare time.

But anyway, your average Joe doesn't need to use DVD menus.

And you might want to take this to another list.

:-P

Mike
(who really needs to work on his dry humor...)

On Sat, Sep 27, 2003 at 12:46:59AM -0600, Evan McNabb wrote:
> Is there a way to have an opening menu (to choose a section) on a DVD
> with mplayer? I know there is a plugin for xine and it looks like there
> might have been one a while back. I don't watch movies very often so I
> haven't had to run into this yet. Any ideas?
> 
> -Evan
> 
> -- 
> /********************************************************************\
>        Evan McNabb: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
>                    http://evan.mcnabbs.org
>              System Administrator, CS Department, BYU
>  GnuPG Fingerprint: 53B5 EDCA 5543 A27A E0E1 2B2F 6776 8F9C 6A35 6EA5
> \********************************************************************/



> ____________________
> BYU Unix Users Group 
> http://uug.byu.edu/ 
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

-- 
.__________________________________________________________________.
                Michael A. Halcrow <[EMAIL PROTECTED]>                
           Security Engineer, IBM Linux Technology Center           
GnuPG Fingerprint: 05B5 08A8 713A 64C1 D35D 2371 2D3C FDDA 3EB6 601D

When all is said and done, more usually gets said than done. 

Attachment: pgp00000.pgp
Description: PGP signature

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to