From owner-svn-doc-all@FreeBSD.ORG Fri Mar 28 03:08:32 2014 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB9D1E2D; Fri, 28 Mar 2014 03:08:31 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BBBCAD97; Fri, 28 Mar 2014 03:08:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2S38VlB033748; Fri, 28 Mar 2014 03:08:31 GMT (envelope-from wblock@svn.freebsd.org) Received: (from wblock@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2S38VBW033747; Fri, 28 Mar 2014 03:08:31 GMT (envelope-from wblock@svn.freebsd.org) Message-Id: <201403280308.s2S38VBW033747@svn.freebsd.org> From: Warren Block Date: Fri, 28 Mar 2014 03:08:31 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r44367 - head/en_US.ISO8859-1/books/handbook/multimedia X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2014 03:08:32 -0000 Author: wblock Date: Fri Mar 28 03:08:31 2014 New Revision: 44367 URL: http://svnweb.freebsd.org/changeset/doc/44367 Log: Recover lost tags. Modified: head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Fri Mar 28 02:59:00 2014 (r44366) +++ head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Fri Mar 28 03:08:31 2014 (r44367) @@ -266,10 +266,10 @@ pcm2: <Conexant CX20590 (Analog 2.0+H Another quick way to test the card is to send data to /dev/dsp: - &prompt.user; cat filename > /dev/dsp + &prompt.user; cat filename > /dev/dsp where - filename can + filename can be any type of file. This command should produce some noise, confirming that the sound card is working. @@ -373,7 +373,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digi hw.snd.default_unit to the unit that should be used for playback: - &prompt.root; sysctl hw.snd.default_unit=n + &prompt.root; sysctl hw.snd.default_unit=n where n is the number of the sound device to use. In this example, it should be @@ -518,7 +518,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digi Foobar-GreatestHits.mp3, enter the following to play the file: - &prompt.root; mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3 + &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! @@ -551,7 +551,7 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz into individual (per track) WAV files: - &prompt.root; cdda2wav -D 0,1,0 -B + &prompt.root; cdda2wav -D 0,1,0 -B The indicates the SCSI device 0,1,0, @@ -563,18 +563,18 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz device name in place of the SCSI unit numbers. For example, to rip track 7 from an IDE drive: - &prompt.root; cdda2wav -D /dev/acd0 -t 7 + &prompt.root; cdda2wav -D /dev/acd0 -t 7 To rip individual tracks, make use of the as shown: - &prompt.root; cdda2wav -D 0,1,0 -t 7 + &prompt.root; cdda2wav -D 0,1,0 -t 7 This example rips track seven of the audio CDROM. To rip a range of tracks, such as track one to seven, specify a range: - &prompt.root; cdda2wav -D 0,1,0 -t 1+7 + &prompt.root; cdda2wav -D 0,1,0 -t 1+7 &man.dd.1; can also be used to extract audio tracks on ATAPI drives, as described in . @@ -592,18 +592,18 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz The following command will convert the ripped WAV files - audio01.wav + audio01.wav to - audio01.mp3: + 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 + &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 is a standard MP3 bitrate. The 160 and 192 bitrates provide higher quality. @@ -685,8 +685,8 @@ audio01.wav audio01.mp3 Run mpg123 -s - audio01.mp3 > - audio01.pcm + audio01.mp3 > + audio01.pcm @@ -703,7 +703,7 @@ audio01.wav audio01.mp3SoX, which can be installed from the audio/sox port or package: - &prompt.user; sox -t wav -r 44100 -s -w -c 2 track.wav track.raw + &prompt.user; sox -t wav -r 44100 -s -w -c 2 track.wav track.raw Refer to for more information on using a CD burner in &os;. @@ -974,26 +974,26 @@ no adaptors present options. To play the file - testfile.avi, + testfile.avi, specify the video interfaces with , as seen in the following examples: - &prompt.user; mplayer -vo xv testfile.avi + &prompt.user; mplayer -vo xv testfile.avi - &prompt.user; mplayer -vo sdl testfile.avi + &prompt.user; mplayer -vo sdl testfile.avi - &prompt.user; mplayer -vo x11 testfile.avi + &prompt.user; mplayer -vo x11 testfile.avi - &prompt.root; mplayer -vo dga testfile.avi + &prompt.root; mplayer -vo dga testfile.avi - &prompt.root; mplayer -vo 'sdl:dga' testfile.avi + &prompt.root; mplayer -vo 'sdl:dga' testfile.avi It is worth trying all of these options, as their relative performance depends on many factors and will vary significantly with hardware. To play a DVD, replace - testfile.avi + testfile.avi with , where N is the title number to play and @@ -1058,25 +1058,25 @@ zoom=yes Here is an example of a simple copy: - &prompt.user; mencoder input.avi -oac copy -ovc copy -o output.avi + &prompt.user; mencoder input.avi -oac copy -ovc copy -o output.avi To rip to a file, use with mplayer. To convert - input.avi to + input.avi to the MPEG4 codec with MPEG3 audio encoding, first install the audio/lame port. Due to licensing restrictions, a package is not available. Once installed, type: - &prompt.user; mencoder input.avi -oac mp3lame -lameopts br=192 \ - -ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi + &prompt.user; mencoder input.avi -oac mp3lame -lameopts br=192 \ + -ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi This will produce output playable by applications such as mplayer and xine. - input.avi + input.avi can be replaced with and run as root to re-encode a DVD title directly. Since it @@ -1107,7 +1107,7 @@ zoom=yes invoked from the command line by specifying the name of the file to play: - &prompt.user; xine -g -p mymovie.avi + &prompt.user; xine -g -p mymovie.avi Refer to xine-project.org/faq for more information and @@ -1140,11 +1140,11 @@ zoom=yes a PAL MPEG-1 file (PAL VCD): &prompt.user; transcode -i -input.avi -V --export_prof vcd-pal -o output_vcd -&prompt.user; mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa +input.avi -V --export_prof vcd-pal -o output_vcd +&prompt.user; mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa The resulting MPEG file, - output_vcd.mpg, + output_vcd.mpg, is ready to be played with MPlayer. The file can be burned on a CD media to create a video CD using a utility such as @@ -1629,7 +1629,7 @@ add path usb/0.2.0 mode 0666 group usbusb in order to allow access to the scanner: - &prompt.root; pw groupmod usb -m joe + &prompt.root; pw groupmod usb -m joe For more details refer to &man.pw.8;.