# HG changeset patch # User gabucino # Date 1038088601 0 # Node ID 352b654c778708d09cc1f93c89ef4308059355d3 # Parent 2ceab365858d288662103fa4ce47162c94f4c6c7 updates nvidia tv-out section etc diff -r 2ceab365858d -r 352b654c7787 DOCS/documentation.html --- a/DOCS/documentation.html Sat Nov 23 21:51:31 2002 +0000 +++ b/DOCS/documentation.html Sat Nov 23 21:56:41 2002 +0000 @@ -174,6 +174,7 @@
  • 2.3.1.5.2 Matrox G450/G550 cards
  • 2.3.1.5.3 ATI cards
  • 2.3.1.5.4 Voodoo 3
  • +
  • 2.3.1.5.5 nVidia
  • @@ -205,6 +206,7 @@
  • 2.4.5 Encoding with the libavcodec codec family
  • 2.4.6 Encoding from multiple input image files (JPEGs or PNGs)
  • 2.4.7 Extracting DVD subtitles to a Vobsub file
  • +
  • 2.4.8 Preserving aspect ratio
  • 2.5 TV input @@ -620,13 +622,15 @@ have problems with YV12 display, see S3 Xv section for details. Older, Trio cards have no, or slow hardware support.
  • -
  • nVidia cards: very bad choice for video playing (nVidia - does not think so). - nVidia's cards have very cheap and bad quality chips. Moreover, the - built-in nVidia driver in XFree86 does not support hardware YUV +
  • nVidia cards: may or may not be good choice for video playing. + If you do not have a GeForce2 (or newer) card, it's not likely to work + without bugs. + The built-in nVidia driver in XFree86 does not support hardware YUV acceleration on all nVidia cards. You have to download nVidia's - closed-source drivers from nVidia.com. See the nVidia Xv driver section for details.
  • + closed-source drivers from nVidia.com. See the + nVidia Xv driver section for + details. Please also check the nVidia + TV-out section if you wish to use a TV.
  • 3DLabs GLINT R3 and Permedia3: a VIDIX driver is provided (pm3_vid). Please see the VIDIX section for details.
  • @@ -721,6 +725,8 @@
  • If you have a V4L compatible TV tuner card, and wish to watch/grab and encode movies with MPlayer, read the TV input section.
  • +
  • There is a neat OSD Menu support ready to be used. Check the + OSD Menu section.
  • Then build MPlayer:

    @@ -952,19 +958,27 @@

    1.4.3 OSD menu

    -

    MPlayer has an OSD Menu interface, which is not only completely user - defined, but is displayed as OSD, on the currently played video!

    +

    MPlayer has a completely user definiable OSD Menu interface.

    Installation

      +
    1. compile MPlayer by passing the --enable-new-conf + --enable-menu parameters to ./configure
    2. +
    3. make sure you have an OSD font installed
    4. copy etc/menu.conf to your .mplayer directory
    5. copy etc/input.conf to your .mplayer directory, or to the system-wide MPlayer config dir (default: - /usr/local/share/mplayer)
    6. + /usr/local/etc/mplayer) +
    7. check and edit input.conf to enable menu movement + keys (it is described there).
    8. +
    9. start MPlayer by the following example:
      + $ mplayer -menu file.avi
    10. +
    11. push any menu key you defined
    +

    1.5 RTC

    diff -r 2ceab365858d -r 352b654c7787 DOCS/encoding.html --- a/DOCS/encoding.html Sat Nov 23 21:51:31 2002 +0000 +++ b/DOCS/encoding.html Sat Nov 23 21:56:41 2002 +0000 @@ -102,24 +102,22 @@

    2.4.2 Rescaling movies

    -

    Often the need to resize movie images' size emerges. Its reasons can be many, - examples are decreasing output file size, encoding SVCDs to DivX. Ripped DVDs - are mostly rescaled, for example a 4:3 DVD should be 640x480, especially - when you want it to fit to 1 CD, and have good quality at the same time. - SVCDs have 480x480 size, and their header contains the aspect ratio the - player should use (Ex.: 480x480 + 4:3 = 640x480). However when encoding to - AVI (DivX) files, you have be aware that AVI headers don't store this - value. Thus, the only solution is rescaling.

    +

    Often the need to resize movie images' size emerges. Its reasons can be + many: decreasing file size, network bandwidth, etc. Most people + even do rescaling when converting DVDs or SVCDs to DivX AVI. This is bad. + Instead of even you doing so, read the Preserving + aspect ratio section.

    The scaling process is handled by the 'scale' video filter: - -vop scale=X:Y. Its quality can be set with the + -vop scale=widht:height. Its quality can be set with the -sws option. If it's not specified, MEncoder will use 0: fast bilinear.

    -

    Usage:
    -     mencoder sample-svcd.mpg -ovc lavc -lavcopts - vcodec=mpeg4:more_options -vop scale=640:480 -oac copy -o - output.avi

    +
    Usage:
    + +

        mencoder input.mpg -ovc lavc -lavcopts + vcodec=mpeg4:more_options -vop scale=640:480 -oac copy -o + output.avi

    2.4.3 Stream copying

    @@ -268,5 +266,33 @@ -vobsuboutindex 0 -vobsuboutid fr -sid 1

    +

    2.4.8 Preserving aspect ratio

    + +

    DVDs and SVCDs (i.e. MPEG1/2) files contain an aspect ratio value, + which describes how should the player scale the video stream, so humans + won't have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding + to AVI (DivX) files, you have be aware that AVI headers don't store this + value. Rescaling the movie is disgusting and time consuming, there + must be a better feature!

    + +

    There is.

    + +

    MPEG4 has an unique feature: the video stream can contain + its needed aspect ratio. Yes, just like MPEG1/2 files (DVD, SVCD). + Regretfully, there are no video players outside which support this + attribute. Except MPlayer.

    + +

    This feature can be used only with libavcodec's mpeg4 + codec. Keep in mind: although MPlayer will correctly play the created file, + other players will use the wrong aspect ratio.

    + +

    You seriously should crop the black bands over and below the movie image. + See TODO.

    + +
    Usage:
    + +

    $ mencoder sample-svcd.mpg -ovc lavc -lavcopts + vcodec=mpeg4:aspect=16.0/9.0 -vop crop=714:548:0:14 -oac copy -o output.avi

    + diff -r 2ceab365858d -r 352b654c7787 DOCS/sound.html --- a/DOCS/sound.html Sat Nov 23 21:51:31 2002 +0000 +++ b/DOCS/sound.html Sat Nov 23 21:56:41 2002 +0000 @@ -20,7 +20,7 @@ - + @@ -52,7 +52,7 @@ default). If you experience glitches, halts or anything out of the ordinary, try -ao sdl (NOTE: you need to have SDL libraries and header files installed). The SDL audio driver helps in a lot of cases - and also supports ESD, ARTS, and up/downsampling. (ESD is the sound daemon + and also supports ESD, ARTS. (ESD is the sound daemon from GNOME, ARTS is from KDE.)
  • If you have ALSA version 0.5, then you almost always have to use -ao alsa5 , since ALSA 0.5 has buggy OSS emulation code, and @@ -183,8 +183,8 @@

    MPlayer fully supports up/downsampling of the sound. This plugin can be used if you have a fixed frequency sound card or if you are stuck with an old sound card that is only capable of max 44.1kHz. - Limitations in your hardware are not auto detected, so you have to specify - the sample frequency explicitly. This plugin has one switch: + Whether is usage of this plugin is neccessary or not, is autodetected. + This plugin has one switch: fout which is used for setting the desired output sample frequency. It defaults to 48kHz, and is given in <Hz>.

    diff -r 2ceab365858d -r 352b654c7787 DOCS/video.html --- a/DOCS/video.html Sat Nov 23 21:51:31 2002 +0000 +++ b/DOCS/video.html Sat Nov 23 21:56:41 2002 +0000 @@ -1438,5 +1438,39 @@

    Check this URL.

    + +

    2.3.1.5.5 nVidia

    + +

    First, you MUST download the closed-source drivers from + http://nvidia.com. I will not describe the + installation and configuration process because it does not cover the + scope of this documentation.

    + +

    After XFree86, XVideo, and 3D acceleration is properly working, + edit your card's Device section in the XF86Config file, + according to the following example (adapt for your card/TV):

    + +
    +Section "Device"
    +        Identifier      "GeForce"
    +        VendorName      "ASUS"   
    +        BoardName       "nVidia GeForce2/MX 400"
    +        Driver          "nvidia"
    +        #Option         "NvAGP" "1"
    +        Option          "NoLogo"   
    +        Option          "CursorShadow"  "on"
    +
    +        Option          "TwinView"
    +        Option          "TwinViewOrientation" "Clone"
    +        Option          "MetaModes" "1024x768,640x480"
    +        Option          "ConnectedMonitor" "CRT, TV"  
    +        Option          "TVStandard" "PAL-B"
    +        Option          "TVOutFormat" "Composite"
    +
    +EndSection
    +
    + +

    Of course the important thing is the TwinView part.

    +
  • General:

      oss  OSS (ioctl) driver (supports hardware AC3 passthrough)
    sdlSDL driver (supports up/downsampling, ESD, ARTS etc)
    sdlSDL driver (supports ESD, ARTS etc)
    nasNAS (Network Audio System) driver
    alsa5native ALSA 0.5 driver
    alsa9native ALSA 0.9 driver (supports hardware AC3 passthrough)