#!/bin/sh
# Version: 0.2.0
# Author: Dimitrios Dimitrakos mail@dimitrios.de
# $Id: grab.sh,v 1.3 2004/12/29 12:36:19 dimi Exp $

vco_user=`id -n -u`
homedir=`cat /etc/passwd|grep "^${vco_user}:"|cut -f6 -d ':'`
. $homedir/.vdrconvert/vdrconvert.env
[ -r $homedir/.vdrconvert/vdr2dvd.env ] && . $homedir/.vdrconvert/vdr2dvd.env

[ "$DVDNORM" = "pal" ] && RES="720 576" || RES="704 480"
printf "GRAB '%s/%s' %s %d %d %d" "${2}" "${1}" "pnm" 100 $RES |xargs "$SVDRPSEND" >/tmp/vdrgrab 2>&1 &
logger "`cat /tmp/vdrgrab`"
