Re: [SLUG] CD ripper

From: Eben King (eben01@verizon.net)
Date: Tue May 13 2008 - 22:15:05 EDT


On Tue, 13 May 2008, Dylan William Hardison wrote:

> Spake Eben King on Tuesday, May 13, 2008 at 05:55PM -0400:
>> What's a good CD -> mp3 ripper? By "good" I mean "will query {cd,free}db
>> to set the tags and name the file appropriately". Bonus if it's
>> multithreaded to take advantage of the two CPU cores. I've been doing it
>> manually, which is OK for a single CD but impractical for 250. I wrote a
>> script to do it way back when, but the user supplied the names, not a web
>> site. And probably buggy. And didn't take advantage of parallelism
>> inherent in the hardware either.

> abcde?

I tested that and grip. Neither would work as me (ripping permissions
problem). Hardware looks like this:

   PATA primary bus --- /dev/hda main hard drive
                     \- /dev/hdb backup hard drive
PATA secondary bus --- /dev/hdc CD/DVD R/W drive
                     \- /dev/hdd CD RO drive

Links by udev:
lrwxrwxrwx 1 root root 3 May 7 14:13 /dev/cdrom -> hdc
lrwxrwxrwx 1 root root 3 May 7 14:13 /dev/cdrom0 -> hdc
lrwxrwxrwx 1 root root 3 May 7 14:13 /dev/cdrom1 -> hdd
lrwxrwxrwx 1 root root 3 May 7 14:13 /dev/cdrw -> hdc
lrwxrwxrwx 1 root root 3 May 7 14:13 /dev/cdrw0 -> hdc
lrwxrwxrwx 1 root root 3 May 7 14:13 /dev/dvd -> hdc
lrwxrwxrwx 1 root root 3 May 7 14:13 /dev/dvdrw -> hdc

Permissions manually, owner/group by udev:
brw-r----- 1 root cdrom 22, 0 May 7 14:13 /dev/hdc
brw-r----- 1 root cdrom 22, 64 May 7 14:13 /dev/hdd

Permissions and owner/group manually:
crw-rw---- 1 root cdrom 21, 0 May 13 21:13 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 May 13 21:13 /dev/sg1
crw-rw---- 1 root cdrom 21, 2 May 13 21:13 /dev/sg2
crw-rw---- 1 root cdrom 21, 3 May 13 21:13 /dev/sg3

Links manually:
lrwxrwxrwx 1 root root 20 May 13 19:41 /dev/sg4 -> /dev/.static/dev/sg4
lrwxrwxrwx 1 root root 20 May 13 19:41 /dev/sg5 -> /dev/.static/dev/sg5
lrwxrwxrwx 1 root root 20 May 13 19:41 /dev/sg6 -> /dev/.static/dev/sg6
lrwxrwxrwx 1 root root 20 May 13 19:41 /dev/sg7 -> /dev/.static/dev/sg7
lrwxrwxrwx 1 root root 20 May 13 19:41 /dev/sg8 -> /dev/.static/dev/sg8
lrwxrwxrwx 1 root root 20 May 13 19:41 /dev/sg9 -> /dev/.static/dev/sg9

I'd like the rippers to point at hdd if possible.

abcde runs fine as root; as me (after I tell it to output mp3), it
complains:

eben@pc:/tmp$ abcde -o mp3 -V
Executing customizable pre-read function... done.
Getting CD track info... Querying the CD for audio tracks...
(LONG pause, like 10 minutes)
Grabbing entire CD - tracks: 1 2 3
Checking CDDB server status...
Querying the CDDB server...
Obtaining CDDB results...
Retrieving 1 CDDB match...done.
---- John Coltrane / A Love Supreme ----
1: Part 1 > Acknowledgement
2: Part 2 > Resolution
3: Part 3 > Pursuance/Part 4 - Psalm

Edit selected CDDB data? [y/n] (n):
Is the CD multi-artist? [y/n] (n):
Grabbing track 1: Part 1 > Acknowledgement...
cdparanoia III release 10pre0 (August 29, 2006)
(C) 2006 Monty <monty@xiph.org> and Xiph.Org

FreeBSD porting (c) 2003
         Simon 'corecode' Schubert <corecode@corecode.ath.cx>

Report bugs to paranoia@xiph.org
http://www.xiph.org/paranoia/

Error trying to open /dev/sg0 exclusively (Permission denied). retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied). retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied). retrying in 1 second.
etc.

It throws 10 "Permission denied" or "No such file or directory" for each of
/dev/sg[0a1b2c3d4e5f] (and so on) as they apply.

Where do I find /dev/sga or redirect something to a device that _does_
exist?

I didn't run grip as root, but as me it had similar errors.

-- 
-eben    QebWenE01R@vTerYizUonI.nOetP    royalty.mine.nu:81
LIBRA:  A big promotion is just around the corner for someone
much more talented than you.  Laughter is the very best medicine,
remember that when your appendix bursts next week.  -- Weird Al
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:48:26 EDT