LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2004, 10:58 AM   #1
foustware
Member
 
Registered: Dec 2003
Posts: 42

Rep: Reputation: 15
playing audio cds with mplayer


hi, right now i'm using red hat 9 and i have mplayer installed and working fine. i wanted to know if any one has launched mplayer from the command line with options to play an audio cd. i browsed the man pages and it had this:
----------------------------------------------------------------------------
mplayer [cdda|cddb]://track[:speed][/device] [options]
----------------------------------------------------------------------------
and this:
----------------------------------------------------------------------------------------------------
-cdda <option1ption2> (CDDA only)
This option can be used to tune the CD Audio reading feature of
MPlayer.

Available options are:

speed=<value>
set CD spin speed

paranoia=<0-2>
set paranoia level
0: disable checking
1: overlap checking only (default)
2: full data correction and verification

generic-dev=<value>
use specified generic SCSI device

sector-size=<value>
atomic read size

overlap=<value>
force minimum overlap search during verification to <value> sectors.

toc-bias
Assume that the beginning offset of track 1 as reported
in the TOC will be addressed as LBA 0. Some Toshiba
drives need this for getting track boundaries correct.

toc-offset=<value>
Add <value> sectors to the values reported when address-
ing tracks. May be negative.

(no)skip
(never) accept imperfect data reconstruction.
-------------------------------------------------------------------------------------------------------------------------

i'm not sure how to type these options. if i type mplayer cdda://1
it doesn't work. has any one already done this?
 
Old 10-26-2004, 11:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Code:
i'm not sure how to type these options. if i type mplayer cdda://1
it doesn't work. has any one already done this?
what doesn't it work? what is the error? most likely you're not useing a suitable symlink to /dev/cdrom, which is what mplayer will access by default.
 
Old 10-26-2004, 12:00 PM   #3
foustware
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
i'll post the output

thanks for the reply acid, if i type mplayer cdda://1 i get this output:

MPlayer 1.0pre5-RPM-3.2.2 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 1100 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/foust/.mplayer/config
Reading /home/foust/.mplayer/codecs.conf: Can't open '/home/foust/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
font: can't open file: /home/foust/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup
scripts.
Using usleep() timing
Can't open input config file /home/foust/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds

Playing cdda://1.
Option stream url: This URL doesn't have a hostname part.
[file] No filename
Failed to open cdda://1


Exiting... (End of file)

now if i type -
mplayer dvd://1 it works so i think i'm not aware of how cdda is set up or something. i do have cdparanoia installed and the other cd players i have do work. from what i heard when you install mplayer it should enable cdparanoia if it detects it. but i installed from rpms so i didn't see any output from the install. any ideas?
 
Old 10-26-2004, 12:34 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok i'll concede... that is impressivley vague for once.

try using cddb instead, and also specify the device with " -cdrom-device /dev/hdc" for example.
 
Old 10-26-2004, 05:22 PM   #5
foustware
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
no go

using cddb:// and /dev/scd0 doesn't do anything different. i get the same output.
/dev/scd0 is what /dev/cdrom links to on my system.
 
Old 10-26-2004, 05:34 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
oooooooooh, right so that's a cd burner then? yuck... if you're running a 2.6 kernel, remove the ide-scsi emulation from the bootloader configuration, if you're still on 2.4... i don't honestly know if it will work. i guess it should but i don't really know. scsi emulation can do odd things.
 
Old 10-27-2004, 08:21 PM   #7
foustware
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
i'll give it a shot

ok i'll try that and let you know how it goes. thanks acid.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing audio cds (again...sorry) Oholiab Slackware 13 10-16-2005 02:26 PM
Playing audio CDs evilmonkey Linux - Software 7 11-28-2004 09:16 PM
Playing audio cds iantri Slackware 5 07-25-2003 04:10 PM
playing audio cds chlee Linux - Software 4 06-08-2003 09:00 AM
Playing Audio CDs Anmar Linux - Software 13 03-17-2003 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration