Date: Mon, 21 Apr 2014 18:12:06 +0000 (UTC) From: Dru Lavigne <dru@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r44617 - head/en_US.ISO8859-1/books/handbook/multimedia Message-ID: <201404211812.s3LIC6UY060411@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dru Date: Mon Apr 21 18:12:05 2014 New Revision: 44617 URL: http://svnweb.freebsd.org/changeset/doc/44617 Log: White space fix only. Translators can ignore. Sponsored by: iXsystems 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 Mon Apr 21 17:17:07 2014 (r44616) +++ head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Mon Apr 21 18:12:05 2014 (r44617) @@ -8,6 +8,7 @@ <info> <title>Multimedia</title> + <authorgroup> <author> <personname> @@ -66,8 +67,8 @@ </listitem> <listitem> - <para>Rip <acronym>CD</acronym> and <acronym>DVD</acronym> content into - files.</para> + <para>Rip <acronym>CD</acronym> and <acronym>DVD</acronym> + content into files.</para> </listitem> <listitem> @@ -138,7 +139,7 @@ <screen>&prompt.root; <userinput>kldload snd_hda</userinput></screen> <para>To automate the loading of this driver at boot time, add the - driver to <filename>/boot/loader.conf</filename>. The line for + driver to <filename>/boot/loader.conf</filename>. The line for this driver is:</para> <programlisting>snd_hda_load="YES"</programlisting> @@ -165,7 +166,8 @@ <para>This section is for users who prefer to statically compile in support for the sound card in a custom kernel. For more - information about recompiling a kernel, refer to <xref linkend="kernelconfig"/>.</para> + information about recompiling a kernel, refer to <xref + linkend="kernelconfig"/>.</para> <para>When using a custom kernel to provide sound support, make sure that the audio framework driver exists in the custom @@ -209,10 +211,9 @@ hint.sbc.0.flags="0x15"</programlisting> <para>In this case, the card uses the <literal>0x220</literal> I/O port and the IRQ <literal>5</literal>.</para> - <para>The syntax used in - <filename>/boot/device.hints</filename> is described in - &man.sound.4; and the manual page for the driver of the sound - card.</para> + <para>The syntax used in <filename>/boot/device.hints</filename> + is described in &man.sound.4; and the manual page for the + driver of the sound card.</para> <para>The settings shown above are the defaults. In some cases, the IRQ or other settings may need to be changed to @@ -257,13 +258,15 @@ pcm2: <Conexant CX20590 (Analog 2.0+H <screen>&prompt.user; <userinput>cdcontrol -f /dev/acd0 play 1</userinput></screen> <warning> - <para>Audio <acronym>CD</acronym>s have specialized encodings which means that - they should not be mounted using &man.mount.8;.</para> + <para>Audio <acronym>CD</acronym>s have specialized encodings + which means that they should not be mounted using + &man.mount.8;.</para> </warning> - <para>Various applications, such as <package>audio/workman</package>, provide a - friendlier interface. The <package>audio/mpg123</package> port can be installed - to listen to MP3 audio files.</para> + <para>Various applications, such as + <package>audio/workman</package>, provide a friendlier + interface. The <package>audio/mpg123</package> port can be + installed to listen to MP3 audio files.</para> <para>Another quick way to test the card is to send data to <filename>/dev/dsp</filename>:</para> @@ -403,8 +406,8 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digi <para>It is often desirable to have multiple sources of sound that are able to play simultaneously. &os; uses <quote>Virtual - Sound Channels</quote> to multiplex the - sound card's playback by mixing sound in the kernel.</para> + Sound Channels</quote> to multiplex the sound card's playback + by mixing sound in the kernel.</para> <para>Three &man.sysctl.8; knobs are available for configuring virtual channels:</para> @@ -486,29 +489,28 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digi </info> <para>This section describes some <acronym>MP3</acronym> - players available for &os;, how to rip audio <acronym>CD</acronym> tracks, and - how to encode and decode <acronym>MP3</acronym>s.</para> + players available for &os;, how to rip audio + <acronym>CD</acronym> tracks, and how to encode and decode + <acronym>MP3</acronym>s.</para> <sect2 xml:id="mp3-players"> <title>MP3 Players</title> <para>A popular graphical <acronym>MP3</acronym> player is - <application>XMMS</application>. - It supports <application>Winamp</application> - skins and additional plugins. The interface is intuitive, - with a playlist, graphic equalizer, and more. Those familiar - with <application>Winamp</application> will find + <application>XMMS</application>. It supports + <application>Winamp</application> skins and additional + plugins. The interface is intuitive, with a playlist, graphic + equalizer, and more. Those familiar with + <application>Winamp</application> will find <application>XMMS</application> simple to use. On &os;, - <application>XMMS</application> can be installed from - the <package>multimedia/xmms</package> port - or package.</para> + <application>XMMS</application> can be installed from the + <package>multimedia/xmms</package> port or package.</para> <para>The <package>audio/mpg123</package> package or port provides an alternative, command-line <acronym>MP3</acronym> - player. Once installed, specify - the <acronym>MP3</acronym> file to play on the - command line. If the system has multiple audio devices, the - sound device can also be specifed:</para> + player. Once installed, specify the <acronym>MP3</acronym> + file to play on the command line. If the system has multiple + audio devices, the sound device can also be specifed:</para> <screen>&prompt.root; <userinput>mpg123 <replaceable>-a /dev/dsp1.0 Foobar-GreatestHits.mp3</replaceable></userinput> High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 @@ -525,50 +527,54 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz <sect2 xml:id="rip-cd"> <title>Ripping <acronym>CD</acronym> Audio Tracks</title> - <para>Before encoding a <acronym>CD</acronym> or <acronym>CD</acronym> track to - <acronym>MP3</acronym>, the audio data on the <acronym>CD</acronym> must be - ripped to the hard drive. This is done by copying the raw <acronym>CD</acronym> - Digital Audio (<acronym>CDDA</acronym>) data to - <acronym>WAV</acronym> files.</para> + <para>Before encoding a <acronym>CD</acronym> or + <acronym>CD</acronym> track to <acronym>MP3</acronym>, the + audio data on the <acronym>CD</acronym> must be ripped to the + hard drive. This is done by copying the raw + <acronym>CD</acronym> Digital Audio (<acronym>CDDA</acronym>) + data to <acronym>WAV</acronym> files.</para> <para>The <command>cdda2wav</command> tool, which is installed - with the <package>sysutils/cdrtools</package> - suite, can be used to rip audio information from + with the <package>sysutils/cdrtools</package> suite, can be + used to rip audio information from <acronym>CD</acronym>s.</para> - <para>With the audio <acronym>CD</acronym> in the drive, the following command can - be issued as <systemitem class="username">root</systemitem> to rip an entire <acronym>CD</acronym> - into individual, per track, <acronym>WAV</acronym> - files:</para> + <para>With the audio <acronym>CD</acronym> in the drive, the + following command can be issued as <systemitem + class="username">root</systemitem> to rip an entire + <acronym>CD</acronym> into individual, per track, + <acronym>WAV</acronym> files:</para> <screen>&prompt.root; <userinput>cdda2wav -D <replaceable>0,1,0</replaceable> -B</userinput></screen> - <para>In this example, the <option>-D <replaceable>0,1,0</replaceable></option> - indicates the <acronym>SCSI</acronym> device - <filename>0,1,0</filename> containing the <acronym>CD</acronym> to rip. - Use <command>cdrecord -scanbus</command> to determine the - correct device parameters for the system.</para> + <para>In this example, the <option>-D + <replaceable>0,1,0</replaceable></option> indicates the + <acronym>SCSI</acronym> device <filename>0,1,0</filename> + containing the <acronym>CD</acronym> to rip. Use + <command>cdrecord -scanbus</command> to determine the correct + device parameters for the system.</para> - <para>To rip individual tracks, use - <option>-t</option> to specify the track:</para> + <para>To rip individual tracks, use <option>-t</option> to + specify the track:</para> <screen>&prompt.root; <userinput>cdda2wav -D <replaceable>0,1,0</replaceable> -t 7</userinput></screen> - <para>To rip - a range of tracks, such as track one to seven, specify a - range:</para> + <para>To rip a range of tracks, such as track one to seven, + specify a range:</para> <screen>&prompt.root; <userinput>cdda2wav -D <replaceable>0,1,0</replaceable> -t 1+7</userinput></screen> <para>To rip from an <acronym>ATAPI</acronym> - (<acronym>IDE</acronym>) <acronym>CDROM</acronym> drive, specify the - device name in place of the <acronym>SCSI</acronym> unit numbers. For example, - to rip track 7 from an IDE drive:</para> + (<acronym>IDE</acronym>) <acronym>CDROM</acronym> drive, + specify the device name in place of the + <acronym>SCSI</acronym> unit numbers. For example, to rip + track 7 from an IDE drive:</para> <screen>&prompt.root; <userinput>cdda2wav -D <replaceable>/dev/acd0 -t 7</replaceable></userinput></screen> - <para>Alternately, <command>dd</command> can be used to extract audio tracks on - <acronym>ATAPI</acronym> drives, as described in <xref linkend="duplicating-audiocds"/>.</para> + <para>Alternately, <command>dd</command> can be used to extract + audio tracks on <acronym>ATAPI</acronym> drives, as described + in <xref linkend="duplicating-audiocds"/>.</para> </sect2> <sect2 xml:id="mp3-encoding"> @@ -577,49 +583,51 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz <para> <application>Lame</application> is a popular <acronym>MP3</acronym> encoder which can be installed from the - <package>audio/lame</package> port. Due to - patent issues, a package is not available.</para> + <package>audio/lame</package> port. Due to patent issues, a + package is not available.</para> <para>The following command will convert the ripped <acronym>WAV</acronym> file - <filename><replaceable>audio01.wav</replaceable></filename> - to + <filename><replaceable>audio01.wav</replaceable></filename> to <filename><replaceable>audio01.mp3</replaceable></filename>:</para> <screen>&prompt.root; <userinput>lame -h -b <replaceable>128</replaceable> --tt "<replaceable>Foo Song Title</replaceable>" --ta "<replaceable>FooBar Artist</replaceable>" --tl "<replaceable>FooBar Album</replaceable>" \ --ty "<replaceable>2014</replaceable>" --tc "<replaceable>Ripped and encoded by Foo</replaceable>" --tg "<replaceable>Genre</replaceable>" <replaceable>audio01.wav audio01.mp3</replaceable></userinput></screen> - <para>The specified 128 kbits is a standard <acronym>MP3</acronym> - bitrate while the 160 and 192 bitrates provide higher quality. - The higher the bitrate, the larger the size of the resulting - <acronym>MP3</acronym>. The <option>-h</option> turns on the - <quote>higher quality but a little slower</quote> mode. The - options beginning with <option>--t</option> indicate <acronym>ID3</acronym> tags, + <para>The specified 128 kbits is a standard + <acronym>MP3</acronym> bitrate while the 160 and 192 bitrates + provide higher quality. The higher the bitrate, the larger + the size of the resulting <acronym>MP3</acronym>. The + <option>-h</option> turns on the <quote>higher quality but a + little slower</quote> mode. The options beginning with + <option>--t</option> indicate <acronym>ID3</acronym> tags, which usually contain song information, to be embedded within the <acronym>MP3</acronym> file. Additional encoding options can be found in the <application>lame</application> manual page.</para> - <para>In order to burn an audio <acronym>CD</acronym> from <acronym>MP3</acronym>s, - they must first be converted to a non-compressed - file format. <application>XMMS</application> can be used to convert to the - <acronym>WAV</acronym> format, while - <application>mpg123</application> can be used to convert to the - raw Pulse-Code Modulation (<acronym>PCM</acronym>) audio data - format.</para> - - <para>To convert <filename>audio01.mp3</filename> - using <application>mpg123</application>, specify the name of - the <acronym>PCM</acronym> file:</para> + <para>In order to burn an audio <acronym>CD</acronym> from + <acronym>MP3</acronym>s, they must first be converted to a + non-compressed file format. <application>XMMS</application> + can be used to convert to the <acronym>WAV</acronym> format, + while <application>mpg123</application> can be used to convert + to the raw Pulse-Code Modulation (<acronym>PCM</acronym>) + audio data format.</para> + + <para>To convert <filename>audio01.mp3</filename> using + <application>mpg123</application>, specify the name of the + <acronym>PCM</acronym> file:</para> <screen>&prompt.root; <userinput>mpg123 -s <replaceable>audio01.mp3</replaceable> > <replaceable>audio01.pcm</replaceable></userinput></screen> - + <para>To use <application>XMMS</application> to convert a <acronym>MP3</acronym> to <acronym>WAV</acronym> format, use these steps:</para> <procedure> - <title>Converting to <acronym>WAV</acronym> Format in <application>XMMS</application></title> + <title>Converting to <acronym>WAV</acronym> Format in + <application>XMMS</application></title> + <step> <para>Launch <application>XMMS</application>.</para> </step> @@ -671,18 +679,20 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz <para>Both the <acronym>WAV</acronym> and <acronym>PCM</acronym> formats can be used with <application>cdrecord</application> - to create audio <acronym>CD</acronym>s, whereas <application>burncd</application> requires the + to create audio <acronym>CD</acronym>s, whereas + <application>burncd</application> requires the <acronym>PCM</acronym> format. When using - <acronym>WAV</acronym> files, there will be a small tick - sound at the beginning of each track. This sound is the - header of the <acronym>WAV</acronym> file. The - <package>audio/sox</package> port or package can be used to remove the - header:</para> + <acronym>WAV</acronym> files, there will be a small tick sound + at the beginning of each track. This sound is the header of + the <acronym>WAV</acronym> file. The + <package>audio/sox</package> port or package can be used to + remove the header:</para> <screen>&prompt.user; <userinput>sox -t wav -r 44100 -s -w -c 2 <replaceable>track.wav track.raw</replaceable></userinput></screen> <para>Refer to <xref linkend="creating-cds"/> for more - information on using a <acronym>CD</acronym> burner in &os;.</para> + information on using a <acronym>CD</acronym> burner in + &os;.</para> </sect2> </sect1> @@ -701,7 +711,6 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz </authorgroup> </info> - <para>Before configuring video playback, determine the model and chipset of the video card. While <application>&xorg;</application> supports a wide variety of @@ -714,9 +723,9 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz <para>It is a good idea to have a short MPEG test file for evaluating various players and options. Since some <acronym>DVD</acronym> applications look for - <acronym>DVD</acronym> media in <filename>/dev/dvd</filename> by default, or have this - device name hardcoded in them, it might be useful to make a - symbolic links to the proper device:</para> + <acronym>DVD</acronym> media in <filename>/dev/dvd</filename> by + default, or have this device name hardcoded in them, it might be + useful to make a symbolic links to the proper device:</para> <screen>&prompt.root; <userinput>ln -sf /dev/cd0 /dev/dvd</userinput></screen> @@ -732,85 +741,87 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz device.</para> <para>To enhance the shared memory - <application>&xorg;</application> interface, it is - recommended to increase the values of these &man.sysctl.8; + <application>&xorg;</application> interface, it is recommended + to increase the values of these &man.sysctl.8; variables:</para> <programlisting>kern.ipc.shmmax=67108864 kern.ipc.shmall=32768</programlisting> - <sect2 xml:id="video-interface"> - <title>Determining Video Capabilities</title> + <sect2 xml:id="video-interface"> + <title>Determining Video Capabilities</title> - <indexterm><primary>XVideo</primary></indexterm> - <indexterm><primary>SDL</primary></indexterm> - <indexterm><primary>DGA</primary></indexterm> + <indexterm><primary>XVideo</primary></indexterm> + <indexterm><primary>SDL</primary></indexterm> + <indexterm><primary>DGA</primary></indexterm> - <para>There are several possible ways to display video under - <application>&xorg;</application> and what works is largely - hardware dependent. Each method described below will have - varying quality across different hardware.</para> + <para>There are several possible ways to display video under + <application>&xorg;</application> and what works is largely + hardware dependent. Each method described below will have + varying quality across different hardware.</para> - <para>Common video interfaces include:</para> + <para>Common video interfaces include:</para> - <orderedlist> - <listitem> - <para><application>&xorg;</application>: normal output using - shared memory.</para> - </listitem> + <orderedlist> + <listitem> + <para><application>&xorg;</application>: normal output using + shared memory.</para> + </listitem> - <listitem> - <para>XVideo: an extension to the - <application>&xorg;</application> interface which - allows video to be directly displayed in drawable objects - through a special acceleration. This extension provides - good quality playback even on low-end machines. The next - section describes how to determine if this extension is - running.</para> - </listitem> + <listitem> + <para>XVideo: an extension to the + <application>&xorg;</application> interface which + allows video to be directly displayed in drawable objects + through a special acceleration. This extension provides + good quality playback even on low-end machines. The next + section describes how to determine if this extension is + running.</para> + </listitem> - <listitem> - <para><acronym>SDL</acronym>: the Simple Directmedia Layer is - a porting layer for many operating systems, allowing - cross-platform applications to be developed which make - efficient use of sound and graphics. <acronym>SDL</acronym> - provides a low-level abstraction to the hardware which can - sometimes be more efficient than the - <application>&xorg;</application> interface. On &os;, - <acronym>SDL</acronym> can be installed using the <package>devel/sdl20</package> package or - port.</para> - </listitem> + <listitem> + <para><acronym>SDL</acronym>: the Simple Directmedia Layer + is a porting layer for many operating systems, allowing + cross-platform applications to be developed which make + efficient use of sound and graphics. + <acronym>SDL</acronym> provides a low-level abstraction to + the hardware which can sometimes be more efficient than + the <application>&xorg;</application> interface. On &os;, + <acronym>SDL</acronym> can be installed using the + <package>devel/sdl20</package> package or port.</para> + </listitem> - <listitem> - <para><acronym>DGA</acronym>: the Direct Graphics Access is an - <application>&xorg;</application> extension which allows a - program to bypass the <application>&xorg;</application> - server and directly alter the framebuffer. Because it - relies on a low level memory mapping, programs using it must - be run as <systemitem class="username">root</systemitem>. The - <acronym>DGA</acronym> extension can be tested and - benchmarked using &man.dga.1;. When <command>dga</command> - is running, it changes the colors of the display whenever a - key is pressed. To quit, press <keycap>q</keycap>.</para> - </listitem> + <listitem> + <para><acronym>DGA</acronym>: the Direct Graphics Access is + an <application>&xorg;</application> extension which + allows a program to bypass the + <application>&xorg;</application> server and directly + alter the framebuffer. Because it relies on a low level + memory mapping, programs using it must be run as + <systemitem class="username">root</systemitem>. The + <acronym>DGA</acronym> extension can be tested and + benchmarked using &man.dga.1;. When + <command>dga</command> is running, it changes the colors + of the display whenever a key is pressed. To quit, press + <keycap>q</keycap>.</para> + </listitem> - <listitem> - <para>SVGAlib: a low level console graphics layer.</para> - </listitem> - </orderedlist> + <listitem> + <para>SVGAlib: a low level console graphics layer.</para> + </listitem> + </orderedlist> - <sect3 xml:id="video-interface-xvideo"> - <title>XVideo</title> + <sect3 xml:id="video-interface-xvideo"> + <title>XVideo</title> - <para>To check whether this extension is running, use - <command>xvinfo</command>:</para> + <para>To check whether this extension is running, use + <command>xvinfo</command>:</para> - <screen>&prompt.user; <userinput>xvinfo</userinput></screen> + <screen>&prompt.user; <userinput>xvinfo</userinput></screen> - <para>XVideo is supported for the card if the result is similar - to:</para> + <para>XVideo is supported for the card if the result is + similar to:</para> - <screen>X-Video Extension version 2.2 + <screen>X-Video Extension version 2.2 screen #0 Adaptor #0: "Savage Streams Engine" number of ports: 1 @@ -879,263 +890,272 @@ kern.ipc.shmall=32768</programlisting> depth: 1 red, green, blue masks: 0x0, 0x0, 0x0</screen> - <para>The formats listed, such as YUV2 and YUV12, are not - present with every implementation of XVideo and their absence - may hinder some players.</para> + <para>The formats listed, such as YUV2 and YUV12, are not + present with every implementation of XVideo and their + absence may hinder some players.</para> - <para>If the result instead looks like:</para> + <para>If the result instead looks like:</para> - <screen>X-Video Extension version 2.2 + <screen>X-Video Extension version 2.2 screen #0 no adaptors present</screen> - <para>XVideo is probably not supported for the card. This means - that it will be more difficult for the display to meet the - computational demands of rendering video, depending on the - video card and processor.</para> - </sect3> - </sect2> - - <sect2 xml:id="video-ports"> - <title>Ports and Packages Dealing with Video</title> - - <indexterm><primary>video ports</primary></indexterm> - <indexterm><primary>video packages</primary></indexterm> - - <para>This section introduces some of the software available from - the &os; Ports Collection which can be used for video - playback.</para> - - <sect3 xml:id="video-mplayer"> - <title><application>MPlayer</application> and - <application>MEncoder</application></title> - - <para><application>MPlayer</application> is a command-line video - player with an optional graphical interface which aims to - provide speed and flexibility. Other graphical front-ends to - <application>MPlayer</application> are available from the &os; - Ports Collection.</para> - - <indexterm><primary>MPlayer</primary></indexterm> - - <para><application>MPlayer</application> can be installed using - the <package>multimedia/mplayer</package> - package or port. Several compile options are available and a - variety of hardware checks occur during the build process. - For these reasons, some users prefer to build the port rather - than install the package.</para> - - <para>When compiling the port, the menu options should be - reviewed to determine the type of support to compile into the - port. If an option is not selected, - <application>MPlayer</application> will not be able to - display that type of video format. Use the arrow keys and - spacebar to select the required formats. When finished, - press <keycap>Enter</keycap> to continue the port compile - and installation.</para> - - <para>By default, the package or port will build the - <command>mplayer</command> command line utility and the - <command>gmplayer</command> graphical utility. To encode - videos, compile the <package>multimedia/mencoder</package> port. Due to - licensing restrictions, a package is not available for - <application>MEncoder</application>.</para> - - <para>The first time <application>MPlayer</application> is run, - it will create <filename>~/.mplayer</filename> in the user's home - directory. This subdirectory contains default versions of - the user-specific configuration files.</para> - - <para>This section describes only a few common uses. Refer to - mplayer(1) for a complete description of its numerous - options.</para> - - <para>To play the file - <filename><replaceable>testfile.avi</replaceable></filename>, - specify the video interfaces with <option>-vo</option>, as - seen in the following examples:</para> - - <screen>&prompt.user; <userinput>mplayer -vo xv <replaceable>testfile.avi</replaceable></userinput></screen> - - <screen>&prompt.user; <userinput>mplayer -vo sdl <replaceable>testfile.avi</replaceable></userinput></screen> - - <screen>&prompt.user; <userinput>mplayer -vo x11 <replaceable>testfile.avi</replaceable></userinput></screen> - - <screen>&prompt.root; <userinput>mplayer -vo dga <replaceable>testfile.avi</replaceable></userinput></screen> - - <screen>&prompt.root; <userinput>mplayer -vo 'sdl:dga' <replaceable>testfile.avi</replaceable></userinput></screen> - - <para>It is worth trying all of these options, as their - relative performance depends on many factors and will vary - significantly with hardware.</para> - - <para>To play a <acronym>DVD</acronym>, replace - <filename><replaceable>testfile.avi</replaceable></filename> - with <option>dvd://<replaceable>N</replaceable> -dvd-device - <replaceable>DEVICE</replaceable></option>, where - <replaceable>N</replaceable> is the title number to play and - <replaceable>DEVICE</replaceable> is the device node for the - <acronym>DVD</acronym>. For example, to play title 3 from - <filename>/dev/dvd</filename>:</para> + <para>XVideo is probably not supported for the card. This + means that it will be more difficult for the display to meet + the computational demands of rendering video, depending on + the video card and processor.</para> + </sect3> + </sect2> - <screen>&prompt.root; <userinput>mplayer -vo xv dvd://3 -dvd-device /dev/dvd</userinput></screen> + <sect2 xml:id="video-ports"> + <title>Ports and Packages Dealing with Video</title> - <note> - <para>The default <acronym>DVD</acronym> device can be defined - during the build of the <application>MPlayer</application> - port by including the - <varname>WITH_DVD_DEVICE=/path/to/desired/device</varname> - option. By default, the device is - <filename>/dev/cd0</filename>. More details can be found in - the port's <filename>Makefile.options</filename>.</para> - </note> + <indexterm><primary>video ports</primary></indexterm> + <indexterm><primary>video packages</primary></indexterm> - <para>To stop, pause, advance, and so on, use a keybinding. To - see the list of keybindings, run <command>mplayer - -h</command> or read mplayer(1).</para> - - <para>Additional playback options include <option>-fs - -zoom</option>, which engages fullscreen mode, and - <option>-framedrop</option>, which helps performance.</para> + <para>This section introduces some of the software available + from the &os; Ports Collection which can be used for video + playback.</para> + + <sect3 xml:id="video-mplayer"> + <title><application>MPlayer</application> and + <application>MEncoder</application></title> + + <para><application>MPlayer</application> is a command-line + video player with an optional graphical interface which aims + to provide speed and flexibility. Other graphical + front-ends to <application>MPlayer</application> are + available from the &os; Ports Collection.</para> + + <indexterm><primary>MPlayer</primary></indexterm> + + <para><application>MPlayer</application> can be installed + using the <package>multimedia/mplayer</package> package or + port. Several compile options are available and a variety + of hardware checks occur during the build process. For + these reasons, some users prefer to build the port rather + than install the package.</para> + + <para>When compiling the port, the menu options should be + reviewed to determine the type of support to compile into + the port. If an option is not selected, + <application>MPlayer</application> will not be able to + display that type of video format. Use the arrow keys and + spacebar to select the required formats. When finished, + press <keycap>Enter</keycap> to continue the port compile + and installation.</para> + + <para>By default, the package or port will build the + <command>mplayer</command> command line utility and the + <command>gmplayer</command> graphical utility. To encode + videos, compile the <package>multimedia/mencoder</package> + port. Due to licensing restrictions, a package is not + available for <application>MEncoder</application>.</para> + + <para>The first time <application>MPlayer</application> is + run, it will create <filename>~/.mplayer</filename> in the + user's home directory. This subdirectory contains default + versions of the user-specific configuration files.</para> + + <para>This section describes only a few common uses. Refer to + mplayer(1) for a complete description of its numerous + options.</para> + + <para>To play the file + <filename><replaceable>testfile.avi</replaceable></filename>, + specify the video interfaces with <option>-vo</option>, as + seen in the following examples:</para> + + <screen>&prompt.user; <userinput>mplayer -vo xv <replaceable>testfile.avi</replaceable></userinput></screen> + + <screen>&prompt.user; <userinput>mplayer -vo sdl <replaceable>testfile.avi</replaceable></userinput></screen> + + <screen>&prompt.user; <userinput>mplayer -vo x11 <replaceable>testfile.avi</replaceable></userinput></screen> + + <screen>&prompt.root; <userinput>mplayer -vo dga <replaceable>testfile.avi</replaceable></userinput></screen> + + <screen>&prompt.root; <userinput>mplayer -vo 'sdl:dga' <replaceable>testfile.avi</replaceable></userinput></screen> + + <para>It is worth trying all of these options, as their + relative performance depends on many factors and will vary + significantly with hardware.</para> + + <para>To play a <acronym>DVD</acronym>, replace + <filename><replaceable>testfile.avi</replaceable></filename> + with <option>dvd://<replaceable>N</replaceable> -dvd-device + <replaceable>DEVICE</replaceable></option>, where + <replaceable>N</replaceable> is the title number to play and + <replaceable>DEVICE</replaceable> is the device node for the + <acronym>DVD</acronym>. For example, to play title 3 from + <filename>/dev/dvd</filename>:</para> + + <screen>&prompt.root; <userinput>mplayer -vo xv dvd://3 -dvd-device /dev/dvd</userinput></screen> + + <note> + <para>The default <acronym>DVD</acronym> device can be + defined during the build of the + <application>MPlayer</application> port by including the + <varname>WITH_DVD_DEVICE=/path/to/desired/device</varname> + option. By default, the device is + <filename>/dev/cd0</filename>. More details can be found + in the port's + <filename>Makefile.options</filename>.</para> + </note> + + <para>To stop, pause, advance, and so on, use a keybinding. + To see the list of keybindings, run <command>mplayer + -h</command> or read mplayer(1).</para> + + <para>Additional playback options include <option>-fs + -zoom</option>, which engages fullscreen mode, and + <option>-framedrop</option>, which helps performance.</para> - <para>Each user can add commonly used options to their - <filename>~/.mplayer/config</filename> like so:</para> + <para>Each user can add commonly used options to their + <filename>~/.mplayer/config</filename> like so:</para> - <programlisting>vo=xv + <programlisting>vo=xv fs=yes zoom=yes</programlisting> - <para><command>mplayer</command> can be used to rip a - <acronym>DVD</acronym> title to a <filename>.vob</filename>. - To dump the second title from a <acronym>DVD</acronym>:</para> - - <screen>&prompt.root; <userinput>mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd</userinput></screen> - - <para>The output file, <filename>out.vob</filename>, will be in - <acronym>MPEG</acronym> format.</para> - - <para>Anyone wishing to obtain a high level of expertise with - &unix; video should consult <link xlink:href="http://www.mplayerhq.hu/DOCS/">mplayerhq.hu/DOCS</link> - as it is technically informative. This documentation should - be considered as required reading before submitting any bug - reports.</para> - - <indexterm> - <primary>mencoder</primary> - </indexterm> - - <para>Before using <command>mencoder</command>, it is a good - idea to become familiar with the options described at - <link xlink:href="http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html">mplayerhq.hu/DOCS/HTML/en/mencoder.html</link>. - There are innumerable ways to improve quality, lower bitrate, - and change formats, and some of these options may make the - difference between good or bad performance. Improper - combinations of command line options can yield output files - that are unplayable even by <command>mplayer</command>.</para> - - <para>Here is an example of a simple copy:</para> - - <screen>&prompt.user; <userinput>mencoder <replaceable>input.avi</replaceable> -oac copy -ovc copy -o <replaceable>output.avi</replaceable></userinput></screen> - - <para>To rip to a file, use <option>-dumpfile</option> with - <command>mplayer</command>.</para> - - <para>To convert - <filename><replaceable>input.avi</replaceable></filename> to - the MPEG4 codec with MPEG3 audio encoding, first install the - <package>audio/lame</package> port. Due to - licensing restrictions, a package is not available. Once - installed, type:</para> + <para><command>mplayer</command> can be used to rip a + <acronym>DVD</acronym> title to a <filename>.vob</filename>. + To dump the second title from a + <acronym>DVD</acronym>:</para> + + <screen>&prompt.root; <userinput>mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd</userinput></screen> + + <para>The output file, <filename>out.vob</filename>, will be + in <acronym>MPEG</acronym> format.</para> + + <para>Anyone wishing to obtain a high level of expertise with + &unix; video should consult <link + xlink:href="http://www.mplayerhq.hu/DOCS/">mplayerhq.hu/DOCS</link> + as it is technically informative. This documentation should + be considered as required reading before submitting any bug + reports.</para> + + <indexterm> + <primary>mencoder</primary> + </indexterm> + + <para>Before using <command>mencoder</command>, it is a good + idea to become familiar with the options described at <link + xlink:href="http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html">mplayerhq.hu/DOCS/HTML/en/mencoder.html</link>. + There are innumerable ways to improve quality, lower + bitrate, and change formats, and some of these options may + make the difference between good or bad performance. + Improper combinations of command line options can yield + output files that are unplayable even by + <command>mplayer</command>.</para> + + <para>Here is an example of a simple copy:</para> + + <screen>&prompt.user; <userinput>mencoder <replaceable>input.avi</replaceable> -oac copy -ovc copy -o <replaceable>output.avi</replaceable></userinput></screen> + + <para>To rip to a file, use <option>-dumpfile</option> with + <command>mplayer</command>.</para> + + <para>To convert + <filename><replaceable>input.avi</replaceable></filename> to + the MPEG4 codec with MPEG3 audio encoding, first install the + <package>audio/lame</package> port. Due to licensing + restrictions, a package is not available. Once installed, + type:</para> - <screen>&prompt.user; <userinput>mencoder <replaceable>input.avi</replaceable> -oac mp3lame -lameopts br=192 \ + <screen>&prompt.user; <userinput>mencoder <replaceable>input.avi</replaceable> -oac mp3lame -lameopts br=192 \ -ovc lavc -lavcopts vcodec=mpeg4:vhq -o <replaceable>output.avi</replaceable></userinput></screen> - <para>This will produce output playable by applications such as - <command>mplayer</command> and <command>xine</command>.</para> + <para>This will produce output playable by applications such + as <command>mplayer</command> and + <command>xine</command>.</para> + + <para><filename><replaceable>input.avi</replaceable></filename> + can be replaced with <option>dvd://1 -dvd-device + /dev/dvd</option> and run as <systemitem + class="username">root</systemitem> to re-encode a + <acronym>DVD</acronym> title directly. Since it may take a + few tries to get the desired result, it is recommended to + instead dump the title to a file and to work on the + file.</para> + </sect3> + + <sect3 xml:id="video-xine"> + <title>The <application>xine</application> Video + Player</title> + + <para><application>xine</application> is a video player with a + reusable base library and a modular executable which can be + extended with plugins. It can be installed using the + <package>multimedia/xine</package> package or port.</para> + + <para>In practice, <application>xine</application> requires + either a fast CPU with a fast video card, or support for the + XVideo extension. The <application>xine</application> video + player performs best on XVideo interfaces.</para> + + <para>By default, the <application>xine</application> player + starts a graphical user interface. The menus can then be + used to open a specific file.</para> + + <para>Alternatively, <application>xine</application> may be + invoked from the command line by specifying the name of the + file to play:</para> + + <screen>&prompt.user; <userinput>xine -g -p <replaceable>mymovie.avi</replaceable></userinput></screen> + + <para>Refer to <link + xlink:href="http://www.xine-project.org/faq"> + xine-project.org/faq</link> for more information and + troubleshooting tips.</para> + </sect3> + + <sect3 xml:id="video-ports-transcode"> + <title>The <application>Transcode</application> + Utilities</title> + + <para><application>Transcode</application> provides a suite of + tools for re-encoding video and audio files. + <application>Transcode</application> can be used to merge + video files or repair broken files using command line tools + with stdin/stdout stream interfaces.</para> + + <para>In &os;, <application>Transcode</application> can be + installed using the <package>multimedia/transcode</package> + package or port. Many users prefer to compile the port as + it provides a menu of compile options for specifying the + support and codecs to compile in. If an option is not + selected, <application>Transcode</application> will not be + able to encode that format. Use the arrow keys and spacebar + to select the required formats. When finished, press + <keycap>Enter</keycap> to continue the port compile and + installation.</para> - <para><filename><replaceable>input.avi</replaceable></filename> - can be replaced with <option>dvd://1 -dvd-device - /dev/dvd</option> and run as <systemitem class="username">root</systemitem> to - re-encode a <acronym>DVD</acronym> title directly. Since it - may take a few tries to get the desired result, it is - recommended to instead dump the title to a file and to work on - the file.</para> - </sect3> - - <sect3 xml:id="video-xine"> - <title>The <application>xine</application> Video Player</title> - - <para><application>xine</application> is a video player with a - reusable base library and a modular executable which can be - extended with plugins. It can be installed using the - <package>multimedia/xine</package> package or - port.</para> - - <para>In practice, <application>xine</application> requires - either a fast CPU with a fast video card, or support for the - XVideo extension. The <application>xine</application> video - player performs best on XVideo interfaces.</para> - - <para>By default, the <application>xine</application> player - starts a graphical user interface. The menus can then be used - to open a specific file.</para> - - <para>Alternatively, <application>xine</application> may be - invoked from the command line - by specifying the name of the file to play:</para> - - <screen>&prompt.user; <userinput>xine -g -p <replaceable>mymovie.avi</replaceable></userinput></screen> - - <para>Refer to <link xlink:href="http://www.xine-project.org/faq"> - xine-project.org/faq</link> for more information and - troubleshooting tips.</para> - </sect3> - - <sect3 xml:id="video-ports-transcode"> - <title>The <application>Transcode</application> - Utilities</title> - - <para><application>Transcode</application> provides a suite of - tools for re-encoding video and audio files. - <application>Transcode</application> can be used to merge - video files or repair broken files using command line tools - with stdin/stdout stream - interfaces.</para> - - <para>In &os;, <application>Transcode</application> can be - installed using the <package>multimedia/transcode</package> package or - port. Many users prefer to compile the port as it provides a - menu of compile options for specifying the support and codecs - to compile in. If an option is not selected, - <application>Transcode</application> will not be able to - encode that format. Use the arrow keys and spacebar to select - the required formats. When finished, press - <keycap>Enter</keycap> to continue the port compile and - installation.</para> + <para>This example demonstrates how to convert a DivX file + into a PAL MPEG-1 file (PAL VCD):</para> - <para>This example demonstrates how to convert a DivX file into - a PAL MPEG-1 file (PAL VCD):</para> - - <screen>&prompt.user; <userinput>transcode -i + <screen>&prompt.user; <userinput>transcode -i <replaceable>input.avi</replaceable> -V --export_prof vcd-pal -o output_vcd</userinput> &prompt.user; <userinput>mplex -f 1 -o <replaceable>output_vcd.mpg output_vcd.m1v output_vcd.mpa</replaceable></userinput></screen> - <para>The resulting <acronym>MPEG</acronym> file, - <filename><replaceable>output_vcd.mpg</replaceable></filename>, - is ready to be played with <application>MPlayer</application>. - The file can be burned on a <acronym>CD</acronym> media to - create a video <acronym>CD</acronym> using a utility such as - <package>multimedia/vcdimager</package> or <package>sysutils/cdrdao</package>.</para> - - <para>In addition to the manual page for - <command>transcode</command>, refer to <link xlink:href="http://www.transcoding.org/cgi-bin/transcode">transcoding.org/cgi-bin/transcode</link> - for further information and examples.</para> - </sect3> - </sect2> -</sect1> + <para>The resulting <acronym>MPEG</acronym> file, + <filename><replaceable>output_vcd.mpg</replaceable></filename>, + is ready to be played with + <application>MPlayer</application>. The file can be burned + on a <acronym>CD</acronym> media to create a video + <acronym>CD</acronym> using a utility such as + <package>multimedia/vcdimager</package> or + <package>sysutils/cdrdao</package>.</para> + + <para>In addition to the manual page for + <command>transcode</command>, refer to <link + xlink:href="http://www.transcoding.org/cgi-bin/transcode">transcoding.org/cgi-bin/transcode</link> + for further information and examples.</para> + </sect3> + </sect2> + </sect1> -<sect1 xml:id="tvcard"> - <info> + <sect1 xml:id="tvcard"> + <info> <title>TV Cards</title> <authorgroup> @@ -1158,29 +1178,29 @@ zoom=yes</programlisting> </authorgroup> </info> - <indexterm> - <primary>TV cards</primary> - </indexterm> - - <para>TV cards can be used to watch broadcast or cable TV on a *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404211812.s3LIC6UY060411>