annotate DOCS/TVout-G400 @ 1459:622c504f36ef

printf stuff moved seek.c->mplayer.c, resetting drop_frame_cnt after seek
author arpi
date Tue, 07 Aug 2001 16:03:30 +0000
parents 50cca1591b15
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
664
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
1 MPlayer TV-out with G400
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
2 ~~~~~~~~~~~~~~~~~~~~~~~~
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
3 (this was a reply at the mplayer-matrox list)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
4
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
5 > What I'd love to see in mplayer is the the same feature that I see in my
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
6 > windows box. When I start a movie in windows (in a window or in full screen)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
7 > the movie is also redirected to the tv-out and I can also see it full screen
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
8 > on my tv. I love this feature and was wondering how hard it would be to add
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
9 > such a feature to mplayer.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
10
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
11 It's a driver limitation. BES (Back-End Scaler, it's the overlay generator
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
12 and YUV scaling engine of G200/G400/G450 cards) works only with CRTC1.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
13 Normally, CRTC1 (textmode, every bpp gfx and BES) is routed to HEAD1,
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
14 and CRTC2 (only 16/32bpp gfx) is routed to HEAD2 (TV-out).
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
15
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
16 Under linux, you have two choices to get TV-out working:
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
17
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
18 1. Using X 4.0.x + the HAL driver from matrox, so you'll get dual-head
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
19 support, and you'll be able to redirect second output to the TV.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
20 Unfortunately it has Macrovision encryption enabled, so it will
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
21 only work on directly-connected TV, no through VCR.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
22 Other problem is that Xv doesn't work on the second head.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
23 (I don't know how Windows solve it, maybe it swaps the CRTCs between
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
24 the heads, or just uses YUV framebuffer of second DAC with some trick)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
25
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
26 2. Using matroxfb with dual-head support enabled (2.4.x kernels).
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
27 You'll be able to get a framebuffer console (using CRTC2, so it's
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
28 slow), and TV-out (using CRTC1, with BES support).
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
29 You have to forget X while using this kind of TV-out! :(
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
30
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
31 How to enable?
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
32
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
33 - Compile all the matrox-related things to modules in the kernel.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
34 (you MUST compile them to modules, at least I couldn't get them
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
35 working built-in yet)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
36 [reboot to new kernel & install modules, but don't load them yet!]
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
37
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
38 - Run the 'modules' script from the TV-out directory of mplayer.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
39 It will switch your console to framebuffer.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
40 Change to tty1 (ALT+F1)!
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
41 Now run the script 'independent', it will set up your tty's:
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
42 tty 1,2: fb console, CRTC2, head 1 (monitor)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
43 tty 3,4,5...: framebuffer+BES, CRTC1, head 2 (TV-out)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
44 You should run the scripts TV-* and Mon-* to set up resolutions:
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
45 change to tty1 (ALT+F1), and run Mon-* (one of them)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
46 change to tty3 (ALT+F3) and then back to tty1 (ALT+F1)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
47 (this change will select tty3 on /dev/fb1 - tricky)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
48 run TV-* (one of them)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
49 (now you'll get a console on your PAL TV - don't know about NTSC)
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
50
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
51 Now if you start mplayer (on tty1), the picture will show up on
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
52 the tty3, so you'll see it on your TV or second monitor.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
53
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
54 Yes, it is a bit 'hack' now. But I'm waiting for the marvel
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
55 project to be finished, it will provide real TV-out drivers, I hope.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
56
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
57 My current problem is that BES is working only with CRTC1. So picture
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
58 will always shown up on head routed to CRTC1 (normaly the monitor),
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
59 so i have to swap CRTC's, but this way your console will framebuffer
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
60 (CRTC2 can't do text-mode) and a bit slow (no acceleration). :(
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
61
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
62
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
63 > anyway i also just get monochrome output on the tv ...
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
64 Maybe you have NTSC TV? Or just didn't run one of TV-* scripts.
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
65
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
66
50cca1591b15 Matrox TV-out HOWTO
arpi_esp
parents:
diff changeset
67 A'rpi / Astral & ESP-team