Xawtv

From LQWiki
Jump to navigation Jump to search

xawtv is software that lets you watch tv using your TV-card or monitor your room using your webcam.

Website

Build it

Main article: Compiling softwAre

Compile it like this:

./configure && make -j10 && make install

If you get

console/fs.h:2:20: error: FSlib.h: No such file or directory

Create a link to FSlib.h in a place where it can be found:

ln -s /usr/include/X11/fonts/FSlib.h /usr/include/FSlib.h

If you get

console/fs.o: In function `fs_open':
console/fs.c:226: undefined reference to `FSListFonts'
console/fs.c:235: undefined reference to `FSOpenBitmapFont'
console/fs.c:236: undefined reference to `FSFreeFontNames'
console/fs.c:240: undefined reference to `FSQueryXInfo'
console/fs.c:243: undefined reference to `FSQueryXExtents16'
console/fs.c:244: undefined reference to `FSQueryXBitmaps16'

Configure it with

./configure --x-include=/usr/include/X11/ --x-libraries=/usr/lib/X11/

Run it

If you run xawtv for the first time, first build up a channel list by opening A console and entering:

scantv

To run xawtv, call

xawtv

If you get

This is xawtv-3.95, running on Linux/x86_64 (2.6.25.18-0.2-default)
xinerama 0: 1400x1050+0+0
X Error of failed request:  XF86DGANoDirectVideoMode
  Major opcode of failed request:  137 (XFree86-DGA)
  Minor opcode of failed request:  1 (XF86DGAGetVideoLL)
  Serial number of failed request:  69
  Current serial number in output stream:  69

Try the following call:

xawtv -noxv -noxv-video -nodga -novm

Example

Find out your v4l device:

$ cat /var/log/messages | grep /dev/video
Jun 10 14:03:15 kolossus kernel: quickcam: Registered device: /dev/video1

Use xawtv to watch your webcam's input:

xawtv -c /dev/video1