View | Details | Raw Unified | Return to bug 123132
Collapse All | Expand All

(-)chapter.sgml (-21 / +21 lines)
Lines 293-299 Link Here
293
293
294
    <screen>&prompt.user; <userinput>cat <replaceable>filename</replaceable> &gt; /dev/dsp</userinput></screen>
294
    <screen>&prompt.user; <userinput>cat <replaceable>filename</replaceable> &gt; /dev/dsp</userinput></screen>
295
295
296
    <para>where <replaceable>filename</replaceable> can be any file.
296
    <para>where <filename><replaceable>filename</replaceable></filename> can be any file.
297
      This command line should produce some noise, confirming the
297
      This command line should produce some noise, confirming the
298
      sound card is actually working.</para>
298
      sound card is actually working.</para>
299
299
Lines 494-500 Link Here
494
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
494
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
495
</screen>
495
</screen>
496
496
497
      <para><literal>/dev/dsp1.0</literal> should be replaced with the
497
      <para><devicename><replaceable>/dev/dsp1.0</replaceable></devicename> should be replaced with the
498
	<devicename>dsp</devicename> device entry on your system.</para>
498
	<devicename>dsp</devicename> device entry on your system.</para>
499
499
500
    </sect2>
500
    </sect2>
Lines 556-563 Link Here
556
	<filename role="package">audio/lame</filename> in the ports tree.</para>
556
	<filename role="package">audio/lame</filename> in the ports tree.</para>
557
557
558
      <para>Using the ripped WAV files, the following command will
558
      <para>Using the ripped WAV files, the following command will
559
	convert <filename>audio01.wav</filename> to
559
	convert <filename><replaceable>audio01.wav</replaceable></filename> to
560
	<filename>audio01.mp3</filename>:</para>
560
	<filename><replaceable>audio01.mp3</replaceable></filename>:</para>
561
561
562
      <screen>&prompt.root; <userinput>lame -h -b <replaceable>128</replaceable> \
562
      <screen>&prompt.root; <userinput>lame -h -b <replaceable>128</replaceable> \
563
--tt "<replaceable>Foo Song Title</replaceable>" \
563
--tt "<replaceable>Foo Song Title</replaceable>" \
Lines 644-650 Link Here
644
      <procedure>
644
      <procedure>
645
	<step>
645
	<step>
646
	  <para>Run <command>mpg123 -s <replaceable>audio01.mp3</replaceable>
646
	  <para>Run <command>mpg123 -s <replaceable>audio01.mp3</replaceable>
647
	    &gt; audio01.pcm</command></para>
647
	    &gt; <replaceable>audio01.pcm</replaceable></command></para>
648
	</step>
648
	</step>
649
      </procedure>
649
      </procedure>
650
650
Lines 1069-1086 Link Here
1069
	  through one of the various video interfaces set the
1069
	  through one of the various video interfaces set the
1070
	  <option>-vo</option> option:</para>
1070
	  <option>-vo</option> option:</para>
1071
1071
1072
	  <screen>&prompt.user; <userinput>mplayer -vo xv testfile.avi</userinput></screen>
1072
	  <screen>&prompt.user; <userinput>mplayer -vo xv <replaceable>testfile.avi</replaceable></userinput></screen>
1073
	  <screen>&prompt.user; <userinput>mplayer -vo sdl testfile.avi</userinput></screen>
1073
	  <screen>&prompt.user; <userinput>mplayer -vo sdl <replaceable>testfile.avi</replaceable></userinput></screen>
1074
	  <screen>&prompt.user; <userinput>mplayer -vo x11 testfile.avi</userinput></screen>
1074
	  <screen>&prompt.user; <userinput>mplayer -vo x11 <replaceable>testfile.avi</replaceable></userinput></screen>
1075
	  <screen>&prompt.root; <userinput>mplayer -vo dga testfile.avi</userinput></screen>
1075
	  <screen>&prompt.root; <userinput>mplayer -vo dga <replaceable>testfile.avi</replaceable></userinput></screen>
1076
	  <screen>&prompt.root; <userinput>mplayer -vo 'sdl:dga' testfile.avi</userinput></screen>
1076
	  <screen>&prompt.root; <userinput>mplayer -vo 'sdl:dga' <replaceable>testfile.avi</replaceable></userinput></screen>
1077
1077
1078
	<para>It is worth trying all of these options, as their relative
1078
	<para>It is worth trying all of these options, as their relative
1079
	  performance depends on many factors and will vary significantly
1079
	  performance depends on many factors and will vary significantly
1080
	  with hardware.</para>
1080
	  with hardware.</para>
1081
1081
1082
	<para>To play from a DVD, replace the
1082
	<para>To play from a DVD, replace the
1083
	 <filename>testfile.avi</filename> with <option>dvd://<replaceable>N</replaceable> -dvd-device
1083
	 <filename><replaceable>testfile.avi</replaceable></filename> with <option>dvd://<replaceable>N</replaceable> -dvd-device
1084
	 <replaceable>DEVICE</replaceable></option> where <replaceable>N</replaceable> is
1084
	 <replaceable>DEVICE</replaceable></option> where <replaceable>N</replaceable> is
1085
	 the title number to play and
1085
	 the title number to play and
1086
	 <filename><replaceable>DEVICE</replaceable></filename> is the
1086
	 <filename><replaceable>DEVICE</replaceable></filename> is the
Lines 1141-1147 Link Here
1141
	 or bad performance.  Here are a couple of examples to get
1141
	 or bad performance.  Here are a couple of examples to get
1142
	 you going.  First a simple copy:</para>
1142
	 you going.  First a simple copy:</para>
1143
1143
1144
	 <screen>&prompt.user; <userinput>mencoder input.avi -oac copy -ovc copy -o output.avi</userinput></screen>
1144
	 <screen>&prompt.user; <userinput>mencoder <replaceable>input.avi</replaceable> -oac copy -ovc copy -o <replaceable>output.avi</replaceable></userinput></screen>
1145
1145
1146
         <para>Improper combinations of command line options can yield
1146
         <para>Improper combinations of command line options can yield
1147
	 output files that are
1147
	 output files that are
Lines 1149-1164 Link Here
1149
	 just want to rip to a file, stick to the <option>-dumpfile</option>
1149
	 just want to rip to a file, stick to the <option>-dumpfile</option>
1150
	 in <command>mplayer</command>.</para>
1150
	 in <command>mplayer</command>.</para>
1151
1151
1152
	 <para>To convert <filename>input.avi</filename> to the MPEG4
1152
	 <para>To convert <filename><replaceable>input.avi</replaceable></filename> to the MPEG4
1153
	 codec with MPEG3 audio encoding (<filename role="package">audio/lame</filename> is required):</para>
1153
	 codec with MPEG3 audio encoding (<filename role="package">audio/lame</filename> is required):</para>
1154
1154
1155
	 <screen>&prompt.user; <userinput>mencoder input.avi -oac mp3lame -lameopts br=192 \
1155
	 <screen>&prompt.user; <userinput>mencoder <replaceable>input.avi</replaceable> -oac mp3lame -lameopts br=192 \
1156
	 -ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi</userinput></screen>
1156
	 -ovc lavc -lavcopts vcodec=mpeg4:vhq -o <replaceable>output.avi</replaceable></userinput></screen>
1157
1157
1158
	 <para>This has produced output playable by <command>mplayer</command>
1158
	 <para>This has produced output playable by <command>mplayer</command>
1159
	 and <command>xine</command>.</para>
1159
	 and <command>xine</command>.</para>
1160
1160
1161
	 <para><filename>input.avi</filename> can be replaced with
1161
	 <para><filename><replaceable>input.avi</replaceable></filename> can be replaced with
1162
	   <option>dvd://1 -dvd-device /dev/dvd</option> and run as
1162
	   <option>dvd://1 -dvd-device /dev/dvd</option> and run as
1163
	   <username>root</username> to re-encode a DVD title
1163
	   <username>root</username> to re-encode a DVD title
1164
	   directly.  Since you are likely to be dissatisfied with
1164
	   directly.  Since you are likely to be dissatisfied with
Lines 1202-1208 Link Here
1202
    <para>Alternatively, it may be invoked to play a file immediately
1202
    <para>Alternatively, it may be invoked to play a file immediately
1203
      without the GUI with the command:</para>
1203
      without the GUI with the command:</para>
1204
1204
1205
      <screen>&prompt.user; <userinput>xine -g -p mymovie.avi</userinput></screen>
1205
      <screen>&prompt.user; <userinput>xine -g -p <replaceable>mymovie.avi</replaceable></userinput></screen>
1206
1206
1207
    </sect3>
1207
    </sect3>
1208
1208
Lines 1230-1240 Link Here
1230
      example to show how to convert a DivX file into a PAL MPEG-1
1230
      example to show how to convert a DivX file into a PAL MPEG-1
1231
      file (PAL VCD):</para>
1231
      file (PAL VCD):</para>
1232
1232
1233
      <screen>&prompt.user; <userinput>transcode -i input.avi -V --export_prof vcd-pal -o output_vcd</userinput>
1233
      <screen>&prompt.user; <userinput>transcode -i <replaceable>input.avi</replaceable> -V --export_prof vcd-pal -o output_vcd</userinput>
1234
&prompt.user; <userinput>mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa</userinput></screen>
1234
&prompt.user; <userinput>mplex -f 1 -o <replaceable>output_vcd.mpg output_vcd.m1v output_vcd.mpa</replaceable></userinput></screen>
1235
1235
1236
    <para>The resulting MPEG file,
1236
    <para>The resulting MPEG file,
1237
      <filename>output_vcd.mpg</filename>, is ready to be played with
1237
      <filename><replaceable>output_vcd.mpg</replaceable></filename>, is ready to be played with
1238
      <application>MPlayer</application>.  You could even burn the
1238
      <application>MPlayer</application>.  You could even burn the
1239
      file on a CD-R media to create a Video CD, in this case you will
1239
      file on a CD-R media to create a Video CD, in this case you will
1240
      need to install and use both <filename
1240
      need to install and use both <filename
Lines 1728-1734 Link Here
1728
	example, our USB scanner uses the device node
1728
	example, our USB scanner uses the device node
1729
	<filename>/dev/uscanner0</filename> which is owned by the
1729
	<filename>/dev/uscanner0</filename> which is owned by the
1730
	<groupname>operator</groupname> group.  Adding the user
1730
	<groupname>operator</groupname> group.  Adding the user
1731
	<username>joe</username> to the
1731
	<username><replaceable>joe</replaceable></username> to the
1732
	<groupname>operator</groupname> group will allow him to use
1732
	<groupname>operator</groupname> group will allow him to use
1733
	the scanner:</para>
1733
	the scanner:</para>

Return to bug 123132