Installscript-recording-cmds
Aus VDR Wiki
(Unterschied zwischen Versionen)
(→Beschreibung) |
(→{after,before}-noad.run) |
||
| Zeile 15: | Zeile 15: | ||
=={after,before}-noad.run== | =={after,before}-noad.run== | ||
| − | |||
| − | |||
| − | |||
| − | |||
{{Box Datei| ../admin/recording-cmds/{after,before}-noad.run | | {{Box Datei| ../admin/recording-cmds/{after,before}-noad.run | | ||
<pre> | <pre> | ||
| Zeile 25: | Zeile 21: | ||
# example script (../../scripts/rwrapper.sh -> $0) | # example script (../../scripts/rwrapper.sh -> $0) | ||
| − | START="0" | + | START="0" # 0 = inactiv / 1 = activ / 2 = online mode |
| − | ENTRY=$"0,2:Noad (0=off,1=on,2=online mode)" | + | ENTRY=$"0,2:Noad (0=off,1=on,2=online mode)" # eintrag für das admin-plugin |
| − | CHECK=$(which noad) | + | CHECK=$(which noad) # zum test -> ob vorhanden... |
# set the online-mode here | # set the online-mode here | ||
Version vom 22. Oktober 2005, 18:18 Uhr
Beschreibung
In ../admin/recording-cmds befinden sich Scripte, welche vor / nach / editieren einer Aufnahme ausgeführt werden.
Format:
after-<NAME>.run before-<NAME>.run edited-<NAME>.run
Im Beispiel wird der Werberfilter noad aufgerufen.
Das ganze kann im admin-plugin eingestellt werden. (0 = inactiv, 1 = activ, 2 = online mode)
{after,before}-noad.run
#!/bin/sh
#
# example script (../../scripts/rwrapper.sh -> $0)
START="0" # 0 = inactiv / 1 = activ / 2 = online mode
ENTRY=$"0,2:Noad (0=off,1=on,2=online mode)" # eintrag für das admin-plugin
CHECK=$(which noad) # zum test -> ob vorhanden...
# set the online-mode here
# 1 means online for live-recording only
# 2 means online for every recording
ONLINEMODE="--online=1"
# set additional args for every call here here
ADDOPTS="--ac3 --overlap --jumplogo --comments --statisticfile=/var/log/vdr/noad.log"
case $0 in
*before-*)
case $START in
2) noad $1 "$2" $ONLINEMODE $ADDOPTS
;;
esac
;;
*after-*)
case $START in
1) noad $1 "$2" $ADDOPTS
;;
2) noad $1 "$2" $ONLINEMODE $ADDOPTS
;;
esac
;;
esac