From 5b193c8f304b1a03505b79d615913baff915494f Mon Sep 17 00:00:00 2001 From: drax62 <> Date: Wed, 14 Jul 2004 12:55:20 +0000 Subject: [PATCH] minor update --- LDP/howto/docbook/MP3-CD-Burning.sgml | 61 +++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 8 deletions(-) diff --git a/LDP/howto/docbook/MP3-CD-Burning.sgml b/LDP/howto/docbook/MP3-CD-Burning.sgml index 72de88f6..99d9853b 100644 --- a/LDP/howto/docbook/MP3-CD-Burning.sgml +++ b/LDP/howto/docbook/MP3-CD-Burning.sgml @@ -14,6 +14,12 @@ A complete recipe for creating audio and data CDs from MP3 files. + + 2.2 + 2004-07-14 + GW + Small updates, added new sub-section. + 2.1 2003-09-12 @@ -114,7 +120,7 @@ url="http://www.tldp.org/HOWTO/MP3-HOWTO.html">http://www.tldp.org/HOWTO/MP3-HOW For information about CD creation in general as well as CD burners, refer to CD-Writing-HOWTO by Winfried Trümper, available at http://www.tldp.org/HOWTO/CD-Writing-HOWTO.html. - +Also, look at the CD Burning Resources section for more information. I'm assuming you wish to burn a CD with the collection of songs you obtained @@ -152,7 +158,7 @@ help you. uppercase extensions. You can convert whole names to lowercase or just extensions. For everything lowercase do: - for i in *.[Mm][Pp]3; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done + for i in *.[Mm][Pp]3; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done to convert just extensions: for i in *.MP3; do mv "$i" "`basename "$i" .MP3`.mp3"; done @@ -165,7 +171,7 @@ help you. We have several choices for the conversion process.
mpg123 and mpg321 - Originally, there was only mpg123. However, it's license is not free, and now there's an open source replacement - mpg321. Both commands use the same syntax: + Originally, there was only mpg123. However, it uses a proprietary licensing, and now there's an open source replacement - mpg321. Both commands use the same syntax: for i in *.mp3; do mpg321 -w `basename $i .mp3`.wav $i; done When decoding 22khz MP3 files the output of mpg123 may be distorted. I don't know how well mpg321 deals with this problem. If you're converting with mpg123, use: @@ -202,8 +208,15 @@ help you. for i in *.ogg ; do ogg123 -d wav -f `basename $i .ogg`.wav $i; done
+
Converting other formats +Nico Genimakis sent me an email about using mplayer to covert audio in many different formats to WAV with automatic resampling to 44100Hz. Mplayer is known to be able to read almost anything, and it can convert your .ogg, .mp3, .flac, .wma etc. +usage (in this example convering WMA files): + + for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm -waveheader $i; done +
-
COnversion Notes +
+
Conversion Notes NOTE: The `basename $i .mp3`.wav command replaces MP3 extensions with WAV. There are 101 ways to do that, here's @@ -250,8 +263,8 @@ help you. There are many programs to create CDs from WAV files. I use cdrecord for command-line burning and XCDROAST for gui. For cdrecord, you have to know -what SCSI device your CD-writer is. If you're using ATAPI writer, use SCSI -emulation (kernel module ide-scsi). Let's assume, that your ATAPI cdwriter +what SCSI device your CD-writer is. If you're using ATAPI writer, with older kernel, use SCSI +emulation (kernel module ide-scsi). As of kernel 2.6, you can use ATAPI directly, without SCSI emulation, by prepending ATAPI: to the device specification. Let's assume, that your ATAPI cdwriter is on the second IDE bus as a master. Thus, it will have /dev/hdc device file. To instruct the kernel that you want to treat it as a SCSI device, add the following line to /etc/lilo.conf: @@ -278,6 +291,11 @@ device. Here is the complete command on my system: cdrecord dev=1,1,0 -eject speed=2 -pad -audio *.wav + +And, with kernel 2.6: + + cdrecord dev=ATAPI:1,1,0 -eject speed=2 -pad -audio *.wav + NOTE The -pad argument is neccessary, because all audio tracks on the CD must be adjusted for the proper @@ -354,7 +372,7 @@ url="http://cdrdao.sourceforge.net/">http://cdrdao.sourceforge.net/. With increasing popularity of CD/MP3 players burning data CDs for listening purposes become practical. The advantage is definitely being able to squeeze ten times more music onto one CD (a very approximate figure). -First I would recommend the filename cleanup steps outlined at the beginning of this document. Conversion to WAV is, obviously, not needed here. To normalize MP3 files without losing quality by conversions, use mp3gain. This program is available from http://www.maazl.de/project/mp3/mp3gain.html. You'd need to issue the command: +First I would recommend the filename cleanup steps outlined at the beginning of this document. Conversion to WAV is, obviously, not needed here. To normalize MP3 files without losing quality by conversions, use mp3gain. This program is available from http://www.maazl.de/project/mp3/mp3gain.html or http://mp3gain.sourceforge.net/ (but this second site seems to contain Windows-oriented version). You'd need to issue the command: mp3gain -r -c *.mp3 @@ -369,6 +387,22 @@ cdrecord dev=1,0,0 speed=16 -eject /tmp/mymp3s.iso That's it!
+
CD Burning Resources + + +Burning CDs on Linux: http://www-106.ibm.com/developerworks/linux/library/l-cdburn.html + + +CD Burning from the command line: http://freeunix.dyndns.org:8088/site2/howto/Burn_em_Baby.shtml + + +Comprehensive Burning Tutorial: http://www.yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html + + +CD Mastering Guide: http://debianlinux.net/~jama/howto/cd_mastering_steps.html + + +
Credits Special thanks to all the people who contribute to the Linux community and who made this HOWTO possible. @@ -390,13 +424,24 @@ Special thanks to all the people who contribute to the Linux community and who m Chie Nakatani - Translated this document to Japanese, URL is http://www.linux.or.jp/JF/JFdocs/MP3-CD-Burning/index.html. + + + Laszlo Daczi - Translated this document to Hungarian, URL is http://tldp.fsf.hu/HOWTO/MP3-CD-Burning-hu/index.html. + + + + + Alix - Translated this document to French, available at French TLDP site http://www.traduc.org. + + +
Other Credits I have had a great response to the previous releases of this HOWTO. So many people contributed, that I decided to change this section slightly in order to list all of the names. So, I'd like to thank: -Greg Ferguson, Rob Russell, Terry Davis, Chris Vaill, Jamie Kellogg, Tom Panning, Adam Buckley, Ilia Lobsanov, Giuseppe "Cowo" Corbelli, Florent Fievez, Piero Ottuzzi, Kees Cook, Andrew Newman, David DeVault. +Greg Ferguson, Rob Russell, Terry Davis, Chris Vaill, Jamie Kellogg, Tom Panning, Adam Buckley, Ilia Lobsanov, Giuseppe "Cowo" Corbelli, Florent Fievez, Piero Ottuzzi, Kees Cook, Andrew Newman, David DeVault, Nico Genimakis, Jan-Erik Stromquist. And, most of all, I'd like to thank my lovely wife, Marta, for her love, support and understanding