From 6eb9277a95902588e4f2567d2f01b38ed5af4e4c Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Sun, 27 Apr 2008 12:10:52 +0000 Subject: [PATCH] - Use replaceable elements appropriately [1] - Enclose lame into application element [2] PR: docs/123132 [1], docs/123135 [2] Submitted by: pgj --- .../books/handbook/multimedia/chapter.sgml | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml index a61cfbd469..4a4b06aed6 100644 --- a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml @@ -293,7 +293,7 @@ kld snd_ich (1p/2r/0v channels duplex default) &prompt.user; cat filename > /dev/dsp - where filename can be any file. + where filename can be any file. This command line should produce some noise, confirming the sound card is actually working. @@ -494,7 +494,7 @@ Playing MPEG stream from Foobar-GreatestHits.mp3 ... MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo - /dev/dsp1.0 should be replaced with the + /dev/dsp1.0 should be replaced with the dsp device entry on your system. @@ -556,8 +556,8 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo audio/lame in the ports tree. Using the ripped WAV files, the following command will - convert audio01.wav to - audio01.mp3: + convert audio01.wav to + audio01.mp3: &prompt.root; lame -h -b 128 \ --tt "Foo Song Title" \ @@ -577,7 +577,7 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo 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. + lame man page. @@ -644,7 +644,7 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo Run mpg123 -s audio01.mp3 - > audio01.pcm + > audio01.pcm @@ -1069,18 +1069,18 @@ http://www.mplayerhq.hu/homepage/dload.html through one of the various video interfaces set the option: - &prompt.user; mplayer -vo xv testfile.avi - &prompt.user; mplayer -vo sdl testfile.avi - &prompt.user; mplayer -vo x11 testfile.avi - &prompt.root; mplayer -vo dga testfile.avi - &prompt.root; mplayer -vo 'sdl:dga' testfile.avi + &prompt.user; mplayer -vo xv testfile.avi + &prompt.user; mplayer -vo sdl testfile.avi + &prompt.user; mplayer -vo x11 testfile.avi + &prompt.root; mplayer -vo 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 from a DVD, replace the - testfile.avi with where N is the title number to play and DEVICE is the @@ -1141,7 +1141,7 @@ zoom=yes or bad performance. Here are a couple of examples to get you going. First 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 Improper combinations of command line options can yield output files that are @@ -1149,16 +1149,16 @@ zoom=yes just want to rip to a file, stick to the in mplayer. - To convert input.avi to the MPEG4 + To convert input.avi to the MPEG4 codec with MPEG3 audio encoding (audio/lame is required): - &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 has produced output playable by mplayer and xine. - input.avi can be replaced with + input.avi can be replaced with and run as root to re-encode a DVD title directly. Since you are likely to be dissatisfied with @@ -1202,7 +1202,7 @@ zoom=yes Alternatively, it may be invoked to play a file immediately without the GUI with the command: - &prompt.user; xine -g -p mymovie.avi + &prompt.user; xine -g -p mymovie.avi @@ -1230,11 +1230,11 @@ WITH_MJPEG=yes -DWITH_XVID=yes example to show how to convert a DivX file into 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 + &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 The resulting MPEG file, - output_vcd.mpg, is ready to be played with + output_vcd.mpg, is ready to be played with MPlayer. You could even burn the file on a CD-R media to create a Video CD, in this case you will need to install and use both example, our USB scanner uses the device node /dev/uscanner0 which is owned by the operator group. Adding the user - joe to the + joe to the operator group will allow him to use the scanner: