mirror of https://github.com/tLDP/LDP
minor update
This commit is contained in:
parent
ae3ef22080
commit
5b193c8f30
|
@ -14,6 +14,12 @@
|
|||
<para>A complete recipe for creating audio and data CDs from MP3 files.</para>
|
||||
</abstract>
|
||||
<revhistory>
|
||||
<revision>
|
||||
<revnumber>2.2</revnumber>
|
||||
<date>2004-07-14</date>
|
||||
<authorinitials>GW</authorinitials>
|
||||
<revremark>Small updates, added new sub-section.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>2.1</revnumber>
|
||||
<date>2003-09-12</date>
|
||||
|
@ -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
|
||||
<emphasis>CD-Writing-HOWTO</emphasis> by Winfried Trümper, available at <ulink
|
||||
url="http://www.tldp.org/HOWTO/CD-Writing-HOWTO.html">http://www.tldp.org/HOWTO/CD-Writing-HOWTO.html</ulink>.
|
||||
|
||||
Also, look at the <emphasis>CD Burning Resources</emphasis> section for more information.
|
||||
</para>
|
||||
<para>
|
||||
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:</para>
|
||||
<programlisting>
|
||||
for i in *.[Mm][Pp]3; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done </programlisting>
|
||||
for i in *.[Mm][Pp]3; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done </programlisting>
|
||||
<para>to convert just extensions:</para>
|
||||
<programlisting>
|
||||
for i in *.MP3; do mv "$i" "`basename "$i" .MP3`.mp3"; done
|
||||
|
@ -165,7 +171,7 @@ help you.
|
|||
<para>We have several choices for the conversion process.</para>
|
||||
<section id="mpg321"><title>mpg123 and mpg321</title>
|
||||
|
||||
<para>Originally, there was only <command>mpg123</command>. However, it's license is not free, and now there's an open source replacement - <command>mpg321</command>. Both commands use the same syntax: </para>
|
||||
<para>Originally, there was only <command>mpg123</command>. However, it uses a proprietary licensing, and now there's an open source replacement - <command>mpg321</command>. Both commands use the same syntax: </para>
|
||||
<programlisting>
|
||||
for i in *.mp3; do mpg321 -w `basename $i .mp3`.wav $i; done </programlisting>
|
||||
<para>When decoding 22khz MP3 files the output of <command>mpg123</command> may be distorted. I don't know how well <command>mpg321</command> deals with this problem. If you're converting with <command>mpg123</command>, use:</para>
|
||||
|
@ -202,8 +208,15 @@ help you.
|
|||
for i in *.ogg ; do ogg123 -d wav -f `basename $i .ogg`.wav $i; done
|
||||
</programlisting>
|
||||
</section>
|
||||
<section id="mplayer"><title>Converting other formats</title>
|
||||
<para>Nico Genimakis sent me an email about using <emphasize>mplayer</emphasize> 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.</para>
|
||||
<para>usage (in this example convering WMA files):</para>
|
||||
<programlisting>
|
||||
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm -waveheader $i; done
|
||||
</programlisting>
|
||||
</section>
|
||||
<section id="notes"><title>COnversion Notes</title>
|
||||
</section>
|
||||
<section id="notes"><title>Conversion Notes</title>
|
||||
<para>
|
||||
<emphasis>NOTE:</emphasis> The <command>`basename $i .mp3`.wav</command> 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 <command>cdrecord</command> for
|
||||
command-line burning and <command>XCDROAST</command> for gui. For <command>cdrecord</command>,
|
||||
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 <emphasis>ATAPI:</emphasis> to the device specification. Let's assume, that your ATAPI cdwriter
|
||||
is on the second IDE bus as a master. Thus, it will have <filename>/dev/hdc</filename> device
|
||||
file. To instruct the kernel that you want to treat it as a SCSI device, add
|
||||
the following line to <filename>/etc/lilo.conf</filename>: </para>
|
||||
|
@ -278,6 +291,11 @@ device. Here is the complete command on my system: </para>
|
|||
<programlisting>
|
||||
cdrecord dev=1,1,0 -eject speed=2 -pad -audio *.wav
|
||||
</programlisting>
|
||||
<para>
|
||||
And, with kernel 2.6:</para>
|
||||
<programlisting>
|
||||
cdrecord dev=ATAPI:1,1,0 -eject speed=2 -pad -audio *.wav
|
||||
</programlisting>
|
||||
|
||||
<note><title>NOTE</title><para> 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/</ulink>.</pa
|
|||
<para>
|
||||
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).</para>
|
||||
<para>
|
||||
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 <command>mp3gain</command>. This program is available from <ulink url="http://www.maazl.de/project/mp3/mp3gain.html">http://www.maazl.de/project/mp3/mp3gain.html</ulink>. You'd need to issue the command:</para>
|
||||
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 <command>mp3gain</command>. This program is available from <ulink url="http://www.maazl.de/project/mp3/mp3gain.html">http://www.maazl.de/project/mp3/mp3gain.html</ulink> or <ulink url="http://mp3gain.sourceforge.net/">http://mp3gain.sourceforge.net/</ulink> (but this second site seems to contain Windows-oriented version). You'd need to issue the command:</para>
|
||||
<programlisting>
|
||||
mp3gain -r -c *.mp3
|
||||
</programlisting>
|
||||
|
@ -369,6 +387,22 @@ cdrecord dev=1,0,0 speed=16 -eject /tmp/mymp3s.iso
|
|||
That's it!
|
||||
</para>
|
||||
</section>
|
||||
<section id="resources"><title>CD Burning Resources</title><para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
Burning CDs on Linux: <ulink url="http://www-106.ibm.com/developerworks/linux/library/l-cdburn.html">http://www-106.ibm.com/developerworks/linux/library/l-cdburn.html</ulink>
|
||||
</listitem>
|
||||
<listitem>
|
||||
CD Burning from the command line: <ulink url="http://freeunix.dyndns.org:8088/site2/howto/Burn_em_Baby.shtml">http://freeunix.dyndns.org:8088/site2/howto/Burn_em_Baby.shtml</ulink>
|
||||
</listitem>
|
||||
<listitem>
|
||||
Comprehensive Burning Tutorial: <ulink url="http://www.yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html">http://www.yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html</ulink>
|
||||
</listitem>
|
||||
<listitem>
|
||||
CD Mastering Guide: <ulink url="http://debianlinux.net/~jama/howto/cd_mastering_steps.html">http://debianlinux.net/~jama/howto/cd_mastering_steps.html</ulink>
|
||||
</listitem>
|
||||
</para>
|
||||
</section>
|
||||
<section id="credits"><title>Credits</title>
|
||||
<para>
|
||||
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 <ulink url="http://www.linux.or.jp/JF/JFdocs/MP3-CD-Burning/index.html">http://www.linux.or.jp/JF/JFdocs/MP3-CD-Burning/index.html</ulink>.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Laszlo Daczi - Translated this document to Hungarian, URL is <ulink url="http://tldp.fsf.hu/HOWTO/MP3-CD-Burning-hu/index.html">http://tldp.fsf.hu/HOWTO/MP3-CD-Burning-hu/index.html</ulink>.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Alix - Translated this document to French, available at French TLDP site <ulink url=" http://www.traduc.org"> http://www.traduc.org</ulink>.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
||||
</section>
|
||||
<section id="othercredits"><title>Other Credits</title>
|
||||
<para>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:</para>
|
||||
<para>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.
|
||||
<para>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.
|
||||
</para>
|
||||
<para>And, most of all, I'd like to thank my lovely wife, Marta, for her love, support and understanding</para>
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue