Mplayer & DVD problem

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Mplayer & DVD problem

Nikolaus Hiebaum
Hi,

I recently upgraded to OpenBSD 3.8 and have a little problem with playing DVDs.
The problem is that the application (mplayer) opens and then exits.

Here is the error (I can send a dmesg if needed):

---BOF---
MPlayer 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.

Playing dvd://.
Reading disc structure, please wait...
There are 10 titles on this DVD.
There are 1 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  9780.0 kbps (1222.5 kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 2.0 (stereo)  48000 Hz  384.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
AF_pre: 48000Hz/2ch/s16le
ao2: 48000 Hz  2 chans  s16le [0x9]
AO: [sun] 48000Hz 2ch s16le (2 bps)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 768x576 Planar YV12
A:   0.5 V:   0.5 A-V:  0.020 ct:  0.024   7/  7 ??% ??% ??,?% 0 0


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

Can anybody tell me what's wrong here and how it can be fixed?

Thanks,
Nick

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Jacob Meuser
On Mon, Nov 07, 2005 at 05:11:12PM +0100, Nikolaus Hiebaum wrote:
> Hi,
>
> I recently upgraded to OpenBSD 3.8 and have a little problem with playing DVDs.
> The problem is that the application (mplayer) opens and then exits.

> Playing dvd://.
> Reading disc structure, please wait...
> There are 10 titles on this DVD.
> There are 1 chapters in this DVD title.

a DVD title with only 1 chapter probably isn't the main title
and could be just very short.  I don't remember if mplayer tries
to figure out which title is the main title or if it just uses
title 1 unless you use something like dvd://2.  what does lsdvd
say the main title of this DVD is?

also, IMO, ogle is a much nicer DVD player and is available as
an OpenBSD package.

--
<[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Edd Barrett
In reply to this post by Nikolaus Hiebaum
On 07/11/05, Nikolaus Hiebaum <[hidden email]> wrote:

> The selected video_out device is incompatible with this codec.

Have you tried both -vo x11 and -vo xv? Just a stab in the dark.

Best Regards

Edd

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Jacob Meuser
On Tue, Nov 08, 2005 at 07:22:19AM +0000, Edd Barrett wrote:
> On 07/11/05, Nikolaus Hiebaum <[hidden email]> wrote:
>
> > The selected video_out device is incompatible with this codec.
>
> Have you tried both -vo x11 and -vo xv? Just a stab in the dark.

this message is taken out of context here.  this is from trying
to display MPEG video directly, that is, without decoding to
RGB or YUV.  you will always get this message, unless of course
your video card/XFree driver can directly render MPEG video.

--
<[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Nikolaus Hiebaum
In reply to this post by Edd Barrett
* Edd Barrett wrote on Nov 8, 2005 [07:22, -0000] :

> > The selected video_out device is incompatible with this codec.
>
> Have you tried both -vo x11 and -vo xv? Just a stab in the dark.

Well, not sure how well you stab at daylight, but the two switches no give me a
picture. ;-) -vo xv works best. Thanks a lot.

--
CU, Nick

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Edd Barrett
> the two switches no give me a picture. ;-) -vo xv works best. Thanks a lot.

Glad I could help.

Best Regards

Edd

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Jacob Meuser
In reply to this post by Nikolaus Hiebaum
On Tue, Nov 08, 2005 at 12:13:58PM +0100, Nikolaus Hiebaum wrote:
> * Edd Barrett wrote on Nov 8, 2005 [07:22, -0000] :
>
> > > The selected video_out device is incompatible with this codec.
> >
> > Have you tried both -vo x11 and -vo xv? Just a stab in the dark.
>
> Well, not sure how well you stab at daylight, but the two switches no give me a
> picture. ;-) -vo xv works best. Thanks a lot.

please help me to understand something here.  to quote your original
post:

> VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO: [xv] 720x576 => 768x576 Planar YV12

so mplayer was already using XV for video output, which is what
'-vo xv' does.

but you're saying you used the same DVD and the exact same mplayer
command but only added '-vo xv' and that made it work?

