Rwrapper.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
(M) |
|||
| Zeile 1: | Zeile 1: | ||
| + | <pre> | ||
#!/bin/sh | #!/bin/sh | ||
# | # | ||
| Zeile 4: | Zeile 5: | ||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||
| − | |||
| − | |||
case "${1}" in | case "${1}" in | ||
| Zeile 16: | Zeile 15: | ||
after) | after) | ||
echo "After recording ${2}" | echo "After recording ${2}" | ||
| − | test -x "/usr/bin/noad" && { | + | test -x "/usr/local/bin/noad" && { |
| − | /usr/bin/noad | + | /usr/local/bin/noad nice --background \ |
| + | --jumplogo \ | ||
| + | --ac3 \ | ||
| + | --overlap \ | ||
| + | --OSD \ | ||
| + | --statisticfile=/var/log/noadstat "${@}" | ||
} | } | ||
;; | ;; | ||
| Zeile 27: | Zeile 31: | ||
;; | ;; | ||
esac | esac | ||
| + | </pre> | ||
Version vom 30. Oktober 2004, 13:21 Uhr
#!/bin/sh
#
# an example script for use with the '-r' option could look like this:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
case "${1}" in
before)
echo "Before recording ${2}"
test -x "/etc/vdr/scripts/clipinc/vdrrecinfo.pl" && {
/etc/vdr/scripts/clipinc/vdrrecinfo.pl "${@}"
}
;;
after)
echo "After recording ${2}"
test -x "/usr/local/bin/noad" && {
/usr/local/bin/noad nice --background \
--jumplogo \
--ac3 \
--overlap \
--OSD \
--statisticfile=/var/log/noadstat "${@}"
}
;;
edited)
echo "Edited recording ${2}"
;;
*)
echo "ERROR: unknown state: ${2}"
;;
esac