To do this, you just need 2 steps, ripping and decoding. Ripping is doing a conversion of CD Audio into WAV Files. Encoding is doing a conversion of WAV Files into MP3, OGG or FLAC files.
Packet that you need are :
1.cdparanoia-10.0-2.fc9.i386.rpm
2.lame-3.98.2-2.fc9.i386.rpm
1. Install CDPARANOIA
For this situation, cdparanoia has been installed on my computer. To install, just run :
Code :
# yum install cdparanoia
2. Install LAME
Code :
# yum install lame
Example :
[root@msmunir1 ~]# yum install lame
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package lame.i386 0:3.98.2-2.fc9 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================
Package Arch Version Repository Size
==============================================================================
Installing:
lame i386 3.98.2-2.fc9 rpmfusion-free-updates 138 k
Transaction Summary
==============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 138 k
Is this ok [y/N]: y
Downloading Packages:
lame-3.98.2-2.fc9.i386.rpm | 138 kB 00:10
==================================== Entering rpm code =======================
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : lame 1/1
=================================== Leaving rpm code =========================
Installed:
lame.i386 0:3.98.2-2.fc9
Complete!
[root@msmunir1 ~]#
3. Insert CD Audio and check it
Code :
# cdparanoia -vsQ
Example :
[root@msmunir1 ~]# cdparanoia -vsQ
cdparanoia III release 10.0 (June 10, 2008)
Checking /dev/cdrom for cdrom...
Testing /dev/cdrom for SCSI/MMC interface
SG_IO device: /dev/sr0
CDROM model sensed sensed: HL-DT-ST RW/DVD GCC-4244N 1.00
Checking for SCSI emulation...
Drive is ATAPI (using SG_IO host adaptor emulation)
Checking for MMC style command set...
Drive is MMC style
DMA scatter/gather table entries: 1
table entry size: 131072 bytes
maximum theoretical transfer: 55 sectors
Setting default read size to 13 sectors (30576 bytes).
Verifying CDDA command set...
Expected command set reads OK.
Table of contents (audio tracks only):
track length begin copy pre ch
===========================================================
1. 14753 [03:16.53] 32 [00:00.32] no no 2
2. 20405 [04:32.05] 14785 [03:17.10] no no 2
3. 15830 [03:31.05] 35190 [07:49.15] no no 2
4. 10215 [02:16.15] 51020 [11:20.20] no no 2
5. 16350 [03:38.00] 61235 [13:36.35] no no 2
6. 19507 [04:20.07] 77585 [17:14.35] no no 2
7. 20608 [04:34.58] 97092 [21:34.42] no no 2
8. 9610 [02:08.10] 117700 [26:09.25] no no 2
9. 16487 [03:39.62] 127310 [28:17.35] no no 2
10. 12160 [02:42.10] 143797 [31:57.22] no no 2
11. 12888 [02:51.63] 155957 [34:39.32] no no 2
12. 15862 [03:31.37] 168845 [37:31.20] no no 2
TOTAL 184675 [41:02.25] (audio only)
[root@msmunir1 ~]#
4. Try to ripping one track, suppose track # 5
Code :
# cdparanoia -w -- "5" waltzing_back.wav
Example :
[root@msmunir1 ~]# cdparanoia -w -- "5" waltzing_back.wav
cdparanoia III release 10.0 (June 10, 2008)
Ripping from sector 61235 (track 5 [0:00.00])
to sector 77584 (track 5 [3:37.74])
outputting to waltzing_back.wav
(== PROGRESS == [ | 077584 00 ] == :^D * ==)
Done.
[root@msmunir1 ~]# ls -l
total 37680
-rw------- 1 root root 1972 2008-12-26 18:11 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Desktop
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Documents
drwxr-xr-x 2 root root 4096 2009-01-24 06:36 Download
-rw-r--r-- 1 root root 35394 2008-12-26 18:11 install.log
-rw-r--r-- 1 root root 5222 2008-12-26 18:10 install.log.syslog
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Music
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Pictures
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Public
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Templates
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Videos
-rw-r--r-- 1 root root 38455244 2009-01-24 20:45 waltzing_back.wav
[root@msmunir1 ~]#
Try to ripping all track :
Code :
# cdparanoia -B
Example :
[root@msmunir1 ~]# cdparanoia -B
cdparanoia III release 10.0 (June 10, 2008)
Ripping from sector 0 (track 0 [0:00.00])
to sector 184706 (track 12 [3:31.36])
outputting to track00.cdda.wav
(== PROGRESS == [ | 000031 00 ] == :^D * ==)
outputting to track01.cdda.wav
(== PROGRESS == [ | 014784 00 ] == :^D * ==)
outputting to track02.cdda.wav
(== PROGRESS == [ | 035189 00 ] == :^D * ==)
...
...
...
outputting to track12.cdda.wav
(== PROGRESS == [ | 184706 00 ] == :^D * ==)
Done.
[root@msmunir1 ~]# ls -l
total 462444
-rw------- 1 root root 1972 2008-12-26 18:11 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Desktop
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Documents
drwxr-xr-x 2 root root 4096 2009-01-24 06:36 Download
-rw-r--r-- 1 root root 35394 2008-12-26 18:11 install.log
-rw-r--r-- 1 root root 5222 2008-12-26 18:10 install.log.syslog
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Music
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Pictures
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Public
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Templates
-rw-r--r-- 1 root root 75308 2009-01-24 20:47 track00.cdda.wav
-rw-r--r-- 1 root root 34699100 2009-01-24 20:48 track01.cdda.wav
-rw-r--r-- 1 root root 47992604 2009-01-24 20:49 track02.cdda.wav
-rw-r--r-- 1 root root 37232204 2009-01-24 20:49 track03.cdda.wav
-rw-r--r-- 1 root root 24025724 2009-01-24 20:50 track04.cdda.wav
-rw-r--r-- 1 root root 38455244 2009-01-24 20:51 track05.cdda.wav
-rw-r--r-- 1 root root 45880508 2009-01-24 20:51 track06.cdda.wav
-rw-r--r-- 1 root root 48470060 2009-01-24 20:52 track07.cdda.wav
-rw-r--r-- 1 root root 22602764 2009-01-24 20:53 track08.cdda.wav
-rw-r--r-- 1 root root 38777468 2009-01-24 20:53 track09.cdda.wav
-rw-r--r-- 1 root root 28600364 2009-01-24 20:54 track10.cdda.wav
-rw-r--r-- 1 root root 30312620 2009-01-24 20:54 track11.cdda.wav
-rw-r--r-- 1 root root 37307468 2009-01-24 20:55 track12.cdda.wav
drwxr-xr-x 2 root root 4096 2008-12-26 12:51 Videos
-rw-r--r-- 1 root root 38455244 2009-01-24 20:45 waltzing_back.wav
[root@msmunir1 ~]#
The output of this ripping is WAV files. The size of this file is very big, around 40 MB until 70 MB. It's not efficient to save on your computer. Therefor, we need convert it to MP3 files.
5. Encoding to MP3 with LAME.
Code :
# lame track01.cdda.wav track01.mp3
Example :
[root@msmunir1 ~]# lame track01.cdda.wav track01.mp3
LAME 3.98.2 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
Encoding track01.cdda.wav to track01.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (11x) 128 kbps qval=3
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
7532/7532 (100%)| 0:18/ 0:18| 0:19/ 0:19| 10.455x| 0:00
------------------------------------------------------------------------------
kbps LR MS % long switch short %
128.0 11.1 88.9 96.6 2.1 1.3
Writing LAME Tag...done
ReplayGain: -2.4dB
[root@msmunir1 ~]#
On this example, track01.cdda.wav convert to track01.mp3. If the command like this :
Code :
[root@msmunir1 ~]# lame track01.cdda.wav
The output file is track01.cdda.wav.mp3. If the command like this :
Code :
[root@msmunir1 ~]# lame track05.cdda.wav waltzing_black.mp3
The output file is waltzing_black.mp3.
Onfortunately, lame can not convert all WAV files to MP3 file at once. You must convert one by
one.
by. msmunir@batan.go.id
No comments:
Post a Comment