Mercurial > mplayer.hg
comparison DOCS/xml/en/video.xml @ 11713:a1bc8133084a
<replaceable> tags' attack :P
author | paszczi |
---|---|
date | Thu, 01 Jan 2004 17:44:41 +0000 |
parents | d480f7e36b74 |
children | d5c84f4b8740 |
comparison
equal
deleted
inserted
replaced
11712:5905aae865c7 | 11713:a1bc8133084a |
---|---|
385 Become <systemitem class="username">root</systemitem>. DGA needs root | 385 Become <systemitem class="username">root</systemitem>. DGA needs root |
386 access to be able to write directly video memory. If you want to run it as | 386 access to be able to write directly video memory. If you want to run it as |
387 user, then install <application>MPlayer</application> SUID root: | 387 user, then install <application>MPlayer</application> SUID root: |
388 | 388 |
389 <screen> | 389 <screen> |
390 chown root /usr/local/bin/mplayer | 390 chown root <replaceable>/usr/local/bin/mplayer</replaceable> |
391 chmod 750 /usr/local/bin/mplayer | 391 chmod 750 <replaceable>/usr/local/bin/mplayer</replaceable> |
392 chmod +s /usr/local/bin/mplayer | 392 chmod +s <replaceable>/usr/local/bin/mplayer</replaceable> |
393 </screen> | 393 </screen> |
394 | 394 |
395 Now it works as a simple user, too. | 395 Now it works as a simple user, too. |
396 </para> | 396 </para> |
397 | 397 |
815 </varlistentry> | 815 </varlistentry> |
816 </variablelist> | 816 </variablelist> |
817 | 817 |
818 <para> | 818 <para> |
819 If you want to change to a specific mode, then use | 819 If you want to change to a specific mode, then use |
820 <screen>mplayer -vm -fbmode <replaceable>name_of_mode</replaceable> <replaceable>filename</replaceable></screen> | 820 <screen> |
821 mplayer -vm -fbmode <replaceable>name_of_mode</replaceable> <replaceable>filename</replaceable> | |
822 </screen> | |
821 </para> | 823 </para> |
822 | 824 |
823 <itemizedlist> | 825 <itemizedlist> |
824 <listitem><para> | 826 <listitem><para> |
825 <option>-vm</option> alone will choose the most suitable mode from | 827 <option>-vm</option> alone will choose the most suitable mode from |
1385 </formalpara> | 1387 </formalpara> |
1386 <para> | 1388 <para> |
1387 Also you can specify VIDIX's driver directly as third subargument in | 1389 Also you can specify VIDIX's driver directly as third subargument in |
1388 command line: | 1390 command line: |
1389 | 1391 |
1390 <screen>mplayer -vo xvidix:mga_vid.so -fs -zoom -double file.avi</screen> | 1392 <screen>mplayer -vo xvidix:mga_vid.so -fs -zoom -double <replaceable>file.avi</replaceable></screen> |
1391 or | 1393 or |
1392 <screen>mplayer -vo vesa:vidix:radeon_vid.so -fs -zoom -double -bpp 32 file.avi</screen> | 1394 <screen>mplayer -vo vesa:vidix:radeon_vid.so -fs -zoom -double -bpp 32 <replaceable>file.avi</replaceable></screen> |
1393 | 1395 |
1394 But it's dangerous, and you shouldn't do that. In this case given driver | 1396 But it's dangerous, and you shouldn't do that. In this case given driver |
1395 will be forced and result is unpredictable (it may | 1397 will be forced and result is unpredictable (it may |
1396 <emphasis role="bold">freeze</emphasis> your computer). You should do that | 1398 <emphasis role="bold">freeze</emphasis> your computer). You should do that |
1397 ONLY if you are absolutely sure it will work, and | 1399 ONLY if you are absolutely sure it will work, and |
1514 every single decoder from the libavcodec family. This leaves us with the | 1516 every single decoder from the libavcodec family. This leaves us with the |
1515 following usable popular codecs: <systemitem>cvid, divxds, xvid, divx4, | 1517 following usable popular codecs: <systemitem>cvid, divxds, xvid, divx4, |
1516 wmv7, wmv8</systemitem> and some others. Please note that this is only | 1518 wmv7, wmv8</systemitem> and some others. Please note that this is only |
1517 a temporal inconvenience. The usage syntax is as follows: | 1519 a temporal inconvenience. The usage syntax is as follows: |
1518 <screen> | 1520 <screen> |
1519 mplayer -vf format=uyvy -vc divxds divx3file.avi | 1521 mplayer -vf format=uyvy -vc divxds <replaceable>divx3file.avi</replaceable> |
1520 </screen> | 1522 </screen> |
1521 </para></listitem> | 1523 </para></listitem> |
1522 </itemizedlist> | 1524 </itemizedlist> |
1523 | 1525 |
1524 <para> | 1526 <para> |
1525 An unique feature of the nvidia_vid driver is its ability to display video on | 1527 An unique feature of the nvidia_vid driver is its ability to display video on |
1526 <emphasis role="bold">plain, pure, text-only console</emphasis> - with no | 1528 <emphasis role="bold">plain, pure, text-only console</emphasis> - with no |
1527 framebuffer or X magic whatsoever. For this purpose, we'll have to use the | 1529 framebuffer or X magic whatsoever. For this purpose, we'll have to use the |
1528 <option>cvidix</option> video output, as the following example shows: | 1530 <option>cvidix</option> video output, as the following example shows: |
1529 <screen> | 1531 <screen> |
1530 mplayer -vf format=uyvy -vc divxds -vo cvidix example.avi | 1532 mplayer -vf format=uyvy -vc divxds -vo cvidix <replaceable>example.avi</replaceable> |
1531 </screen> | 1533 </screen> |
1532 </para> | 1534 </para> |
1533 | 1535 |
1534 <para> | 1536 <para> |
1535 Reports awaited! | 1537 Reports awaited! |
1636 <para> | 1638 <para> |
1637 Hardware decoding (playing standard MPEG1/2 files) can be done with this command: | 1639 Hardware decoding (playing standard MPEG1/2 files) can be done with this command: |
1638 </para> | 1640 </para> |
1639 </formalpara> | 1641 </formalpara> |
1640 | 1642 |
1641 <para><screen>mplayer -ao mpegpes -vo mpegpes file.mpg|vob</screen></para> | 1643 <para> |
1644 <screen>mplayer -ao mpegpes -vo mpegpes <replaceable>file.mpg|vob</replaceable></screen> | |
1645 </para> | |
1642 | 1646 |
1643 <para> | 1647 <para> |
1644 Software decoding or transcoding different formats to MPEG1 can be achieved using | 1648 Software decoding or transcoding different formats to MPEG1 can be achieved using |
1645 a command like this: | 1649 a command like this: |
1646 </para> | 1650 </para> |
1647 <para><screen> | 1651 <para><screen> |
1648 mplayer -ao mpegpes -vo mpegpes yourfile.ext | 1652 mplayer -ao mpegpes -vo mpegpes <replaceable>yourfile.ext</replaceable> |
1649 mplayer -ao mpegpes -vo mpegpes -vf expand yourfile.ext | 1653 mplayer -ao mpegpes -vo mpegpes -vf expand <replaceable>yourfile.ext</replaceable> |
1650 </screen></para> | 1654 </screen></para> |
1651 | 1655 |
1652 <para> | 1656 <para> |
1653 Note that DVB cards only support heights 288 and 576 for PAL or 240 and 480 for | 1657 Note that DVB cards only support heights 288 and 576 for PAL or 240 and 480 for |
1654 NTSC. You <emphasis role="bold">must</emphasis> rescale for other heights by adding | 1658 NTSC. You <emphasis role="bold">must</emphasis> rescale for other heights by adding |
1664 <para>If you have a widescreen movie and you do not want to scale it to full height, | 1668 <para>If you have a widescreen movie and you do not want to scale it to full height, |
1665 you can use the <option>expand=w:h</option> filter to add black bands. To view a | 1669 you can use the <option>expand=w:h</option> filter to add black bands. To view a |
1666 640x384 DivX, try: | 1670 640x384 DivX, try: |
1667 </para> | 1671 </para> |
1668 | 1672 |
1669 <para><screen>mplayer -ao mpegpes -vo mpegpes -vf expand=640:576 file.avi | 1673 <para> |
1670 </screen></para> | 1674 <screen>mplayer -ao mpegpes -vo mpegpes -vf expand=640:576 <replaceable>file.avi</replaceable> |
1675 </screen> | |
1676 </para> | |
1671 | 1677 |
1672 <para>If your CPU is too slow for a full size 720x576 DivX, try downscaling:</para> | 1678 <para>If your CPU is too slow for a full size 720x576 DivX, try downscaling:</para> |
1673 | 1679 |
1674 <para><screen>mplayer -ao mpegpes -vo mpegpes -vf scale=352:576 file.avi | 1680 <para> |
1675 </screen></para> | 1681 <screen>mplayer -ao mpegpes -vo mpegpes -vf scale=352:576 <replaceable>file.avi</replaceable> |
1682 </screen> | |
1683 </para> | |
1676 | 1684 |
1677 <para>If speed does not improve, try vertical downscaling, too:</para> | 1685 <para>If speed does not improve, try vertical downscaling, too:</para> |
1678 | 1686 |
1679 <para><screen>mplayer -ao mpegpes -vo mpegpes -vf scale=352:288 file.avi | 1687 <para> |
1680 </screen></para> | 1688 <screen>mplayer -ao mpegpes -vo mpegpes -vf scale=352:288 <replaceable>file.avi</replaceable> |
1689 </screen> | |
1690 </para> | |
1681 | 1691 |
1682 <para> | 1692 <para> |
1683 For OSD and subtitles use the OSD feature of the expand filter. So, instead of | 1693 For OSD and subtitles use the OSD feature of the expand filter. So, instead of |
1684 <option>expand=w:h</option> or <option>expand=w:h:x:y</option>, use | 1694 <option>expand=w:h</option> or <option>expand=w:h:x:y</option>, use |
1685 <option>expand=w:h:x:y:1</option> (the 5th parameter <option>:1</option> | 1695 <option>expand=w:h:x:y:1</option> (the 5th parameter <option>:1</option> |
2013 that you have a movie with a resolution of 512x272 and you want to view it | 2023 that you have a movie with a resolution of 512x272 and you want to view it |
2014 fullscreen on your DC10+. There are three main possibilities, you may scale | 2024 fullscreen on your DC10+. There are three main possibilities, you may scale |
2015 the movie to a width of 768, 384 or 192. For performance and quality reasons, | 2025 the movie to a width of 768, 384 or 192. For performance and quality reasons, |
2016 I would choose to scale the movie to 384x204 using the fast bilinear software | 2026 I would choose to scale the movie to 384x204 using the fast bilinear software |
2017 scaler. The commandline is | 2027 scaler. The commandline is |
2018 <screen>mplayer -vo zr -sws 0 -vf scale=384:204 movie.avi</screen> | 2028 <screen> |
2029 mplayer -vo zr -sws 0 -vf scale=384:204 <replaceable>movie.avi</replaceable> | |
2030 </screen> | |
2019 </para> | 2031 </para> |
2020 | 2032 |
2021 <para> | 2033 <para> |
2022 Cropping can be done by the <option>crop</option> filter and by this | 2034 Cropping can be done by the <option>crop</option> filter and by this |
2023 driver itself. Suppose that a movie is too wide for display on your Buz and | 2035 driver itself. Suppose that a movie is too wide for display on your Buz and |
2024 that you want to use <option>-zrcrop</option> to make the movie less wide, | 2036 that you want to use <option>-zrcrop</option> to make the movie less wide, |
2025 then you would issue the following command | 2037 then you would issue the following command |
2026 <screen>mplayer -vo zr -zrcrop 720x320+80+0 benhur.avi</screen> | 2038 <screen> |
2039 mplayer -vo zr -zrcrop 720x320+80+0 <replaceable>benhur.avi</replaceable> | |
2040 </screen> | |
2027 </para> | 2041 </para> |
2028 | 2042 |
2029 <para> | 2043 <para> |
2030 if you want to use the <option>crop</option> filter, you would do | 2044 if you want to use the <option>crop</option> filter, you would do |
2031 <screen>mplayer -vo zr -vf crop=720:320:80:0 benhur.avi</screen> | 2045 <screen> |
2046 mplayer -vo zr -vf crop=720:320:80:0 <replaceable>benhur.avi</replaceable> | |
2047 </screen> | |
2032 </para> | 2048 </para> |
2033 | 2049 |
2034 <para> | 2050 <para> |
2035 Extra occurrences of <option>-zrcrop</option> invoke <emphasis>cinerama</emphasis> | 2051 Extra occurrences of <option>-zrcrop</option> invoke <emphasis>cinerama</emphasis> |
2036 mode, i.e. you can distribute the movie over several TV's or beamers to create a | 2052 mode, i.e. you can distribute the movie over several TV's or beamers to create a |
2040 of 704x288. Suppose also that you want the right beamer in black and white and | 2056 of 704x288. Suppose also that you want the right beamer in black and white and |
2041 that the left beamer should have JPEG frames at quality 10, then you would | 2057 that the left beamer should have JPEG frames at quality 10, then you would |
2042 issue the following command | 2058 issue the following command |
2043 <screen> | 2059 <screen> |
2044 mplayer -vo zr -zrdev /dev/video0 -zrcrop 352x288+352+0 -zrxdoff 0 -zrbw \ | 2060 mplayer -vo zr -zrdev /dev/video0 -zrcrop 352x288+352+0 -zrxdoff 0 -zrbw \ |
2045 -zrcrop 352x288+0+0 -zrdev /dev/video1 -zrquality 10 movie.avi | 2061 -zrcrop 352x288+0+0 -zrdev /dev/video1 -zrquality 10 \ |
2062 <replaceable>movie.avi</replaceable> | |
2046 </screen> | 2063 </screen> |
2047 </para> | 2064 </para> |
2048 | 2065 |
2049 <para> | 2066 <para> |
2050 You see that the options appearing before the second <option>-zrcrop</option> | 2067 You see that the options appearing before the second <option>-zrcrop</option> |