WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help! Want to use Mplayer for DVDs (video) and CDs (audio)  (Read 14097 times)

Offline mcewanw

  • Full Member
  • ***
  • Posts: 102
I'm used to using gmplayer (and occasionally commandline mplayer) on Puppy Linux to watch DVDs on the computers I am now using TC with.

I would also like to use Mplayer to listen to audio CDs (if that is possible).
But for the life of me, I can't get any of the two TC version I have downloaded to recognise my DVDs or CDs or do anything...

I am using TC 2.0rc1 with Xvesa (I don't want to use Xorg) and I have installed OSS.tczm (using PPR/tcz).
I have a DVD reader on /dev/hdc

I have tried optionally loading (on different boots), the following two versions of Mplayer:

Mplayer-nodeps.tcz and MPlayer-svn-gtk2.tcz

With Mplayer-nodeps.tcz:

If I stick a DVD in my machine and enter at a commandline: mplayer dvd://
I get the following message:

Code: [Select]
MPlayer SVN-r27667 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.

Playing dvd://.
Couldn't open DVD device: /dev/dvd (No such file or directory)
No stream found to handle url dvd://


Exiting... (End of file)

Admittedly, I'm just guessing the command option to use. What should I enter?

For CD audio disc in the drive, I don't have a clue even where to begin.

Can any of these two mplayer downloads play either DVDs or CDs and if so what do I have to do to get that all working? Is mplayer supposed to just work on installation out of the box, or do I have to do some configuration first (and what?).

[I don't want to use XMMS or any other player for audio or anything else if I can get away with just using commandline mplayer, though I would also like to know if there is a gui version of mplayer for download that works under Xvesa only].

Note that I am now using TC 2.0rc1 as my main desktop (on my main two machines); it does pretty much everything that I'm currently needing, except for audio and video (I couldn't care less about mpeg4s, avi;s or mp3s; it is DVD and CD that I want).

Anyone able to provide detailed steps/howto on this stuff (or is the facility simply not available under TC as yet)? I searched the forums but came up blank, though maybe I missed something.

« Last Edit: May 05, 2009, 05:13:49 AM by mcewanw »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #1 on: May 05, 2009, 05:48:54 AM »
Sure; your mplayer command was entirely correct. TC doesn't currently create the symlinks /dev/dvd, /dev/cdrom etc, so you need to tell mplayer which device is your dvd drive:

mplayer -dvd-device /dev/hdc dvd://

For audio cds it would be

mplayer -cdrom-device /dev/hdc cdda://

The options can be saved in your mplayer config file, or you could create those symlinks and add them to your backup.
The only barriers that can stop you are the ones you create yourself.

Offline mcewanw

  • Full Member
  • ***
  • Posts: 102
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #2 on: May 05, 2009, 05:58:32 AM »
Great, and many thanks, part of a mystery solved. The mplayer DVD command you gave me worked! :-)

Code: [Select]
tc@box:~$ mplayer -dvd-device /dev/hdc dvd://
MPlayer SVN-r27667 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.

Playing dvd://.
There are 2 titles on this DVD.
There are 1 angles in this DVD title.
...

But... the mplayer CD command didn't. What is wrong?

Code: [Select]
tc@box:~$ mplayer -cdrom-device /dev/hdc cdda://
MPlayer SVN-r27667 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.

Playing cdda://.
No stream found to handle url cdda://

Exiting... (End of file)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #3 on: May 05, 2009, 06:02:08 AM »
Hmm, never tried to play audio cds with mplayer. Can't say what's the issue there.
The only barriers that can stop you are the ones you create yourself.

Offline mcewanw

  • Full Member
  • ***
  • Posts: 102
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #4 on: May 05, 2009, 06:05:13 AM »
I spoke slightly too soon with mplayer DVD mode; I have video but no sound as yet.

mplayer CDDA mode: nothing as before.

Though I have OSS installed, I've actually never tried sound at all in any shape or form on this system as yet.
« Last Edit: May 05, 2009, 06:08:29 AM by mcewanw »

Offline mcewanw

  • Full Member
  • ***
  • Posts: 102
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #5 on: May 05, 2009, 06:50:46 AM »
Something is wrong... My /var/log/soundon.log file (extract):

Code: [Select]
*** Loading OSS kernel modules ***

osscore module loaded OK
oss_maestro module loaded OK
oss_usb module loaded OK

*** Finished loading OSS kernel modules ***

/usr/lib/oss/etc/legacy_devices: Read-only file system
0 audio devices
0 mixer devices
+++ ossinfo -v3 +++
Version info: OSS 4.1 (b 1052/200904111036) (0x00040100) GPL
Platform: Linux/i686 2.6.29.1-tinycore #1337 SMP Fri Apr 10 19:12:39 EEST 2009
(box)

Number of audio devices:        0
Number of audio engines:        0

So OSS sound is not working for me for some reason (I used alsa under Puppy Linux).

But would this effect mplayer cdda mode too?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #6 on: May 05, 2009, 07:06:04 AM »
Quote
But would this effect mplayer cdda mode too?
No, not likely.

What's your sound card?

Also, when did you download the OSS extension? There was a nasty bug that was fixed on 20.4.
Here are the md5sums of the fixed extension:
Quote
ee83dab47f8d02f00a544882221812fb  OSS.tcem
0001969d00530ee153e831024ee1fb4e  OSS.tczm
The only barriers that can stop you are the ones you create yourself.

Offline mcewanw

  • Full Member
  • ***
  • Posts: 102
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #7 on: May 05, 2009, 07:24:44 AM »
I have the fixed OSS.tczm extension. The md5sum is correct.

