LinuxQuestions.org
Review your favorite Linux distribution.
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 09-09-2009, 09:55 AM   #1
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
new to ripping?


Not sure what to do here, since i never got into copying music and or ripping.

I have a few dozen mp3 files of various artists that i need to put to CD.
These are needed for an upcoming 'Suicide Awareness' event.
Somehow i was volunteered for this task.

My question:
What format do i need to convert these MP3s to so they can be played on a normal Cd player?

Thanks
 
Old 09-09-2009, 10:07 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
You have to convert them to WAV, the music audio CD format. There are a lot of tools that can perform the conversion. I personally use lame:
Code:
for i in *.mp3
do
  lame --decode "$i" "`basename "$i" .mp3`".wav
done
The for loop converts all the MP3 files in the current directory, substituting the .mp3 suffix with .wav. Disclaimer: I assume you have fulfilled any copyright issue, in order to air these songs in a public event.
 
Old 09-09-2009, 10:17 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The program you'd use in slackware will be cdrecord or wodim. The man pages tell you how.
There are gui fronts for them like K3B, which makes the process very simple.

If you have a fairly complete slackware build, you can often just put a blank CD in to start an application, select "audio CD" from a menu. If this does not happen, you open up a CD ripper, which provides a two-pane dialog and does the correct recoding for you.

A stereo CD is burned in CD-DA format and needs structured audio data files. This usually means .au or .wav files. The command may be as simple as:

wodim -audio *.wav

... depending on what options you want to take advantage of and your exact setup.
 
Old 09-09-2009, 10:20 AM   #4
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
Thanks Guys!

I am on it... as soon as i'm done with other 'honey dos'
 
Old 09-09-2009, 10:22 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
2nd on using k3b. Pretty painless and reliable.

Check at Sams club. For this type of stuff they will often donate the burnable media.
 
Old 09-09-2009, 11:29 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,000
Blog Entries: 1

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
A lot of the burning tools will do the conversion for you. That being said, the format that is actually burned is .cdr. Which is the same as .wav, but the bit order is reversed (big endian). Assuming that .wav is 16 bit, 44.1kHz and stereo aka 2 channels. Sox should be able to do the conversion if you need to manually. I generally do it manually because it saves a bit of reprocessing if I need to burn multiple copies. Plus the .wav versions might be a work in progress where .cdr is pretty finalized IMO. Or at least easier to pick out in a crowd. i.e. where did I put those files again? find / -iname '*.cdr'
 
Old 09-09-2009, 12:56 PM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The following discussion probably counts as "too much info" for the OP

.cdr is also the file extension for Corel Draw drawings and iso9660 files created in MacOS X

I thought .cdr was used for a raw audio CD image rather than tracks? I had to look quite hard to find references to this use.

Audio CDs use the Red Book CD-DA standard (IEC 60908) - sometimes called CDR.
Which is big-endian. Swapping the bytes is usually implimented in standard burners.
It also needs to be without a header - which will otherwise be audible as a click at the start of the track.
Programs use converters which strip the headers, or they know to skip the headers of common formats which are almost right (a la wodim with sony au and microsoft wav).

CDDA audio format: The file with data for this tracks should contain stereo, 16-bit digital audio with 44100 samples/s. The byte order should be the following: MSB left, LSB left, MSB right, LSB right, MSB left and so on. The track should be a multiple of 2352 bytes.

Strictly speaking, yep, stored digital audio cannot be assumed to have a 44k1Hz sample rate - all should be resampled. However, wav files ripped from a CD at defaults is usually at the correct rate. It is very common to recode to wav - though sox will convert to cdda too. Example:
http://www.ibiblio.org/pub/Linux/doc...MP3-CD-Burning

I'm used to raw cdda audio files having extension .cdaudio - I'm guessing MS .cda is similar.

A typical CLI ripping process would be:

Code:
icedax dev=/dev/cdrom -vall cddb=0 -B -Owav
    wodim dev=/dev/cdrw -v -dao -useinfo -text  *.wav
note:
Some types of CD-Writers e.g. Yamaha, Sony and the new SCSI-3/mmc drives require audio data to be presented in little-endian order, while other writers require audio data to be presented in the big-endian (network) byte order normally used by the SCSI protocol.

Some audio CDs are deliberately manufactured to be non-complying - usually for DRM-type reasons.
Look for the "compact disk digital audio" logo - if it ain't there, it ain't complying.

Interestingly, the wodim man-page claims that it's cd-da writing is "similar to redbook" not the same as. I've not been able to find out more.
 
Old 09-09-2009, 05:42 PM   #8
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
thank you all!

I have to say I am well educated now.
when and if my future Mac user step-son is need of ripping/conversion advise, I am there.
 
Old 09-10-2009, 09:45 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,000
Blog Entries: 1

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
basically

$ sox input.wav output.cdr
(and it takes care of the particulars.)

$ cdrecord -audio -tao track1.cdr track2.cdr track3.cdr .......
(-dao if you don't want the default 2 second pause between tracks)

or at least that's how I do it. And various extras if you want index, cd-text, and other things. I'm still not quite learn-ed on that stuff myself.
 
  


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
Ripping a CD carlosinfl Linux - Software 12 02-27-2006 04:48 PM
CD ripping!!! impactaway Linux - Hardware 3 05-13-2005 08:51 AM
Cd Ripping nrunge Linux - Software 3 10-22-2003 01:35 AM
CD Ripping sergeantroach Linux - Software 2 09-01-2003 12:11 PM
CD ripping acid_kewpie Linux - General 23 10-28-2001 11:14 PM

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

All times are GMT -5. The time now is 09:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration