Title: mp3 or ogg Ripping Subject: ripping music with nolame, cdparanoia, and scsi emulation # install perl modules that assist with ripping perl -MCPAN -e 'install CDDB' perl -MCPAN -e 'install MP3::Info' -------------------------------------------------------------- # Install nolame encoder. # It does variable bit rate encoding, for improved compression. Title: nolame URL: http://www.idiap.ch/~sanders/not_lame/ Downloaded: notlame-3.92-i686.tar.gz encode_scripts.tar.gz Encoding: - Your ears are not going to hear much at frequencies past 16 kHz - Most music encoded at 128 kbps has a theoretical maximum frequency of 22 kHz (due to the 44 kHz sampling rate). - By using a 32 kHz sampling rate, you can use a significantly lower bitrate for MP3 encoding (e.g. 96 kbps), thus you can fit more music on your mp3 player. - To encode with nolame at 96Kbps, `notlame --alt-preset 96 input.wav output.mp3` - To reencode an mp3 to 96Kbps, `notlame --alt-preset 96 input.mp3 output.mp3` - Variable Bit-Rate (VBR) - sections of the music are encoded at a highter bit rate. - WMA is a proprietary format, and WMA at 64 kbps is crap. ------------------------------------------------------- # Install the ripper Title: cdparanoia track ripper, URL: http://www.xiph.org/paranoia/ ------------------------------------------------------- # Install another ripper Title: cdda2wav URL: http://www.cdda2wav.de/ FAQ: http://www.cdda2wav.de/faq.html#Compilation URL: http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html URL: ftp://ftp.berlios.de/pub/cdrecord/cdrtools-2.00.3.tar.gz ------------------------------------------------------- SETTING UP SCSI EMULATION http://www.juanha.com/scsi.htm # Check for SCSI emulation built ls /lib/modules/(kernel version)/kernel/drivers/scsi ide-scsi.o sg.o vi /etc/modules.conf alias hdc ide-scsi modprobe ide-scsi cdrecord -scanbus # Another how to: http://www.Linux-1U.net/CDRW ------------------------------------------------------- # Another how to: http://lists.debian.org/debian-user/2002/debian-user-200210/msg02304.html cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: YAMAHA Model: CRW2200E Rev: 1.0D Type: CD-ROM ANSI SCSI revision: 02 cdrecord -scanbus Cdrecord 1.11a28 (i686-suse-linux) Copyright (C) 1995-2002 Jörg Schilling Linux sg driver version: 3.1.22 Using libscg version 'schily-0.6' scsibus0: 0,0,0 0) 'YAMAHA ' 'CRW2200E ' '1.0D' Removable CD-ROM 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * ls -laF /dev/hdc /dev/sr0 /dev/cdrecorder /dev/cdrom lrwxrwxrwx 1 root root 8 Aug 14 2002 /dev/cdrecorder -> /dev/sr0 lrwxrwxrwx 1 root root 8 Aug 14 2002 /dev/cdrom -> /dev/hdc brw-rw---- 1 root disk 22, 0 Mar 23 2002 /dev/hdc brw-r----- 1 root disk 11, 0 Mar 23 2002 /dev/sr0 To /etc/modules.conf, I added alias hdc ide-scsi ------------------------------------------------------------------------------ # This is what I did, On SuSE Linux, Setup both IDE CDR and CDRW for ripping. ------------------------------------------------------------------------------ # Base How-to: http://lists.debian.org/debian-user/2002/debian-user-200210/msg02304.html # Chanded : image = /boot/vmlinuz label = linux append = "hdd=ide-scsi" initrd = /boot/initrd root = /dev/hda2 vga = 791 # To: image = /boot/vmlinuz label = linux append = "hdc=ide-scsi hdd=ide-scsi" initrd = /boot/initrd root = /dev/hda2 vga = 791 # Create a new device if it does not exist: mknod /dev/sr1 b 11 1 -m 640 2>/dev/null ln -s /dev/sr1 /dev/cdrecorder1 # Reboot # Test cdrecord -scanbus Cdrecord 1.11a28 (i686-suse-linux) Copyright (C) 1995-2002 Jörg Schilling Linux sg driver version: 3.1.22 Using libscg version 'schily-0.6' scsibus0: 0,0,0 0) 'SONY ' 'CD-ROM CDU5221 ' '0.35' Removable CD-ROM 0,1,0 1) 'YAMAHA ' 'CRW2200E ' '1.0D' Removable CD-ROM 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * -------------------------------------------------------------------------- # ripping/encoding incantation: # First, put nolame in my path export PATH=/home/jstile/MP3_Encoders/notlame-3.92:$PATH # Second, download rip http://rip.sourceforge.net/ # untar/gzip tar -zxvpf rip-1.0.7 # Rip it up, Baby # for ogg format, Ripper: cdparanoia, Enoder:ogg ./rip -S -d /dev/cdrecorder ./rip -S -d /dev/cdrecorder1 # for mp3 format, Ripper: cdparanoia, Encoder:nolame, at 96kbps variable bit rate encodeing. ./rip -SN -b 96 -d /dev/cdrecorder ./rip -SN -b 96 -d /dev/cdrecorder1