I am on an old Dell Latitude CPx laptop. The sound card is detected as a  ESS Maestro-2E as shown below:

Code: [Select]
Open Sound System starting Tue May 5 23:13:22 UTC 2009
OSS version:  4.1 (b 1052/200904111036)
Kernel version:  2.6.29.1-tinycore
Kernel vermagic:  2.6.29.1-tinycore SMP mod_unload 486
No /usr/lib/oss/etc/installed_drivers - running ossdetect
Detected ESS Maestro-2E
USB support available in the system, adding USB driver
Detected Generic USB audio/MIDI device (BETA)
OSS    vermagic:  2.6.29.1-tinycore SMP mod_unload 486

*** Loading OSS kernel modules ***

osscore module loaded OK
oss_maestro module loaded OK
oss_usb module loaded OK

*** Finished loading OSS kernel modules ***

opendir: No such file or directory
/usr/lib/oss/etc/legacy_devices: Read-only file system
0 audio devices
0 mixer devices
+++ ossinfo -v3 +++
/var/log/soundon.log

The above was on TC 2.0rc1 but I've now tried it on TC 1.2 which I also have on my system and OSS sound works on that, so on TC 1.2 mplayer is playing DVDs with video and sound using the command you gave me, but cdda doesn't work on TC 1.2 either, giving the same error message as before.

So I have two problems on TC 2.0rc1: no sound and no cdda
and only one problem on TC 1.2: no cdda
« Last Edit: May 05, 2009, 07:32:00 AM by mcewanw »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #8 on: May 05, 2009, 08:04:02 AM »
I found the reason for cdda - it requires either libcdio or cdparanoia, and while nodeps is meant to not depend on anything, the gtk* builds could get the support in the future.

This might be a long shot, but could you try the tce version of OSS?
The only barriers that can stop you are the ones you create yourself.

Offline mcewanw

  • Full Member
  • ***
  • Posts: 102
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #9 on: May 05, 2009, 08:44:13 AM »
In fact I was had just downloaded OSS.tcem when I read your suggestion, but alas it made no difference. So why is OSS fine on this machine in TC 1.2?

As for cdda, are you saying that mplayer ... cdda would work if cdparanoia was installed or is that issue to do with how mplayer-nodeps was compiled?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #10 on: May 05, 2009, 10:07:43 AM »
Either cdparanoia or cdio would need to be installed before compiling. The libcdio.tcel extension contains a command-line cd audio player (cdda-player), which might work for your purpose?

Quote
So why is OSS fine on this machine in TC 1.2?
In addition to being for the new kernel, it's also a new version (4.1 vs. 4.0 in TC 1.x). The maestro driver has been moved to the "attic" of OSS, where it's not maintained as often as the other drivers. This does sound like an OSS bug, could you post the full soundon.log (maybe at pastebin.ca)?
The only barriers that can stop you are the ones you create yourself.

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #11 on: May 05, 2009, 05:29:44 PM »
Code: [Select]
>mplayer -dvd-device /dev/hdc dvd://  (7635)
MPlayer SVN-r27667 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU           T2080  @ 1.73GHz (Family: 6, Model: 14, Stepping: 12)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing dvd://.


Exiting... (End of file)
Couldn't open DVD device: /dev/hdc (No such device or address)
No stream found to handle url dvd://
>mplayer -dvd-device /dev/hdc dvd:// (7635) returned '0'

mplayer doesn't work! :-(
what is wrong? mplayer plays *.flv from terminal. How can i find my dvd/cd?

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #12 on: May 05, 2009, 05:35:14 PM »
Code: [Select]
>mplayer -dvd-device /dev/hda dvd://  (7737)

Playing dvd://.

Exiting... (End of file)
Couldn't open DVD device: /dev/hda (Wrong medium type)
No stream found to handle url dvd://
>mplayer -dvd-device /dev/hda dvd:// (7737) returned '0'
???

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #13 on: May 05, 2009, 05:37:42 PM »
Code: [Select]
>mplayer -dvd-device /dev/hda dvd://  (7741)
MPlayer SVN-r27667 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU           T2080  @ 1.73GHz (Family: 6, Model: 14, Stepping: 12)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing dvd://.
There are 34 titles on this DVD.
There are 1 angles in this DVD title.
number of audio channels on disk: 0.
number of subtitles on disk: 0
MPEG-PS file format detected.
MPEG: No audio stream found -> no sound.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  6000.0 kbps (750.0 kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [x11] 720x576 => 1024x576 Planar YV12
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[swscaler @ 0x8857f00]using unscaled yuv420p -> rgb32 special converter
[mpeg2video @ 0x87b67d0]concealing 1305 DC, 1305 AC, 1305 MV errors
[mpeg2video @ 0x87b67d0]ac-tex damaged at 23 7
[mpeg2video @ 0x87b67d0]Warning MVs not available


Exiting... (End of file)
>mplayer -dvd-device /dev/hda dvd:// (7741) returned '0'
with other dvd (the Cars)...

Offline mcewanw

  • Full Member
  • ***
  • Posts: 102
Re: Help! Want to use Mplayer for DVDs (video) and CDs (audio)
« Reply #14 on: May 05, 2009, 07:15:33 PM »
This does sound like an OSS bug, could you post the full soundon.log (maybe at pastebin.ca)?

Sorry, I just read your message: was late night here and I had to sleep.

I've never used pastebin before, so I hope my post remains:

soundon.log at http://pastebin.ca/1413736