diff --git a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml
index 5ceb0bf41c..0f46d6bc9d 100644
--- a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml
+++ b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml
@@ -1,7 +1,7 @@
@@ -29,8 +29,6 @@
applications allowing you to edit your recorded audio, add sound
effects, and control attached MIDI devices.
-
-
After reading this chapter you will know:How to locate your sound card.
@@ -39,6 +37,8 @@
Methods to test that your card is working using
sample applications.How to troubleshoot your sound setup.
+ How to playback and encode MP3s.
+ How to rip CD audio tracks into data files.Before reading this chapter you should:
@@ -365,4 +365,212 @@ pcm0: <Aureal Vortex 8830> at memory 0xfeb40000 irq 5 (4p/1r +channels dup
+
+
+
+
+
+ Chern
+ Lee
+ Contributed by
+
+
+
+
+
+ MP3 Audio
+
+ MP3 (MPEG Layer 3 Audio) accomplishes near CD-quality sound,
+ leaving no reason to let your FreeBSD workstation fall short of
+ its offerings.
+
+
+ MP3 Players
+
+ By far, the most popular XFree86 MP3 player is
+ XMMS (X Multimedia System). Winamp
+ skins can be used with XMMS since the
+ GUI is almost identical to that of Nullsoft Winamp's.
+ XMMS also has native plug-in
+ support.
+
+ XMMS can be installed from the
+ audio/xmms port or package.
+
+ XMMS' interface is intuitive, with
+ a playlist, graphic equalizer, and more. Those familiar with WinAmp
+ will find XMMS simple to use.
+
+ The audio/mpg123 port is an alternative,
+ command-line MP3 player.
+
+ mpg123 can be run by specifying the
+ sound device and the MP3 file on the command line, as shown below:
+
+ &prompt.root; mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
+High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
+Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
+Uses code from various people. See 'README' for more!
+THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
+
+
+
+
+
+Playing MPEG stream from BT - Foobar-GreastHits.mp3 ...
+MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
+
+
+ /dev/dsp1.0 should be replaced with the
+ dsp device entry on your system.
+
+
+
+
+ Ripping CD Audio Tracks
+
+ Before encoding a CD or CD track to MP3, the audio data on
+ the CD must be ripped onto the hard drive. This is done by
+ copying the raw CDDA (CD Digital Audio) data to WAV
+ files.
+
+ The cdda2wav tool, which is a part of the
+ sysutils/cdrtools suite, is used for ripping audio
+ information of CDs and the information associated with it.
+
+ With the audio CD in the drive, the following command
+ can be issued (as root) to rip an entire
+ CD into individual (per track) WAV files:
+
+ &prompt.root; cdda2wav -D 0,1,0 -B
+
+ The
+ indicates the SCSI device 0,1,0, which
+ corresponds to the output of cdrecord
+ -scanbus.
+
+ To rip individual tracks, make use of the
+ option as shown:
+
+ &prompt.root; cdda2wav -D 0,1,0 -t 7
+
+ This example rips track seven of the audio CDROM. To rip a range
+ of tracks, for example, track one to seven, specify a range:
+
+ &prompt.root; cdda2wav -D 0,1,0 -t 1+7
+
+ cdda2wav only supports SCSI
+ CDROM drives. For IDE drives, try out audio/cdd or
+ some of the various other utilities in the audio ports
+ collection.
+
+
+
+
+ Encoding MP3s
+
+ Nowadays, the mp3 encoder of choice is
+ lame.
+ Lame can be found at
+ audio/lame in the ports tree.
+
+ Using the ripped WAV files, the following command will
+ convert audio01.wav to
+ audio01.mp3:
+
+ &prompt.root; lame -h -b 128 \
+--tt "Foo Song Title" \
+--ta "FooBar Artist" \
+--tl "FooBar Album" \
+--ty "2001" \
+--tc "Ripped and encoded by Foo" \
+--tg "Genre" \
+audio01.wav audio01.mp3
+
+ 128 kbits seems to be the standard MP3 bitrate in use.
+ Many enjoy the higher quality 160, or 192. The higher the
+ bitrate, the more disk space the resulting MP3 will consume--but
+ the quality will be higher. The option
+ turns on the higher quality but a little slower
+ mode. The options beginning with indicate
+ ID3 tags, which usually contain song information, to be embedded
+ within the MP3 file. Additional encoding options can be found
+ by consulting the lame man page.
+
+
+
+ Decoding MP3s
+
+ In order to burn an audio CD from MP3s, they must be converted
+ to a non-compressed WAV format. Both XMMS
+ and mpg123 support the output of MP3 to
+ an uncompressed file format.
+
+ Writing to Disk in XMMS:
+
+
+
+ Launch XMMS.
+
+
+
+ Right-click on the window to bring up the
+ XMMS menu.
+
+
+
+ Select Preference under
+ Options.
+
+
+
+ Change the Output Plugin to Disk Writer
+ Plugin.
+
+
+
+ Press Configure.
+
+
+
+ Enter (or choose browse) a directory to write the
+ uncompressed files to.
+
+
+
+ Load the MP3 file into XMMS
+ as usual, with volume at 100% and EQ settings turned
+ off.
+
+
+
+ Press Play — XMMS
+ will appear as if it is playing the MP3, but no music will be heard. It
+ is actually playing the MP3 to a file.
+
+
+
+ Be sure to set the default Output Plugin back to what it was before
+ in order to listen to MP3s again.
+
+
+
+ Writing to stdout in mpg123:
+
+
+
+ Run mpg123 -s audio01.mp3
+ > audio01.pcm
+
+
+
+ XMMS writes a file in the WAV format, while
+ mpg123 converts the MP3 into raw PCM audio data.
+ Both of these formats can be used with cdrecord
+ or burncd to create audio CDROMs.
+
+ Read for more information on using a
+ CD burner in FreeBSD.
+
+
diff --git a/en_US.ISO8859-1/books/handbook/sound/chapter.sgml b/en_US.ISO8859-1/books/handbook/sound/chapter.sgml
index 5ceb0bf41c..0f46d6bc9d 100644
--- a/en_US.ISO8859-1/books/handbook/sound/chapter.sgml
+++ b/en_US.ISO8859-1/books/handbook/sound/chapter.sgml
@@ -1,7 +1,7 @@
@@ -29,8 +29,6 @@
applications allowing you to edit your recorded audio, add sound
effects, and control attached MIDI devices.
-
-
After reading this chapter you will know:How to locate your sound card.
@@ -39,6 +37,8 @@
Methods to test that your card is working using
sample applications.How to troubleshoot your sound setup.
+ How to playback and encode MP3s.
+ How to rip CD audio tracks into data files.Before reading this chapter you should:
@@ -365,4 +365,212 @@ pcm0: <Aureal Vortex 8830> at memory 0xfeb40000 irq 5 (4p/1r +channels dup
+
+
+
+
+
+ Chern
+ Lee
+ Contributed by
+
+
+
+
+
+ MP3 Audio
+
+ MP3 (MPEG Layer 3 Audio) accomplishes near CD-quality sound,
+ leaving no reason to let your FreeBSD workstation fall short of
+ its offerings.
+
+
+ MP3 Players
+
+ By far, the most popular XFree86 MP3 player is
+ XMMS (X Multimedia System). Winamp
+ skins can be used with XMMS since the
+ GUI is almost identical to that of Nullsoft Winamp's.
+ XMMS also has native plug-in
+ support.
+
+ XMMS can be installed from the
+ audio/xmms port or package.
+
+ XMMS' interface is intuitive, with
+ a playlist, graphic equalizer, and more. Those familiar with WinAmp
+ will find XMMS simple to use.
+
+ The audio/mpg123 port is an alternative,
+ command-line MP3 player.
+
+ mpg123 can be run by specifying the
+ sound device and the MP3 file on the command line, as shown below:
+
+ &prompt.root; mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
+High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
+Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
+Uses code from various people. See 'README' for more!
+THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
+
+
+
+
+
+Playing MPEG stream from BT - Foobar-GreastHits.mp3 ...
+MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
+
+
+ /dev/dsp1.0 should be replaced with the
+ dsp device entry on your system.
+
+
+
+
+ Ripping CD Audio Tracks
+
+ Before encoding a CD or CD track to MP3, the audio data on
+ the CD must be ripped onto the hard drive. This is done by
+ copying the raw CDDA (CD Digital Audio) data to WAV
+ files.
+
+ The cdda2wav tool, which is a part of the
+ sysutils/cdrtools suite, is used for ripping audio
+ information of CDs and the information associated with it.
+
+ With the audio CD in the drive, the following command
+ can be issued (as root) to rip an entire
+ CD into individual (per track) WAV files:
+
+ &prompt.root; cdda2wav -D 0,1,0 -B
+
+ The
+ indicates the SCSI device 0,1,0, which
+ corresponds to the output of cdrecord
+ -scanbus.
+
+ To rip individual tracks, make use of the
+ option as shown:
+
+ &prompt.root; cdda2wav -D 0,1,0 -t 7
+
+ This example rips track seven of the audio CDROM. To rip a range
+ of tracks, for example, track one to seven, specify a range:
+
+ &prompt.root; cdda2wav -D 0,1,0 -t 1+7
+
+ cdda2wav only supports SCSI
+ CDROM drives. For IDE drives, try out audio/cdd or
+ some of the various other utilities in the audio ports
+ collection.
+
+
+
+
+ Encoding MP3s
+
+ Nowadays, the mp3 encoder of choice is
+ lame.
+ Lame can be found at
+ audio/lame in the ports tree.
+
+ Using the ripped WAV files, the following command will
+ convert audio01.wav to
+ audio01.mp3:
+
+ &prompt.root; lame -h -b 128 \
+--tt "Foo Song Title" \
+--ta "FooBar Artist" \
+--tl "FooBar Album" \
+--ty "2001" \
+--tc "Ripped and encoded by Foo" \
+--tg "Genre" \
+audio01.wav audio01.mp3
+
+ 128 kbits seems to be the standard MP3 bitrate in use.
+ Many enjoy the higher quality 160, or 192. The higher the
+ bitrate, the more disk space the resulting MP3 will consume--but
+ the quality will be higher. The option
+ turns on the higher quality but a little slower
+ mode. The options beginning with indicate
+ ID3 tags, which usually contain song information, to be embedded
+ within the MP3 file. Additional encoding options can be found
+ by consulting the lame man page.
+
+
+
+ Decoding MP3s
+
+ In order to burn an audio CD from MP3s, they must be converted
+ to a non-compressed WAV format. Both XMMS
+ and mpg123 support the output of MP3 to
+ an uncompressed file format.
+
+ Writing to Disk in XMMS:
+
+
+
+ Launch XMMS.
+
+
+
+ Right-click on the window to bring up the
+ XMMS menu.
+
+
+
+ Select Preference under
+ Options.
+
+
+
+ Change the Output Plugin to Disk Writer
+ Plugin.
+
+
+
+ Press Configure.
+
+
+
+ Enter (or choose browse) a directory to write the
+ uncompressed files to.
+
+
+
+ Load the MP3 file into XMMS
+ as usual, with volume at 100% and EQ settings turned
+ off.
+
+
+
+ Press Play — XMMS
+ will appear as if it is playing the MP3, but no music will be heard. It
+ is actually playing the MP3 to a file.
+
+
+
+ Be sure to set the default Output Plugin back to what it was before
+ in order to listen to MP3s again.
+
+
+
+ Writing to stdout in mpg123:
+
+
+
+ Run mpg123 -s audio01.mp3
+ > audio01.pcm
+
+
+
+ XMMS writes a file in the WAV format, while
+ mpg123 converts the MP3 into raw PCM audio data.
+ Both of these formats can be used with cdrecord
+ or burncd to create audio CDROMs.
+
+ Read for more information on using a
+ CD burner in FreeBSD.
+
+