public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] mplayer with dvdread ..
@ 2003-04-08 17:39 Henti Smith
  2003-04-08 20:18 ` Martin Schlemmer
  0 siblings, 1 reply; 7+ messages in thread
From: Henti Smith @ 2003-04-08 17:39 UTC (permalink / raw
  To: gentoo-dev

hi all 

I been battling to get mplayer with dvd working and I went throught the mplayer dvd docs.
libdvdread is included in the tarball and can be used but I see there is also a media-libs/libdvdread-0.9.4

mplayer has advd option but it only uses the media-libs/libdvdnav library .. and in the docs it says this

DVD Navigation support (dvdnav)
                                                                                                                  
   Support for DVD navigation via dvdnav was being worked on, but it was never finished properly and it is
   currently unmaintained. Who knows, it might even compile.

   MPlayer uses libdvdread and libdvdcss for DVD decryption and playback. These two libraries are contained
   in the libmpdvdkit2/ subdirectory of the MPlayer source tree, you do not have to install them
   separately. We opted for this solution because we had to fix a libdvdread bug and apply a patch which
   adds cracked CSS keys caching support to libdvdcss. This results in a large speed increase because the
   keys do not have to be cracked every time before playing.

   MPlayer can also use system-wide libdvdread and libdvdcss libraries, but this solution is not
   recommended, as it can result in bugs, library incompatibilities and slower speed.

Using this info I patched mplayer to use the internal libdvdread and libdvdcss libraries and it work wonderfully.

Would it be recommended to alter the ebuild for mplayer to use the internal libraries .. maby changing the lib names to reflect mplayer use only and patching mplayer for that then sticking with the current non working solution ? 

Henti Smith 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread ..
  2003-04-08 17:39 [gentoo-dev] mplayer with dvdread Henti Smith
@ 2003-04-08 20:18 ` Martin Schlemmer
  2003-04-09  9:09   ` Henti Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Schlemmer @ 2003-04-08 20:18 UTC (permalink / raw
  To: Henti Smith; +Cc: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 2496 bytes --]

On Tue, 2003-04-08 at 19:39, Henti Smith wrote:
> hi all 
> 
> I been battling to get mplayer with dvd working and I went throught the mplayer dvd docs.
> libdvdread is included in the tarball and can be used but I see there is also a media-libs/libdvdread-0.9.4
> 
> mplayer has advd option but it only uses the media-libs/libdvdnav library .. and in the docs it says this
> 
> DVD Navigation support (dvdnav)
>                                                                                                                   
>    Support for DVD navigation via dvdnav was being worked on, but it was never finished properly and it is
>    currently unmaintained. Who knows, it might even compile.
> 
>    MPlayer uses libdvdread and libdvdcss for DVD decryption and playback. These two libraries are contained
>    in the libmpdvdkit2/ subdirectory of the MPlayer source tree, you do not have to install them
>    separately. We opted for this solution because we had to fix a libdvdread bug and apply a patch which
>    adds cracked CSS keys caching support to libdvdcss. This results in a large speed increase because the
>    keys do not have to be cracked every time before playing.
> 
>    MPlayer can also use system-wide libdvdread and libdvdcss libraries, but this solution is not
>    recommended, as it can result in bugs, library incompatibilities and slower speed.
> 
> Using this info I patched mplayer to use the internal libdvdread and libdvdcss libraries and it work wonderfully.
> 
> Would it be recommended to alter the ebuild for mplayer to use the internal libraries .. maby changing the lib names to reflect mplayer use only and patching mplayer for that then sticking with the current non working solution ? 
> 

Afiak, if you have 'dvd' in USE, it enables --enable-mpdvdkit, which
DOES use the libdvdread and libdvdcss included with mplayer.  This is
shown here as from ebuild:

----------------------------------------------------------------------
  use dvd \
      && myconf="${myconf} --enable-mpdvdkit --enable-dvdnav" \
      || myconf="${myconf} --disable-mpdvdkit --disable-dvdread \
                           --disable-css --disable-dvdnav"
----------------------------------------------------------------------

We may just disable the dvdnav support if that is wat breaks things for
you ...


Regards,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa




[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread ..
  2003-04-08 20:18 ` Martin Schlemmer
@ 2003-04-09  9:09   ` Henti Smith
  2003-04-09 20:33     ` Martin Schlemmer
  0 siblings, 1 reply; 7+ messages in thread
From: Henti Smith @ 2003-04-09  9:09 UTC (permalink / raw
  To: azarah; +Cc: gentoo-dev

On 08 Apr 2003 22:18:29 +0200
Martin Schlemmer <azarah@gentoo.org> wrote:

> Afiak, if you have 'dvd' in USE, it enables --enable-mpdvdkit, which
> DOES use the libdvdread and libdvdcss included with mplayer.  This is
> shown here as from ebuild:
> 
> ----------------------------------------------------------------------
>   use dvd \
>       && myconf="${myconf} --enable-mpdvdkit --enable-dvdnav" \
>       || myconf="${myconf} --disable-mpdvdkit --disable-dvdread \
>                            --disable-css --disable-dvdnav"
> ----------------------------------------------------------------------

I thought so as well ... but if you go throught the documentation in mplayer 
and you have dvd specified .. it will use libdvdread and libdvdcss if its installed on your machine

and the ebuild does not have libdvdread or libdvdcss in the RDEPEND settings .. so if you run a stock box and USE="dvd" 
and emerge mplayer you only get dvd-nav which does not work.

> We may just disable the dvdnav support if that is wat breaks things for
> you ...

dvd support works fine ... but it's not enabled .. 

to get mplayer to emerge with dvd support correctly you have to emerge libdvdread and libdvdcss manually .. 
and then USE="dvd" and emerge mplayer.

As I pointed out in the original mail this is not recommended by the mplayer developers anyway and they suggest you use the internal libdvdread and libdvdcss libs they supply.

I'm more then happy to create a new ebuild with correct patching to make this work (I hacked a ebuild to get everything working on my system) 
hence the suggestion to change the mplayer spacific libs to libmplaydvdread and libmplaydvdcss instead of the defaultsa so you can use both libs without 
cuaseing problems.

I really do think think this is a good thing to have fixed as alot of guy I know are looking at mplayer for DVD playback and would not knwo that they need to 
have libdvdread and libdvdcss installed before emerging mplayer

Henti Smith

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread ..
  2003-04-09  9:09   ` Henti Smith
@ 2003-04-09 20:33     ` Martin Schlemmer
  2003-04-10  8:50       ` Henti Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Schlemmer @ 2003-04-09 20:33 UTC (permalink / raw
  To: Henti Smith; +Cc: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 4553 bytes --]

On Wed, 2003-04-09 at 11:09, Henti Smith wrote:
> On 08 Apr 2003 22:18:29 +0200
> Martin Schlemmer <azarah@gentoo.org> wrote:
> 
> > Afiak, if you have 'dvd' in USE, it enables --enable-mpdvdkit, which
> > DOES use the libdvdread and libdvdcss included with mplayer.  This is
> > shown here as from ebuild:
> > 
> > ----------------------------------------------------------------------
> >   use dvd \
> >       && myconf="${myconf} --enable-mpdvdkit --enable-dvdnav" \
> >       || myconf="${myconf} --disable-mpdvdkit --disable-dvdread \
> >                            --disable-css --disable-dvdnav"
> > ----------------------------------------------------------------------
> 
> I thought so as well ... but if you go throught the documentation in mplayer 
> and you have dvd specified .. it will use libdvdread and libdvdcss if its installed on your machine
> 

Having 'dvd' specified in USE will have no effect if the ebuild do not
tweak ./configure time options.  But I think I do not fully understand
what you are getting at here ...

> and the ebuild does not have libdvdread or libdvdcss in the RDEPEND settings .. so if you run a stock box and USE="dvd" 
> and emerge mplayer you only get dvd-nav which does not work.
> 

No, look at that bit I pasted.  It add the '--enable-mpdvdkit' flag,
which enables the internal libdvdread and libdvdcss.  It works fine
over here ... I have watched many encrypted movies this way.

> > We may just disable the dvdnav support if that is wat breaks things for
> > you ...
> 
> dvd support works fine ... but it's not enabled .. 
> 
> to get mplayer to emerge with dvd support correctly you have to emerge libdvdread and libdvdcss manually .. 
> and then USE="dvd" and emerge mplayer.

Like I said .. it is over here.  This is bits from when I run
'emerge mplayer':

-------------------------------------------------------
Checking for DVD support (libmpdvdkit) ... yes
Checking for DVD support (libcss - old style) ... no
Checking for DVD support (libdvdread - new style) ... disabled by
libmpdvdkit2
Checking for DVD support (libdvdnav) ... yes
-------------------------------------------------------

See ... libmpdvdkit (internal libs) gets enabled. ...

-------------------------------------------------------
  Enabled optional drivers:
    Input: streaming edl tv cdda dvdnav mpdvdkit2 vcd 
    Codecs: qtx divx5linux xvid libdv libavcodec real dshow/dmo win32
libvorbis libmad liblzo gif 
    Audio output: esd oss sdl mpegpes(file) 
    Video output: xvidix sdl vesa gif89a jpeg png mpegpes(file) fbdev
svga aa opengl dga xv x11 
  Disabled optional drivers:
    Input: tv-v4l tv-bsdbt848 dvdread dvdcss smb 
    Codecs: divx4linux xanim 
    Audio output: sgi sun alsa arts dxr2 nas win32 
    Video output: bl zr dxr3 dxr2 directx ggi xmga mga directfb tdfxfb
3dfx 
-------------------------------------------------------

Once again mpdvdkit2 gets enabled, but yes, dvdread and dvdcss does
get disabled, but this is because mpdvdkit2 is these two libraries
with bug fixes and the 'dvd key caching'.

This is when i run 'mplayer -dvd 1', but lack of dvd title at hand
right now ...

---------------------------------------------------------
# mplayer -dvd 1


MPlayer 0.90rc5-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel  (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: can't open
'/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf : No such file or
directory
Input config file /usr/share/mplayer/input.conf parsed : 52 binds

Playing DVD title 1
libdvdread: Could not open device with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
Couldn't open DVD device: /dev/dvd


Exiting... (End of file)
--------------------------------------------------------

It definitely have libdvdread/css support ...


Regards,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread ..
  2003-04-09 20:33     ` Martin Schlemmer
@ 2003-04-10  8:50       ` Henti Smith
  2003-04-10 17:53         ` Martin Schlemmer
  0 siblings, 1 reply; 7+ messages in thread
From: Henti Smith @ 2003-04-10  8:50 UTC (permalink / raw
  To: azarah; +Cc: gentoo-dev

> > > Afiak, if you have 'dvd' in USE, it enables --enable-mpdvdkit, which
> > > DOES use the libdvdread and libdvdcss included with mplayer.  This is
> > > shown here as from ebuild:
> > > 
> > > ----------------------------------------------------------------------
> > >   use dvd \
> > >       && myconf="${myconf} --enable-mpdvdkit --enable-dvdnav" \
> > >       || myconf="${myconf} --disable-mpdvdkit --disable-dvdread \
> > >                            --disable-css --disable-dvdnav"
> > > ----------------------------------------------------------------------

I did notice this ... 

I'll play around and make double sure .. but on the machine I was working on .. it didn't do that.Thats why I was poking around in the 
mplayer docs and it's syas you have to set the DVDKIT_SHARED var to yes or it will not compile even if you specify it in configure .. 
I'll work on that machine again tonight and make 100% sure

> > > > I thought so as well ... but if you go throught the documentation in mplayer 
> > and you have dvd specified .. it will use libdvdread and libdvdcss if its installed on your machine
> 
> Having 'dvd' specified in USE will have no effect if the ebuild do not
> tweak ./configure time options.  But I think I do not fully understand
> what you are getting at here ...

Where does the ebuild link the deps for dvdread .. I cannot find it anywhere in the DEPEND or RDEPEND settings ? 
on the machine I was working on .. running emerge mplayer with USE="dvd" did NOT install libdvdread or libdvdcss.

As mentioned before mplayer does have libdvdread and libdvdcss included in the source and can be installed using mplayer, and it's recommended
as well is it might have patches etc etc for mplayer not in the main tree fot those libs.

> > and the ebuild does not have libdvdread or libdvdcss in the RDEPEND settings .. so if you run a stock box and USE="dvd" 
> > and emerge mplayer you only get dvd-nav which does not work.
> > 
> 
> No, look at that bit I pasted.  It add the '--enable-mpdvdkit' flag,
> which enables the internal libdvdread and libdvdcss.  It works fine
> over here ... I have watched many encrypted movies this way.

Why does it list libdvdread and libdvdcss as dependancy's for mplayer if it uses the internal libs ? 

I'll have to check the original machine I worked on, because it didn't do that .. I had to hack the ebuild and patch the mplayer 
source to get internal libdvdread and libdvdcss to work

> Like I said .. it is over here.  This is bits from when I run
> 'emerge mplayer':
> 
> -------------------------------------------------------
> Checking for DVD support (libmpdvdkit) ... yes
> Checking for DVD support (libcss - old style) ... no
> Checking for DVD support (libdvdread - new style) ... disabled by
> libmpdvdkit2
> Checking for DVD support (libdvdnav) ... yes
> -------------------------------------------------------
> 
> See ... libmpdvdkit (internal libs) gets enabled. ...

This did not happen on the machine .. at all .. even with dvd in USE settings .. all I had was dvdnav.
the only way I could get this to happen was to hack the configure script as directed in the docs by changing DVDKITSHARED=no to yes in configure script

> Once again mpdvdkit2 gets enabled, but yes, dvdread and dvdcss does
> get disabled, but this is because mpdvdkit2 is these two libraries
> with bug fixes and the 'dvd key caching'.

I understand this ... ok .. I think we saying the same thing .. but in different ways that we don't understand .. 

I'll play around with this alot more .. as I think there are some quirks .. I just added USE="dvd" on my machine at the office and ran emerge mplayer -p and 
libdvdread libdvdcss and libdvdnav is now added as deps ... as in additional packages it needs to install to get dvd working .. 

> This is when i run 'mplayer -dvd 1', but lack of dvd title at hand
> right now ...

I understand :) 

> It definitely have libdvdread/css support ...

the machine I was working on has it as well ;P 

Henti 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread ..
  2003-04-10  8:50       ` Henti Smith
@ 2003-04-10 17:53         ` Martin Schlemmer
  2003-04-11  8:14           ` Henti Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Schlemmer @ 2003-04-10 17:53 UTC (permalink / raw
  To: Henti Smith; +Cc: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

On Thu, 2003-04-10 at 10:50, Henti Smith wrote:

> > Having 'dvd' specified in USE will have no effect if the ebuild do not
> > tweak ./configure time options.  But I think I do not fully understand
> > what you are getting at here ...
> 
> Where does the ebuild link the deps for dvdread .. I cannot find it anywhere
>  in the DEPEND or RDEPEND settings ? on the machine I was working on .. running
> emerge mplayer with USE="dvd" did NOT install libdvdread or libdvdcss.
> 

Like I said in my previous mail, its the dvdnav DEPEND.  I removed it
in mplayer-0.90, since it does not work anyhow

> As mentioned before mplayer does have libdvdread and libdvdcss included in the
> source and can be installed using mplayer, and it's recommended
> as well is it might have patches etc etc for mplayer not in the
> main tree fot those libs.
> 

Right, and that is what we use.  Check what the '--enable-mpdvdkit'
./configure option does ...


-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread ..
  2003-04-10 17:53         ` Martin Schlemmer
@ 2003-04-11  8:14           ` Henti Smith
  0 siblings, 0 replies; 7+ messages in thread
From: Henti Smith @ 2003-04-11  8:14 UTC (permalink / raw
  To: azarah; +Cc: gentoo-dev

> Like I said in my previous mail, its the dvdnav DEPEND.  I removed it
> in mplayer-0.90, since it does not work anyhow

ok .. 

> Right, and that is what we use.  Check what the '--enable-mpdvdkit'
> ./configure option does ...

will do ... 

Henti 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-11  8:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-08 17:39 [gentoo-dev] mplayer with dvdread Henti Smith
2003-04-08 20:18 ` Martin Schlemmer
2003-04-09  9:09   ` Henti Smith
2003-04-09 20:33     ` Martin Schlemmer
2003-04-10  8:50       ` Henti Smith
2003-04-10 17:53         ` Martin Schlemmer
2003-04-11  8:14           ` Henti Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox