Mercurial > mplayer.hg
comparison DOCS/video.html @ 6998:83a386e88f9e
Applied patch by Andras Mohari <mayday at varoshaza . nagyatad . hu>
* Reduces the number of '!' chars...
* Removes unnecessary spaces before ':' and '!' chars.
* Changes the title of Appendix X to 'MPlayer skin format'.
* Improves(?) wording in some cases.
* Adds CODE tags around some options and filenames.
Plus some further wording fixes by me, two dangling links and converted
a few ASCII unordered lists into proper HTML ones.
author | diego |
---|---|
date | Wed, 14 Aug 2002 12:24:01 +0000 |
parents | 3bc485948088 |
children | 72059027f953 |
comparison
equal
deleted
inserted
replaced
6997:85fc65e6667f | 6998:83a386e88f9e |
---|---|
89 <P><CODE> (II) Loading extension XVideo</CODE></P> | 89 <P><CODE> (II) Loading extension XVideo</CODE></P> |
90 | 90 |
91 <P>in /var/log/XFree86.0.log</P> | 91 <P>in /var/log/XFree86.0.log</P> |
92 | 92 |
93 <P>NOTE: this loads only the XFree86's extension. In a good install, this | 93 <P>NOTE: this loads only the XFree86's extension. In a good install, this |
94 is always loaded, and doesn't mean that the _card's_ XVideo support is | 94 is always loaded, and doesn't mean that the <B>card's</B> XVideo support is |
95 loaded!</P> | 95 loaded!</P> |
96 </LI> | 96 </LI> |
97 <LI>Your card has Xv support under Linux. To check, try 'xvinfo', it is the | 97 <LI>Your card has Xv support under Linux. To check, try 'xvinfo', it is the |
98 part of the XFree86 distribution. It should display a long text, similar | 98 part of the XFree86 distribution. It should display a long text, similar |
99 to this: | 99 to this: |
133 <P><B><A NAME="xv_3dfx">2.3.1.2.1 3dfx cards</A></B></P> | 133 <P><B><A NAME="xv_3dfx">2.3.1.2.1 3dfx cards</A></B></P> |
134 | 134 |
135 <P>Older 3dfx drivers were known to have problems with XVideo acceleration, it | 135 <P>Older 3dfx drivers were known to have problems with XVideo acceleration, it |
136 didn't support either YUY2 or YV12, and so. Verify that you have XFree86 | 136 didn't support either YUY2 or YV12, and so. Verify that you have XFree86 |
137 version 4.2.0 or greater, it works OK with YV12 and YUY2. Previous versions, | 137 version 4.2.0 or greater, it works OK with YV12 and YUY2. Previous versions, |
138 including 4.1.0 <B>crashes with YV12</B>! If you experience strange effects | 138 including 4.1.0, <B>crash with YV12</B>. If you experience strange effects |
139 using -vo xv, try SDL (it has XVideo too) and see if it helps. Check the | 139 using -vo xv, try SDL (it has XVideo too) and see if it helps. Check the |
140 <A HREF="#sdl">SDL section</A> for details.</P> | 140 <A HREF="#sdl">SDL section</A> for details.</P> |
141 | 141 |
142 <P><B>OR</B>, try the NEW -vo tdfxfb driver! See the | 142 <P><B>OR</B>, try the NEW -vo tdfxfb driver! See the |
143 <A HREF="#tdfxfb">tdfxfb</A> section!</P> | 143 <A HREF="#tdfxfb">tdfxfb</A> section.</P> |
144 | 144 |
145 | 145 |
146 <P><B><A NAME="xv_s3">2.3.1.2.2 S3 cards</A></B></P> | 146 <P><B><A NAME="xv_s3">2.3.1.2.2 S3 cards</A></B></P> |
147 | 147 |
148 <P>S3 Savage3D's should work fine, but for Savage4, use XFree86 version 4.0.3 | 148 <P>S3 Savage3D's should work fine, but for Savage4, use XFree86 version 4.0.3 |
260 driver is autodetected on ./configure, or you can force it with | 260 driver is autodetected on ./configure, or you can force it with |
261 --enable-dga.</P> | 261 --enable-dga.</P> |
262 | 262 |
263 <P>If the driver couldn't switch to a smaller resolution, experiment with | 263 <P>If the driver couldn't switch to a smaller resolution, experiment with |
264 switches -vm (only with X 3.3.x), -fs, -bpp, -zoom to find a video mode that | 264 switches -vm (only with X 3.3.x), -fs, -bpp, -zoom to find a video mode that |
265 the movie fits in. There is no converter right now.. :(</P> | 265 the movie fits in. There is no converter right now :(</P> |
266 | 266 |
267 <P>Become ROOT. DGA needs root access to be able to write directly video | 267 <P>Become ROOT. DGA needs root access to be able to write directly video |
268 memory. If you want to run it as user, then install <B>MPlayer</B> SUID | 268 memory. If you want to run it as user, then install <B>MPlayer</B> SUID |
269 root:</P> | 269 root:</P> |
270 | 270 |
279 This is a <B>BIG</B> security risk! Never do this on a server or on a | 279 This is a <B>BIG</B> security risk! Never do this on a server or on a |
280 computer can be accessed by more people than only you because they can gain | 280 computer can be accessed by more people than only you because they can gain |
281 root privileges through SUID root <B>MPlayer</B>.<BR> | 281 root privileges through SUID root <B>MPlayer</B>.<BR> |
282 <B>!!!! SO YOU HAVE BEEN WARNED ... !!!!</B></P> | 282 <B>!!!! SO YOU HAVE BEEN WARNED ... !!!!</B></P> |
283 | 283 |
284 <P>Now use '-vo dga' option, and there you go! (hope so:) | 284 <P>Now use the <CODE>-vo dga</CODE> option, and there you go (hope so :))! |
285 You should also try if the '-vo sdl:dga' option works for you! It's much | 285 You should also try if the <CODE>-vo sdl:dga</CODE> option works for you. It's |
286 faster!!!</P> | 286 much faster.</P> |
287 | 287 |
288 | 288 |
289 <P><B><A NAME="dga_resolution">2.3.1.3.4 Resolution switching</A></B></P> | 289 <P><B><A NAME="dga_resolution">2.3.1.3.4 Resolution switching</A></B></P> |
290 | 290 |
291 <P>The DGA driver allows for switching the resolution of the output signal. | 291 <P>The DGA driver allows for switching the resolution of the output signal. |
521 | 521 |
522 <P><B><A NAME="fbdev">2.3.1.6 Framebuffer output (FBdev)</A></B></P> | 522 <P><B><A NAME="fbdev">2.3.1.6 Framebuffer output (FBdev)</A></B></P> |
523 | 523 |
524 <P>Whether to build the FBdev target is autodetected during ./configure . | 524 <P>Whether to build the FBdev target is autodetected during ./configure . |
525 Read the framebuffer documentation in the kernel sources | 525 Read the framebuffer documentation in the kernel sources |
526 (Documentation/fb/*) for info on how to enable it, etc..!</P> | 526 (Documentation/fb/*) for more information.</P> |
527 | 527 |
528 <P>If your card doesn't support VBE 2.0 standard (older ISA/PCI | 528 <P>If your card doesn't support VBE 2.0 standard (older ISA/PCI |
529 cards, such as S3 Trio64), only VBE 1.2 (or older?): | 529 cards, such as S3 Trio64), only VBE 1.2 (or older?): |
530 Well, VESAfb is still available, but you'll have to load SciTech Display | 530 Well, VESAfb is still available, but you'll have to load SciTech Display |
531 Doctor (formerly UniVBE) before booting Linux. Use a DOS boot disk or | 531 Doctor (formerly UniVBE) before booting Linux. Use a DOS boot disk or |
572 support, the mga_vid kernel driver. It's active developed by me (A'rpi), and | 572 support, the mga_vid kernel driver. It's active developed by me (A'rpi), and |
573 it has hardware VSYNC support with triple buffering. It works on both | 573 it has hardware VSYNC support with triple buffering. It works on both |
574 framebuffer console and under X.</P> | 574 framebuffer console and under X.</P> |
575 | 575 |
576 <P><B>WARNING</B>: on non-Linux systems, use <A HREF="#vidix">VIDIX</A> for | 576 <P><B>WARNING</B>: on non-Linux systems, use <A HREF="#vidix">VIDIX</A> for |
577 mga_vid !!!</P> | 577 mga_vid!</P> |
578 | 578 |
579 <P>To use it, you first have to compile mga_vid.o:</P> | 579 <P>To use it, you first have to compile mga_vid.o:</P> |
580 | 580 |
581 <P><CODE> cd drivers<BR> | 581 <P><CODE> cd drivers<BR> |
582 make</CODE></P> | 582 make</CODE></P> |
692 | 692 |
693 <P>Use the <CODE>-framedrop</CODE> option if your computer isn't fast enough to | 693 <P>Use the <CODE>-framedrop</CODE> option if your computer isn't fast enough to |
694 render all frames!</P> | 694 render all frames!</P> |
695 | 695 |
696 <P>Playing on terminal you'll get better speed and quality using the Linux | 696 <P>Playing on terminal you'll get better speed and quality using the Linux |
697 driver, not curses (-aadriver linux). But therefore you need write access on | 697 driver, not curses (<CODE>-aadriver linux</CODE>). But therefore you need write access on |
698 /dev/vcsa<terminal>! That isn't autodetected by aalib, but vo_aa tries | 698 <CODE>/dev/vcsa<terminal></CODE>. That isn't autodetected by aalib, but vo_aa tries |
699 to find the best mode. See | 699 to find the best mode. See |
700 <A HREF="http://aa-project.sourceforge.net/tune/">http://aa-project.sourceforge.net/tune/</A> | 700 <A HREF="http://aa-project.sourceforge.net/tune/">http://aa-project.sourceforge.net/tune/</A> |
701 for further tuning issues.</P> | 701 for further tuning issues.</P> |
702 | 702 |
703 | 703 |
726 | 726 |
727 <P>So you have chances to get working TV-out by using this driver.<BR> | 727 <P>So you have chances to get working TV-out by using this driver.<BR> |
728 (I guess that TV-out frequently is standalone head or standalone output | 728 (I guess that TV-out frequently is standalone head or standalone output |
729 at least.)</P> | 729 at least.)</P> |
730 | 730 |
731 <P><B>What are pluses:</B><BR> | 731 <B>Advantages:</B> |
732 - You have chances to watch movies <B>if Linux even doesn't know</B> your | 732 |
733 video hardware.<BR> | 733 <UL> |
734 - You don't need to have installed any graphics' related things on your Linux | 734 <LI>You have the possibility to watch movies <B>even if Linux doesn't know</B> |
735 your video hardware.</LI> | |
736 <LI>You don't need to have installed any graphics' related things on your Linux | |
735 (like X11 (aka XFree86), fbdev and so on). This driver can be run from | 737 (like X11 (aka XFree86), fbdev and so on). This driver can be run from |
736 <B>text-mode</B>.<BR> | 738 <B>text-mode</B>.</LI> |
737 - You have chances to get <B>working TV-out</B>. (It's known at least for | 739 <LI>You have chances to get <B>working TV-out</B>. (It's known at least for |
738 ATI's cards).<BR> | 740 ATI's cards).</LI> |
739 - This driver calls <B>int 10h</B> handler thus it's not an emulator - it | 741 <LI>This driver calls <B>int 10h</B> handler thus it's not an emulator - it |
740 calls <B>real</B> things of <B>real</B> BIOS in <B>real</B>-mode. (Finely - | 742 calls <B>real</B> things of <B>real</B> BIOS in <B>real</B>-mode. (Finely - |
741 in vm86 mode).<BR> | 743 in vm86 mode).</LI> |
742 - You can use Vidix with it, thus getting accelerated video display | 744 <LI>You can use Vidix with it, thus getting accelerated video display |
743 <B>AND</B> TV output at the same time! (recommended for ATI cards)</P> | 745 <B>AND</B> TV output at the same time! (recommended for ATI cards)</LI> |
744 | 746 </UL> |
745 <P><B>What are minuses:</B><BR> | 747 |
746 - It works only on <B>x86 systems</B>.<BR> | 748 <B>Disadvantages:</B> |
747 - It can be used only by <B>ROOT</B>.<BR> | 749 |
748 - Currently it's available only for <B>Linux</B>.</P> | 750 <UL> |
751 <LI>It works only on <B>x86 systems</B>.</LI> | |
752 <LI>It can be used only by <B>root</B>.</LI> | |
753 <LI>Currently it's available only for <B>Linux</B>.</LI> | |
754 </UL> | |
749 | 755 |
750 <P>Don't use this driver with <B>GCC 2.96</B>! It won't work!</P> | 756 <P>Don't use this driver with <B>GCC 2.96</B>! It won't work!</P> |
751 | 757 |
752 <TABLE BORDER=0> | 758 <TABLE BORDER=0> |
753 <TR><TD COLSPAN=4><P><B>These switches of command line currently are available for VESA:</B></P></TD></TR> | 759 <TR><TD COLSPAN=4><P><B>These switches of command line currently are available for VESA:</B></P></TD></TR> |
764 <TR><TD></TD><TD VALIGN="top"><CODE>-double</CODE></TD><TD></TD><TD>enables | 770 <TR><TD></TD><TD VALIGN="top"><CODE>-double</CODE></TD><TD></TD><TD>enables |
765 double buffering mode. (Available only in DGA mode). Should be slower of | 771 double buffering mode. (Available only in DGA mode). Should be slower of |
766 single buffering, but has no flickering effects.</TD></TR> | 772 single buffering, but has no flickering effects.</TD></TR> |
767 </TABLE> | 773 </TABLE> |
768 | 774 |
769 <P><B>Known problems and workaround:</B><BR> | 775 <B>Known problems and workaround:</B> |
770 - If you have installed <B>NLS</B> font on your Linux box and run VESA driver | 776 |
771 from text-mode then after terminating <B>MPlayer</B> you will have <B>ROM | 777 <UL> |
772 font</B> loaded instead of national. You can load national font again by | 778 <LI>If you have installed <B>NLS</B> font on your Linux box and run VESA |
773 using <B><I>setsysfont</I></B> utility from for example Mandrake | 779 driver from text-mode then after terminating <B>MPlayer</B> you will have |
774 distribution.<BR> | 780 <B>ROM font</B> loaded instead of national. You can load national font again |
775 (<B>Hint</B>: The same utility is used for localization of fbdev).<BR> | 781 by using <B><I>setsysfont</I></B> utility from the Mandrake distribution |
776 - Some <B>Linux graphics drivers</B> don't update active <B>BIOS mode</B> in | 782 for example.</BR> |
783 (<B>Hint:</B> The same utility is used for the localization of fbdev).</LI> | |
784 <LI>Some <B>Linux graphics drivers</B> don't update active <B>BIOS mode</B> in | |
777 DOS memory. So if you have such problem - always use VESA driver only from | 785 DOS memory. So if you have such problem - always use VESA driver only from |
778 <B>text-mode</B>. Otherwise text-mode (#03) will be activated anyway and | 786 <B>text-mode</B>. Otherwise text-mode (#03) will be activated anyway and |
779 you will need restart your computer.<BR> | 787 you will need restart your computer.</LI> |
780 - Often after terminating VESA driver you get <B>black screen</B>. To return | 788 <LI>Often after terminating VESA driver you get <B>black screen</B>. To return |
781 your screen to original state - simply switch to other console (by pressing | 789 your screen to original state - simply switch to other console (by pressing |
782 <B>Alt-Fx</B>) then switch to your previous console by the same way.<BR> | 790 <B>Alt-Fx</B>) then switch to your previous console by the same way.</LI> |
783 - To get <B>working TV-out</B> you need have plugged TV-connector in before | 791 <LI>To get <B>working TV-out</B> you need have plugged TV-connector in before |
784 booting your PC since video BIOS initializes itself only once during POST | 792 booting your PC since video BIOS initializes itself only once during POST |
785 procedure.</P> | 793 procedure.</LI> |
794 </UL> | |
786 | 795 |
787 | 796 |
788 <P><B><A NAME="x11">2.3.1.13 X11</A></B></P> | 797 <P><B><A NAME="x11">2.3.1.13 X11</A></B></P> |
789 | 798 |
790 <P>Avoid if possible. Outputs to X11 (uses shared memory extension), with no | 799 <P>Avoid if possible. Outputs to X11 (uses shared memory extension), with no |
1149 | 1158 |
1150 <P><B><A NAME="tv-out_matrox">2.3.1.A.1 Matrox G400 cards</A></B></P> | 1159 <P><B><A NAME="tv-out_matrox">2.3.1.A.1 Matrox G400 cards</A></B></P> |
1151 | 1160 |
1152 <P>Under Linux you have 2 methods to get G400 TV out working:</P> | 1161 <P>Under Linux you have 2 methods to get G400 TV out working:</P> |
1153 | 1162 |
1154 <P><B>IMPORTANT:</B> Only Matrox G400DH/G400MAX has TV-out support under Linux, others (G450, G550) has <B>NOT!</B></P> | 1163 <P><B>IMPORTANT:</B> Only Matrox G400DH/G400MAX has TV-out support under Linux, others (G450, G550) have <B>not!</B></P> |
1155 | 1164 |
1156 <UL> | 1165 <UL> |
1157 <LI><B>XFree86</B>: using the driver and the HAL module, available from | 1166 <LI><B>XFree86</B>: using the driver and the HAL module, available from |
1158 <A HREF="http://www.matrox.com">Matrox's site</A>. This will give you X on | 1167 <A HREF="http://www.matrox.com">Matrox's site</A>. This will give you X on |
1159 the TV.<BR> <B>This method doesn't give you accelerated playback</B> as | 1168 the TV.<BR> <B>This method doesn't give you accelerated playback</B> as |
1185 will enter into framebuffer mode (no way back!).</LI> | 1194 will enter into framebuffer mode (no way back!).</LI> |
1186 <LI>Next, run the <CODE>./matroxtv</CODE> script. This will present you | 1195 <LI>Next, run the <CODE>./matroxtv</CODE> script. This will present you |
1187 to a very simple menu. Press <B>2</B> and <B>ENTER</B>. Now you should | 1196 to a very simple menu. Press <B>2</B> and <B>ENTER</B>. Now you should |
1188 have the same picture on your monitor, and TV. The <B>3.</B> option | 1197 have the same picture on your monitor, and TV. The <B>3.</B> option |
1189 will turn on independent display, but then you <B>can't use X</B>! If | 1198 will turn on independent display, but then you <B>can't use X</B>! If |
1190 the TV (PAL!) picture has some weird stripes on it, the script wasn't able to | 1199 the TV (PAL) picture has some weird stripes on it, the script wasn't able to |
1191 set the resolution correctly (to 640x512 by default). Use other menu | 1200 set the resolution correctly (to 640x512 by default). Use other menu |
1192 items randomly and it'll be OK :)</LI> | 1201 items randomly and it'll be OK :)</LI> |
1193 </UL> | 1202 </UL> |
1194 | 1203 |
1195 <P>Yoh. Next task is to make the cursor on tty1 (or whatever) to disappear, | 1204 <P>Yoh. Next task is to make the cursor on tty1 (or whatever) to disappear, |
1203 or <CODE>setterm -cursor on</CODE></P> | 1212 or <CODE>setterm -cursor on</CODE></P> |
1204 | 1213 |
1205 <P>Yeah kewl. Start movie playing with <CODE>mplayer -vo mga -fs -screenw 640 | 1214 <P>Yeah kewl. Start movie playing with <CODE>mplayer -vo mga -fs -screenw 640 |
1206 -screenh 512 <filename></CODE><BR> | 1215 -screenh 512 <filename></CODE><BR> |
1207 (if you use X, now change to matroxfb with for example CTRL-ALT-F1!)<BR> | 1216 (if you use X, now change to matroxfb with for example CTRL-ALT-F1!)<BR> |
1208 Change 640x512 if you set the resolution to other..<BR> | 1217 Change 640x512 if you set the resolution to other.<BR> |
1209 <B>Enjoy the ultra-fast ultra-featured Matrox TV output (better than Xv)!</B></P> | 1218 <B>Enjoy the ultra-fast ultra-featured Matrox TV output (better than Xv)!</B></P> |
1210 </LI> | 1219 </LI> |
1211 </UL> | 1220 </UL> |
1212 | 1221 |
1213 | 1222 |
1223 <LI><B>ATI Mach64</B>: supported by | 1232 <LI><B>ATI Mach64</B>: supported by |
1224 <A HREF="http://gatos.sf.net">gatos</A>.</LI> | 1233 <A HREF="http://gatos.sf.net">gatos</A>.</LI> |
1225 <LI><B>ASIC Radeon VIVO</B>: supported by | 1234 <LI><B>ASIC Radeon VIVO</B>: supported by |
1226 <A HREF="http://gatos.sf.net">gatos</A>.</LI> | 1235 <A HREF="http://gatos.sf.net">gatos</A>.</LI> |
1227 <LI><B>Radeon</B> and <B>Rage128</B>: supported by <B>MPlayer</B>! | 1236 <LI><B>Radeon</B> and <B>Rage128</B>: supported by <B>MPlayer</B>! |
1228 Check <a href="#vesa">VESA driver</a> and <A HREF="#2.3.1.15">Vidix</A> | 1237 Check <a href="#vesa">VESA driver</a> and <A HREF="#vidix">VIDIX</A> |
1229 sections.</LI> | 1238 sections.</LI> |
1230 </UL> | 1239 </UL> |
1231 | 1240 |
1232 <P>On other cards, just use the <a href="#vesa">VESA driver</a>, without | 1241 <P>On other cards, just use the <a href="#vesa">VESA driver</a>, without |
1233 VIDIX. Powerful CPU is needed, though.</P> | 1242 VIDIX. Powerful CPU is needed, though.</P> |