Linux HOWTOs

About | Home | Search


HOWTO: xawtv
Description: TV application and utilities
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# xawtv
# =====
# Below I include the latest full release and the latest snapshot.  At the
# moment, I'm using the snapshot.

# Prerequisites (for both versions):
# grep
# ncurses
# Kernel with video4linux enabled
# XFree86 or X.org
# libjpeg
# ALSA
# LIRC
# libzvbi
# aalib
# libdv
# libquicktime


# xawtv 3.95
# ==========
cd
mkdir -p -m 0700 installed
test -f installed/xawtv-3.95.tar.gz && mv installed/xawtv-3.95.tar.gz .
test ! -f xawtv-3.95.tar.gz &&
 wget http://dl.bytesex.org/releases/xawtv/xawtv-3.95.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "xawtv-*" -exec rm -r {} \;
test -d ./xawtv && rm -r ./xawtv
tar xzvf ~/xawtv-3.95.tar.gz
cd xawtv-3.95
test $UID = 0 && chown -R root:root .
chmod -R u+w .

# If you do have libzvbi installed and use libiconv (vs. only using glibc's
# built-in iconv), apply this patch:
wget -nc http://englanders.cc/pub/linux/patches/xawtv-3.95-iconv.patch &&
 patch -p0 < xawtv-3.95-iconv.patch
autoreconf -f -i

# I had to configure mine with --disable-quicktime because it doesn't
# seem to like libquicktime version 0.9.8pre2:

./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f intalled/xawtv-*.tar.*
mv xawtv-3.95.tar.gz installed/

# Run xawtv for the regular interface, motv for a Motif-like GUI, and
# ttv (uses aalib) for a GUI that uses ascii characters

# ~/src/xawtv-3.95/contrib/xawtv48x48.xpm can be used as a desktop icon


# xawtv snapshot 
# ==============
# Prerequisites (beyond those listed above):
# autoconf
# automake
# GTK+ >= 2.4

cd
mkdir -p -m 0700 installed
test -f installed/xawtv-20070625-114215.tar.gz &&
 mv installed/xawtv-20070625-114215.tar.gz .
test ! -f xawtv-20070625-114215.tar.gz &&
 wget http://dl.bytesex.org/cvs-snapshots/xawtv-20070625-114215.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "xawtv-*" -exec rm -r {} \;
test -d ./xawtv && rm -r ./xawtv
tar xzvf ~/xawtv-20070625-114215.tar.gz
cd xawtv
test $UID = 0 && chown -R root:root .

## I didn't try this next part this time because I don't have libiconv
## installed at the moment
# Apply this patch if you have libiconv installed (vs. using glibc's built
# in iconv).  Without this, libzvbi detection failed for me.
wget -nc http://englanders.cc/pub/linux/patches/xawtv-snapshot-iconv.patch &&
 patch -p0 < xawtv-snapshot-iconv.patch

## I didn't try this next part this time because I don't have libiconv
## installed at the moment
# Also because of libiconv, I had to open up the following files to add
# " -liconv" to the end of the specified lines:
# console/Subdir.mk
#   line 86 - console/streamer
#   line 87 - console/webcam
# debug/Subdir.mk
#   line 50 - debug/dvb-signal
#   line 51 - debug/vbi-rec
# x11/Subdir.mk
#   line 108 - x11/v4lctl
# When I have more time, I'll try to fix it with a patch "the right
# way".

# Run this to create the configure script
./autogen.sh

# ttv (the aalib one) is broken, so I don't pass the --enable-aa this time

# I had to configure mine with --disable-quicktime because it doesn't
# seem to like libquicktime version 0.9.10 (and 0.9.8, 0.9.9 didn't work
# with the 20060816-102024 snapshot)

./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f intalled/xawtv-*.tar.*
mv xawtv-20070625-114215.tar.gz installed/

# ~/src/xawtv/contrib/xawtv48x48.xpm can be used as a desktop icon


# If you ever want to uninstall xawtv, this should do it:
# (and you'll have settings in ~/.xawtv (file) or ~/.tv/ (directory))
cd
su
rm -f /etc/X11/app-defaults/Xawtv /etc/X11/*/app-defaults/MoTV \
 /usr/local/man/es/man5/xawtvrc.5 /usr/local/man/es/man8/v4l-conf.8 \
 /usr/local/man/fr/man1/xawtv.1 /usr/local/man/man5/xawtvrc.5 \
 /usr/local/man/man8/v4l-conf.8
( cd /usr/local/bin ; rm -f dump-mixers fbtv motv ntsc-cc pia propwatch \
 radio record rootv scantv showqt showriff streamer subtitles ttv \
 v4l-conf v4l-info v4lctl webcam xawtv xawtv-remote )
test -d /usr/local/lib/xawtv && rm -r /usr/local/lib/xawtv
( cd /usr/local/man/es/man1 ; rm -f fbtv.1 rootv.1 scantv.1 streamer.1 \
 subtitles.1 ttv.1 v4lctl.1 xawtv-remote.1 xawtv.1 )
( cd /usr/local/man/man1 ; rm -f alevtd.1 dump-mixers.1 fbtv.1 motv.1 \
 mtt.1 ntsc-cc.1 pia.1 propwatch.1 radio.1 record.1 rootv.1 scantv.1 \
 showriff.1 streamer.1 subtitles.1 ttv.1 v4l-info.1 v4lctl.1 webcam.1 \
 xawtv-remote.1 xawtv.1 )
exit
test -d src/xawtv && rm -r src/xawtv
find ~/src -maxdepth 1 -type d -name "xawtv-*" -exec rm -r {} \;
rm -f ~/installed/xawtv-*.tar.*

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>