2003-06-22 12:48:17 UTC
OK, here is a simple script to convert your .xawtv file to an mplayer "channels=" line:
----------------------------------------------------------
#! /bin/bash
# Converts a .xawtv file to an mplayer chanlist
# usage: xawtv2chanlist <.xawtvfile>
perl -pwe 's/^\[([a-zA-Z0-9 .-]+)\].*\n/$1/s' $1 \
| grep 'channel *= *[A-Z0-9]*$' \
| perl -pwe 's/^(.+)channel *= *([A-Z0-9]+)\n/$2-$1,/' \
| perl -pwe 's/ /_/g' \
| perl -pwe 's/,$//'
----------------------------------------------------------
You can insert its output into ~/.mplayer/config, e.g.:
tv=width=720:height=576:driver=v4l:chanlist=europe-west:channels=E7-ORF1,E11-ORF2,E5-Wohnpark-TV,E5-WPTV,46-ATV,44-Sat1,48-RTL
or add it to the command line.