Wednesday, July 11, 2007

watch and capture TV on Linux

How to capture and watch tv

Use xawtv (it doesn't lock the devices and doesn't hang, at least while I was experimenting ;) and ffmpeg.

run xawtv, switch to favourite channel.

ffmpeg -f mpegvideo -acodec mp2 -ar 48000 -ab 192 -ac 2 -ad /dev/dsp -vd /dev/video0 -vcodec mpeg2video -b 6000 -s 720x576 -aspect 4:3 test_cap.mpeg


To fix problems with SECAM:

select SECAM channel in xawtv, then


v4lctl setattr norm SECAM-DK


Here is a sample .xawtv file:


[defaults]

norm = PAL


[tv xxi]

freq = 77.240


[tdk]

freq = 111.240


[eurosport]

freq = 119.240


[nat. geo]

freq = 126.899


[discovery]

freq = 135.239


[animal planet]

freq = 143.239


[tvc]

freq = 151.239


[dziecki]

freq = 159.239


[euronews]

freq = 167.239


[hallmark]

freq = 175.239


[soviet kino]

freq = 191.239


[one.by]

freq = 215.239


[ont]

norm = SECAM

freq = 222.599


[belmuztv]

freq = 239.239


[8]

freq = 247.239


[rambler]

freq = 487.240


[disc. science]

freq = 503.240


[extreme]

freq = 551.240


[history]

freq = 567.240


[dziecki2]

freq = 575.240


[WF]

freq = 783.240


[ntv]

norm = SECAM

freq = 58.930


[lad]

norm = SECAM

freq = 84.900


[stv]

norm = SECAM

freq = 92.930


[bt]

norm = secam

freq = 182.970


[mtv]

freq = 198.510


[rtr]

norm = SECAM

freq = 207.150


[mir]

norm = SECAM

freq = 230.750

Monday, June 4, 2007

Beholder TV tuner

For kernel 2.6.19.2

How to setup Beholder TV tuner

1)see README.saa7134 in linux-source/Documentation
2)modprobe -r saa7134
3)modprobe saa7134 card=67

Create /etc/modprobe.d/beholder.conf with:
options saa7134 card=67

Sound card setup:

Create /etc/modprobe.d/sound.conf with
options snd-hda-intel model=6stack-dig

Use ALSA mixer, Front for general sound, Analog Mix for TV sound + Line-In for kdetv.

Friday, June 1, 2007

G-Pen 560

How I made my Genius G-560 tablet working in Debian Linux 4.0 .

1) Downloaded wizardpen driver

http://www.stud.fit.vutbr.cz/~xhorak28/index.php?page=WizardPen_Driver

2) Unpacked to home directory.
3) In the make file Adjusted the directory for the directory where x.org drivers lie.
4) Did as it is written in INSTALL and README.
5) with cat and hexdump utilites I have found the proper /dev/input/event device for the tablet ;-)
6) Modified the x.org file for:

Section "InputDevice"
Identifier "Tablet"
Driver "wizardpen"
Option "Device" "/dev/input/event1" # adjust for yours device for the tablet
Option "MaxX" "11939"
Option "MaxY" "8939"
Option "MaxZ" "1023"
Option "TopZ" "32"
Option "BottomY" "8650"
EndSection


Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse" "CorePointer"
InputDevice "Tablet" "AlwaysCore"
EndSection


7) Restarted the x.org server.