Esta vez voy a explicar cómo ripear nuestro CD de audio favorito (original, por supuesto) en formato mp3 en GNU/Linux utilizando el codec LAME, de forma extremadamente sencilla!

Como la mayoría de los artículos de este blog, el procedimiento se realiza desde la consola. Primero se debe insertar el CD de audio y copiar los archivos *.wav a un directorio destino. Para ello es necesario montar el CDROM, en Red Hat y derivados se hace mediante el comando:

mount /media/cdrom

En otras distribuciones tal vez deba especificarse el tipo de sistema de archivos:

mount -t iso9660 /dev/cdrom /media/cdrom

Sino, en Nautilus es posible acceder al CD utilizando la URL:

"cdda:///dev/sdr0"

O en Konqueror es posible utilizar:

"audiocd:/"

Una vez montado el CD de audio y copiados los archivos *.wav es posible realizar la conversión a *.mp3 utilizando el codec lame. Cambiar al directorio donde se han copiado los archivos *.wav y ejecutar:

for track in *.wav; do lame -m j -b 192 "$track" ; done

Para cada archivo *.wav en el directorio actual, realiza la conversión a MP3 utilizando "lame". La opción "-m" se utiliza para especificar el modo, en este caso "joint stereo", y la opción "-b" se utiliza para especificar el bitrate, en este caso 192Kbps.

Eso es todo!

Extremadamente sencillo.

Ejemplo:

[pepe@elordenadordepepe Van Halen - A Different Kind Of Truth (2012)]$ ll            
total 519024                                                              
-rw-rw-r-- 1 pepe pepe 50163550 Sep 19 12:34 01 - Tattoo.wav                
-rw-rw-r-- 1 pepe pepe 31333438 Sep 19 12:34 02 - She's The Woman.wav       
-rw-rw-r-- 1 pepe pepe 39485470 Sep 19 12:35 03 - You And Your Blues.wav    
-rw-rw-r-- 1 pepe pepe 34471006 Sep 19 12:35 04 - China Town.wav            
-rw-rw-r-- 1 pepe pepe 47089486 Sep 19 12:35 05 - Blood And Fire.wav        
-rw-rw-r-- 1 pepe pepe 26751742 Sep 19 12:35 06 - Bullethead.wav            
-rw-rw-r-- 1 pepe pepe 50713918 Sep 19 12:35 07 - As Is.wav                 
-rw-rw-r-- 1 pepe pepe 40148734 Sep 19 12:35 08 - Honeybabysweetiedoll.wav  
-rw-rw-r-- 1 pepe pepe 42272590 Sep 19 12:36 09 - The Trouble With Never.wav
-rw-rw-r-- 1 pepe pepe 30733678 Sep 19 12:36 10 - Outta Space.wav           
-rw-rw-r-- 1 pepe pepe 43806094 Sep 19 12:36 11 - Stay Frosty.wav           
-rw-rw-r-- 1 pepe pepe 40868446 Sep 19 12:36 12 - Big River.wav             
-rw-rw-r-- 1 pepe pepe 53618638 Sep 19 12:36 13 - Beats Workin'.wav         
[pepe@elordenadordepepe Van Halen - A Different Kind Of Truth (2012)]$ for track in *.wav; do lame -m j -b 192 "$track" ; done
LAME 3.99.5 64bits (http://lame.sf.net)                                                                            
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz                                               
Encoding 01 - Tattoo.wav to 01 - Tattoo.mp3                                                                        
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3                                              
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA                                         
 10888/10888 (100%)|    0:07/    0:07|    0:07/    0:07|   35.731x|    0:00                                        
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0        8.7  91.3        98.2   1.0   0.8
Writing LAME Tag...done                         
ReplayGain: -10.9dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 02 - She's The Woman.wav to 02 - She's The Woman.mp3       
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  6801/6801  (100%)|    0:04/    0:04|    0:04/    0:04|   35.963x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       15.5  84.5        94.2   3.3   2.5
Writing LAME Tag...done                         
ReplayGain: -10.7dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 03 - You And Your Blues.wav to 03 - You And Your Blues.mp3 
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  8570/8570  (100%)|    0:06/    0:06|    0:06/    0:06|   36.225x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       24.5  75.5        96.9   1.8   1.3
Writing LAME Tag...done                         
ReplayGain: -10.4dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 04 - China Town.wav to 04 - China Town.mp3                 
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  7482/7482  (100%)|    0:05/    0:05|    0:05/    0:05|   35.536x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       15.6  84.4        97.5   1.4   1.1
Writing LAME Tag...done                         
ReplayGain: -10.4dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 05 - Blood And Fire.wav to 05 - Blood And Fire.mp3         
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
 10221/10221 (100%)|    0:07/    0:07|    0:07/    0:07|   35.935x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       31.4  68.6        96.8   1.8   1.4
Writing LAME Tag...done                         
ReplayGain: -10.1dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 06 - Bullethead.wav to 06 - Bullethead.mp3                 
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  5807/5807  (100%)|    0:04/    0:04|    0:04/    0:04|   35.442x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       20.9  79.1        98.3   1.0   0.7
Writing LAME Tag...done                         
ReplayGain: -10.5dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 07 - As Is.wav to 07 - As Is.mp3                           
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
 11007/11007 (100%)|    0:08/    0:08|    0:08/    0:08|   35.454x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       15.0  85.0        95.1   2.7   2.2
Writing LAME Tag...done                         
ReplayGain: -10.0dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 08 - Honeybabysweetiedoll.wav to 08 - Honeybabysweetiedoll.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3  
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  8714/8714  (100%)|    0:06/    0:06|    0:06/    0:06|   35.401x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       21.0  79.0        98.0   1.1   0.9
Writing LAME Tag...done                         
ReplayGain: -9.8dB                              
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 09 - The Trouble With Never.wav to 09 - The Trouble With Never.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3      
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  9175/9175  (100%)|    0:06/    0:06|    0:06/    0:06|   35.933x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       16.7  83.3        95.5   2.6   1.9
Writing LAME Tag...done                         
ReplayGain: -9.8dB                              
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 10 - Outta Space.wav to 10 - Outta Space.mp3               
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  6671/6671  (100%)|    0:04/    0:04|    0:04/    0:04|   35.276x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       25.2  74.8        98.9   0.6   0.4
Writing LAME Tag...done                         
ReplayGain: -10.1dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 11 - Stay Frosty.wav to 11 - Stay Frosty.mp3               
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  9508/9508  (100%)|    0:06/    0:06|    0:06/    0:06|   36.472x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       10.5  89.5        94.6   2.7   2.7
Writing LAME Tag...done                         
ReplayGain: -9.3dB                              
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 12 - Big River.wav to 12 - Big River.mp3                   
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
  8870/8870  (100%)|    0:06/    0:06|    0:06/    0:06|   35.702x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       28.2  71.8        97.3   1.5   1.2
Writing LAME Tag...done                         
ReplayGain: -10.2dB                             
LAME 3.99.5 64bits (http://lame.sf.net)         
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 13 - Beats Workin'.wav to 13 - Beats Workin'.mp3           
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (7.3x) 192 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA 
 11637/11637 (100%)|    0:08/    0:08|    0:08/    0:08|   35.596x|    0:00 
------------------------------------------------------------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  192.0       36.1  63.9        97.2   1.6   1.2
Writing LAME Tag...done                         
ReplayGain: -9.3dB                              
[pepe@elordenadordepepe Van Halen - A Different Kind Of Truth (2012)]$ ll
total 589676                                                  
-rw-rw-r-- 1 pepe pepe  6826735 Sep 19 13:02 01 - Tattoo.mp3    
-rw-rw-r-- 1 pepe pepe 50163550 Sep 19 12:34 01 - Tattoo.wav    
-rw-rw-r-- 1 pepe pepe  4264436 Sep 19 13:02 02 - She's The Woman.mp3
-rw-rw-r-- 1 pepe pepe 31333438 Sep 19 12:34 02 - She's The Woman.wav
-rw-rw-r-- 1 pepe pepe  5373491 Sep 19 13:03 03 - You And Your Blues.mp3
-rw-rw-r-- 1 pepe pepe 39485470 Sep 19 12:35 03 - You And Your Blues.wav
-rw-rw-r-- 1 pepe pepe  4691381 Sep 19 13:03 04 - China Town.mp3        
-rw-rw-r-- 1 pepe pepe 34471006 Sep 19 12:35 04 - China Town.wav        
-rw-rw-r-- 1 pepe pepe  6408567 Sep 19 13:03 05 - Blood And Fire.mp3    
-rw-rw-r-- 1 pepe pepe 47089486 Sep 19 12:35 05 - Blood And Fire.wav    
-rw-rw-r-- 1 pepe pepe  3641259 Sep 19 13:03 06 - Bullethead.mp3        
-rw-rw-r-- 1 pepe pepe 26751742 Sep 19 12:35 06 - Bullethead.wav
-rw-rw-r-- 1 pepe pepe  6901341 Sep 19 13:03 07 - As Is.mp3
-rw-rw-r-- 1 pepe pepe 50713918 Sep 19 12:35 07 - As Is.wav
-rw-rw-r-- 1 pepe pepe  5463770 Sep 19 13:03 08 - Honeybabysweetiedoll.mp3
-rw-rw-r-- 1 pepe pepe 40148734 Sep 19 12:35 08 - Honeybabysweetiedoll.wav
-rw-rw-r-- 1 pepe pepe  5752789 Sep 19 13:03 09 - The Trouble With Never.mp3
-rw-rw-r-- 1 pepe pepe 42272590 Sep 19 12:36 09 - The Trouble With Never.wav
-rw-rw-r-- 1 pepe pepe  4182934 Sep 19 13:03 10 - Outta Space.mp3
-rw-rw-r-- 1 pepe pepe 30733678 Sep 19 12:36 10 - Outta Space.wav
-rw-rw-r-- 1 pepe pepe  5961559 Sep 19 13:03 11 - Stay Frosty.mp3
-rw-rw-r-- 1 pepe pepe 43806094 Sep 19 12:36 11 - Stay Frosty.wav
-rw-rw-r-- 1 pepe pepe  5561572 Sep 19 13:03 12 - Big River.mp3
-rw-rw-r-- 1 pepe pepe 40868446 Sep 19 12:36 12 - Big River.wav
-rw-rw-r-- 1 pepe pepe  7296312 Sep 19 13:04 13 - Beats Workin'.mp3
-rw-rw-r-- 1 pepe pepe 53618638 Sep 19 12:36 13 - Beats Workin'.wav


Tal vez pueda interesarte


Compartí este artículo