LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Putting it all together - auto CD rip and encode (https://www.linuxquestions.org/questions/linux-software-2/putting-it-all-together-auto-cd-rip-and-encode-148982/)

mrock2 02-21-2004 10:17 PM

Putting it all together - auto CD rip and encode
 
I have my RH 7.2 Linux machine setup as a file server on my home network. The idea is to dump all of my CDs to MP3s and allow access from any computer. Now, I am at the point where I want to create the MP3s.

I got grip and I know I can encode, but it requires too much interaction.

This is what I would like:
Without keyboard (or mouse) interaction, I pop a CD in, it gets the CDDB info downloaded, the CD gets ripped and encoded. And the CD is ejected when complete. I would then load the next CD and the process would continue.

Any ideas, scripts or perl files that will do this kind of function:Pengy:

trickykid 02-21-2004 10:57 PM

There's an auto-rip option in the settings, other than that its usually just a simple push of the 'rip and encode' button when you first insert the cd and it loads the cd info.

blueteq 06-08-2009 06:24 AM

All in One Solution
 
This was a long time ago, did anyone manage to get this going?

I busy building a Open Source RipNAS, something I can Rip music to from my CD to stream over DLNA.

I have everything working except for two things.

1. Automated ripping process and described in the first post. (Pop in CD, Gets track names from freedb.org) Optional encode to FLAC.
I played with VortexBox which works extremely well, just to many things install I will never use. I went for Ubuntu Server (9.04), very light weight install. Default with only SSH installed.
VortexBox Use Ripit to do the batch ripping, and I am trying to set this up. This is where problem 2 comes in.
2. I can install any distro burnt from an ISO and it installs 100%, seemed to work fine for a while. Then I installed Ripit and now I get these errors in dmesg and the CDROM fails to mount:
Code:

[    7.481876] Buffer I/O error on device sr0, logical block 0
[    7.481941] Buffer I/O error on device sr0, logical block 1
[    7.481998] Buffer I/O error on device sr0, logical block 2
[    7.482054] Buffer I/O error on device sr0, logical block 3
[    7.484991] end_request: I/O error, dev sr0, sector 0
[    7.485059] Buffer I/O error on device sr0, logical block 0

No I have read through many forums and questioned our good friend Google and it does not look to good. I have swapped out three different ROM drives. As the server install is a breeze its not hard to reinstall, done that with 9.04 and problem came back. Then went back to 8.04 and problem persisted, hoping the older kernel will fix it.
I have tried three different IDE cables, I have tried IDE0 and IDE1 I have cleared the CMOS. Also tried playing with the Jumpers. Tried adding ide_generic_all as a boot parameter. You name it.

It's a VIA Mini-ITX Board, works perfectly fine when I had WindowsXP and Windows 7 installed.
I am not a guru, that should be clear by now,
Some help would be appreciated. Thanks

blueteq 06-09-2009 02:35 AM

I figured it out, after a lot of reading and not understanding clearly I am able to use ripit now.
Audio CD's does not get mounted, they run in some Virtual File system, that's why I got those error messages in dmesg and at startup. The system don't know how to read the VFS only a app like a CD Player or Ripit knows....

Well it works now... [SOLVED]

ozminh 06-09-2009 08:34 AM

write a script.

blueteq 06-09-2009 11:08 PM

How would a script help?

ozminh 06-11-2009 06:26 AM

a script helps you do things automatically.

H_TeXMeX_H 06-11-2009 02:40 PM

Indeed a script would solve this quite easily, something like: Use cdparanoia to rip CD, use lame to re-encode, and if it succeeds then delete the wavs and prompt user to insert another CD.

ozminh 06-12-2009 02:56 AM

and then use cdrdao or .... to get disc's info, rename mp3 files. COOL!

blueteq 06-12-2009 08:00 AM

That sounds good, RipIt is a script as such. But I can see where you guys are coming from.

I will investigate that option further, for the time being everything seem to work well except for the CD ROM closing upon completion then re-ripping everything again...

H_TeXMeX_H 06-12-2009 08:11 AM

Well, if you want, we could help with the script, but you need to say exactly what you want it to do. I mean, should it create directories for each disk, should it delete wavs after it encodes, what encode options, etc.

blueteq 06-13-2009 12:27 AM

I bought a HiFi that streams lossless music, the idea I had was to build this box that can sit with the sound system and when I buy a new CD I want to get it ripped into the highest possible quality. There is a company selling boxes that do this called RipNAS @ $1300. I had a Mini-ITX board here that's doing nothing and thought this would be a good way to utilize it.

I don't mind getting rid of the WAV's as I will have the CD to keep.

So I guess this is how it will go:

Insert CD >> Rips into WAV >> encode into FLAC >> Delete WAV

Twonky will then rescan directories to add to the library.

A wish list item would be cover art, manual process is the only thing I could find...

H_TeXMeX_H 06-13-2009 03:25 AM

The main problem is cddb info, cdparanoia will simply rip things to tracks in the order they are in on the CD, you'd need a cddb database to be able to know what the names of the tracks are, or you could rename them manually. Maybe you could use 'cdrdao' with the http://www.freedb.org/ cddb server ? Never tried it.

blueteq 06-14-2009 12:48 AM

H_TeXMeX_H, you are 100% correct, cdparanoia don't get the track names.
That's why I went to RipIt, without any interaction I it gets the best fit track names from freedb.org and encode them with the correct tags.

RipIt works perfectly fine, it's only the one issue I have when the disk is completed (Ripped and encoded) it ejects, which is good. But not for more than 5 sec and then it closes. Because it rips whenever a CD is inserted it basically keeps ripping the same disk over and over again.

Already received a response from the Developer and have to upgrade to the latest version and try again....

sudocode 06-17-2009 04:56 PM

Another option is to use abcde, which is a script and a great a frontend to cdparanoia. It takes care of cddb lookup, tags, renames and encodes tracks to your choice of output format. The classic guide to abcde is at Andrew's Corner.

I use abcde to rip and ivman to trigger it when a CD is inserted on my headless server. More details on that setup here.


All times are GMT -5. The time now is 01:47 AM.