May 2002 , April 2005
This document may be distributed under the terms set forth in the LDP license at sunsite.unc.edu/LDP/COPYRIGHT.html.
Copyright (c) 2002, 2005 by netnode.de.
This document is free documentation; you can redistribute it and/or
modify it under the terms of the LDP license. This document is
in the hope that it will be useful, but without any warranty;
even the implied warranty of merchantability or fitness for
particular purpose. See the LDP license for more details.
I have described TV-out for use with MPlayer because it is the main application for TV-out and it comes with almost all necessary tools you need for TV-out and a G400DH.
Please refer the MPlayer documentation for the usage of MPlayer and for more information about G400 and frame buffer. The frame buffer method is described there but it doesn't work on my system with the settings described there - that's why I wrote this dokument. :-)
First compile a kernel with the following options:
Processor type and features
[*] MTRR (Memory Type Range Register) support
Console drivers --->
Frame-buffer support --->
[*] Support for frame buffer devices
<M> Matrox acceleration
[*] G100/G200/G400/G450/G550 support
<M> Matrox I2C support
<M> G400 second head support
After booting the new kernel and compiling and installing
go in the directory 'drivers' in the MPlayer source directory
and do 'make'.
Now become root.
Than execute 'insmod mga_vid.o mga_ram_size=XX'. Replace 'XX' with your video RAM in megs (16 or 32).
Execute the following (if your monitor doesn't support TV refresh rates you should turn it off now because it could be damaged):
Go in the directory 'TVout/matroxset' of your MPlayer source directory, do 'make' and execute the following:
./matroxset -f /dev/fb1 -m 0
./matroxset -f /dev/fb0 -m 3
Then do './matroxset 1' if you are using PAL or './matroxset 2' if you want NTSC.
PAL users now type:
fbset -g 832 768 832 768 32 -t 20203 40 0 63 29 56 4 -bcast true
(If you haven't already installed 'fbset' go in the directory 'TVout/fbset' of your MPlayer source directory and compile it.)
Now enjoy full size and accelerated TV-out with the following commands:
setterm -cursor off
setterm -blank 0
setterm -foreground black
mplayer -vo mga -fs movie.avi
If you are a NTSC user you have a little problem because I don't
a NTSC compatible TV. So you have to discover your own fbset command
for a full screen picture. Refer MPlayer documentation!
matrox 0x1e 0xd0
matrox 0x20 0xff
matrox 0x22 0xff
These sets contrast and saturation (2 registers). On an other system
with these settings the picture looked terrible. So you probably have
to find settings fitting your system.
You can change hue with reg 0x25 and brightness with reg 0x0e.