#!/bin/sh


case "$1" in
	before)
		;;
	after)
		/usr/bin/noad -ajo --statisticfile=/video/noad.stat after $2
		printf "%s\n" $2 >> /var/spool/vdrconvert/vdr2mpg
		;;
	edited)
		;;
	*)
	
	echo "ERROR: unknown state: $1"
		;;
esac