--
<[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Nikolaus Hiebaum-2
In reply to this post by Nikolaus Hiebaum
Hi,

> please help me to understand something here.  to quote your original
> post:

>> VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
>> VDec: using Planar YV12 as output csp (no 0)
>> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
>> VO: [xv] 720x576 => 768x576 Planar YV12

> so mplayer was already using XV for video output, which is what
> '-vo xv' does.

> but you're saying you used the same DVD and the exact same mplayer
> command but only added '-vo xv' and that made it work?

O.K., what you wrote got me thinking, and I tried a few DVDs. It seems it's just one DVD that
will shut down right after I start gmplayer, with or without the -vo switch.

lsdvd produces this for that DVD:

libdvdread: Encrypted DVD support unavailable.
Disc Title: CD001
Title: 01, Length: 00:00:00 Chapters: 01, Cells: 01, Audio streams: 08, Subpictures: 32
Title: 02, Length: 00:00:08 Chapters: 01, Cells: 01, Audio streams: 03, Subpictures: 04
Title: 03, Length: 02:00:10 Chapters: 22, Cells: 23, Audio streams: 03, Subpictures: 04
Title: 04, Length: 00:02:17 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 01
Title: 05, Length: 00:23:58 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 01
Title: 06, Length: 00:10:08 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 01
Title: 07, Length: 00:04:00 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 02
Title: 08, Length: 00:03:57 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 02
Title: 09, Length: 00:01:58 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 02
Title: 10, Length: 00:02:09 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 02
Longest track: 3

And so, gmplayer -vo xv dvd://3 will play the DVD just fine.

So, it seemed to be a DVD related issue as other DVDs just play fine, with or without the -vo
switch specified. When testing wiht Edd's advice of specifying the display and it worked, I
must have mixed up DVDs and made a wrong deduction.

At least, I learned more about the process. Thanks!

BTW, ogle will not work with any DVD. I get this ...
WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshotWithSPU'
Note[ogle_gui]: GetDiscID failed
msg close FIX
nh@hrodulf: /home/nh (22:47:39)> sudo ogle
WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshotWithSPU'
libdvdread: Encrypted DVD support unavailable.
libdvdread: Encrypted DVD support unavailable.
FATAL[ogle_mpeg_ps]: dvdreadblocks failed

But I am fine using gmplayer. ;-)


--
Beste Gr|_e / Best regards ,
Nikolaus Hiebaum

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Morris, Roy
In reply to this post by Nikolaus Hiebaum
> BTW, ogle will not work with any DVD. I get this ...
> WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
> WARNING[dvd_gui]: add_keybinding(): No such action:
> 'SaveScreenshotWithSPU'
> Note[ogle_gui]: GetDiscID failed
> msg close FIX
> nh@hrodulf: /home/nh (22:47:39)> sudo ogle
> WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
> WARNING[dvd_gui]: add_keybinding(): No such action:
> 'SaveScreenshotWithSPU'
> libdvdread: Encrypted DVD support unavailable.
> libdvdread: Encrypted DVD support unavailable.
> FATAL[ogle_mpeg_ps]: dvdreadblocks failed

I think you need libdvdcss from ports. Both mplayer and ogle
work fine for me.

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Nikolaus Hiebaum
* Roy Morris wrote on Nov 9, 2005 [17:03, -0500] :

> I think you need libdvdcss from ports. Both mplayer and ogle
> work fine for me.

Just installed it but ogle still doesn't work.

Fewer errors maybe ;-) but I don't care, as I can live with mplayer.

--
CU, Nick

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Hans-Joerg Hoexer
In reply to this post by Morris, Roy
On Wed, Nov 09, 2005 at 05:03:25PM -0500, Roy Morris wrote:
> I think you need libdvdcss from ports. Both mplayer and ogle
> work fine for me.

or libdvd instead of libdvdcss.

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Nikolaus Hiebaum
* Hans-Joerg Hoexer wrote on Nov 9, 2005 [23:13, +0100] :

> > I think you need libdvdcss from ports. Both mplayer and ogle
> > work fine for me.
>
> or libdvd instead of libdvdcss.

*grr*

Now I get this ...

WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshotWithSPU'
libdvdread: Using libdvd version 0.3 for DVD access
Enter challenge, e.g. the name of your OS:
libdvdread: Could not open /dev/rcd0c with libdvd.
libdvdread: Can't open /dev/rcd0c for reading
ERROR[ogle_nav]: faild to open/read the DVD
callbacks.on_opendvd_activate(): DVDSetDVDRoot: Root not set

WHat am I supposed to enter here? Enter challenge, e.g. the name of your OS: Is this some
game? ;-)

--
CU, Nick

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

tronss
In reply to this post by Morris, Roy
Roy Morris wrote:

>>BTW, ogle will not work with any DVD. I get this ...
>>WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
>>WARNING[dvd_gui]: add_keybinding(): No such action:
>>'SaveScreenshotWithSPU'
>>Note[ogle_gui]: GetDiscID failed
>>msg close FIX
>>nh@hrodulf: /home/nh (22:47:39)> sudo ogle
>>WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
>>WARNING[dvd_gui]: add_keybinding(): No such action:
>>'SaveScreenshotWithSPU'
>>libdvdread: Encrypted DVD support unavailable.
>>libdvdread: Encrypted DVD support unavailable.
>>FATAL[ogle_mpeg_ps]: dvdreadblocks failed
>>    
>>
>
>I think you need libdvdcss from ports. Both mplayer and ogle
>work fine for me.
>
>
>  
>
I use libdvdcss and ogle doesn4t work, but vlc works fine :-)

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Roy Morris-4
In reply to this post by Nikolaus Hiebaum
Nikolaus Hiebaum wrote:

>* Hans-Joerg Hoexer wrote on Nov 9, 2005 [23:13, +0100] :
>
>  
>
>>>I think you need libdvdcss from ports. Both mplayer and ogle
>>>work fine for me.
>>>      
>>>
>>or libdvd instead of libdvdcss.
>>    
>>
>
>*grr*
>
>Now I get this ...
>
>WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
>WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshotWithSPU'
>libdvdread: Using libdvd version 0.3 for DVD access
>Enter challenge, e.g. the name of your OS:
>libdvdread: Could not open /dev/rcd0c with libdvd.
>libdvdread: Can't open /dev/rcd0c for reading
>ERROR[ogle_nav]: faild to open/read the DVD
>callbacks.on_opendvd_activate(): DVDSetDVDRoot: Root not set
>
>WHat am I supposed to enter here? Enter challenge, e.g. the name of your OS: Is this some
>game? ;-)
>
>  
>
Aww, according to the ogle site, if you want to use encrypted dvds you
need to install libdvdcss. Ummm is it just me or does that error say it
can't read /dev/rcd0c ??

permissions right?

Anyway .. just a thought. I use Mplayer for a lot of other formats and ogle
to play dvds.

cheers

Reply | Threaded
Open this post in threaded view
|

Re: Mplayer & DVD problem

Hans-Joerg Hoexer
On Wed, Nov 09, 2005 at 07:44:29PM -0500, Roy Morris wrote:

> >libdvdread: Could not open /dev/rcd0c with libdvd.
> >libdvdread: Can't open /dev/rcd0c for reading
> >ERROR[ogle_nav]: faild to open/read the DVD
> >callbacks.on_opendvd_activate(): DVDSetDVDRoot: Root not set
> >
> >WHat am I supposed to enter here? Enter challenge, e.g. the name of your
> >OS: Is this some
> >game? ;-)
> >
> >
> >
> Aww, according to the ogle site, if you want to use encrypted dvds you
> need to install libdvdcss. Ummm is it just me or does that error say it
> can't read /dev/rcd0c ??
>
> permissions right?

no, the wrong answer was provided (ie. name of your OS).  If I find
some more time, we'll get rid of this limitation.

Q: Why should one use libdvd instead of libdvdcss at all?
A: man 3 acss