sgltv: Simple openGL TV viewer
sgltv is a very simple black and white TV viewer which should work
under any linux box.
It uses V4L, OSS sound driver, and opengl (with glut).
Sources:
to compile and execute do the following commands
gunzip sgltv-0.04.c.gz
gcc -o sgltv -s -O3 -Wall sgltv-0.04.c -L/usr/X11R6/lib -lglut -lGLU -lGL -lpthread
./sgltv
You need the Opengl and GLUT libraries.
(you must have the libMesaglut-devel package).
The syntax of the program is:
sgltv [ glut_options ] [ -decfull 0|1|2 ] [ -freq frequency ] [ -norm norm_number ]
[ -input input_number ] [ key file ]
glut_options:
[ -display DISPLAY ] [ -geometry WxH+X+Y ] [ -iconic ]
[ -indirect ] [ -direct ] [ -gldebug ] [ -sync ]
- frequency is in MHz, no channel id is used. If you know
the channel id of your station, you can find its frequency
via this table.
- norm:
| norm_number | norm |
| 0 | PAL |
| 1 | NTSC |
| 2 | SECAM |
| 3 | PAL-NC |
| 4 | PAL-M |
| 5 | PAL-N |
| 6 | NTSC-JP |
- input_number, in general:
| input_number | input |
| 0 | Television |
| 1 | Composite1 |
| 2 | S-Video |