Bei mir startet noad nicht. Installiert hab ich das ganze nach dieser Anleitung. Gestarte soll das ganze aus der reccmds.conf mit folgenden Befehlen werden:
ZitatAlles anzeigen
vdr:/usr/local/bin # cat /etc/vdr/reccmds.conf
Starte noad : /usr/local/bin/noad.sh -start
Zeige Schnittliste : /usr/local/bin/noad.sh -view
Prozesse : /usr/local/bin/noad.sh -count
Beende noad (killpid) : /usr/local/bin/noad.sh -killpid
Beende noad (killall)? : /usr/local/bin/noad.sh -killall
Lösche Schnittmarke : /usr/local/bin/noad.sh -marks
Lösche pid : /usr/local/bin/noad.sh -pid
Loeschen aller Schnittmarken : /usr/local/bin/noad.sh -marks.vdr
Loeschen aller Pids : /usr/local/bin/noad.sh -noad.pid
Starte noad, alle Aufnahmen : /usr/local/bin/noad.sh -batchvdr
Das Script noad.sh sieht dementsprechend so aus:
ZitatAlles anzeigen
#!/bin/sh
#
# noad.sh
#
# source: noad
#
# add this lines to your reccmds.conf:
# folgende zeilen in die reccmds.conf eintragen:
#
# Run noad : /path_to_this_script/noad.sh -start
# Run noad, all recordings (batch)? : /path_to_this_script/noad.sh -batch
# In prozess : /path_to_this_script/noad.sh -count
# Stop noad (killpid) : /path_to_this_script/noad.sh -killpid
# Stop noad (killall)? : /path_to_this_script/noad.sh -killall
# Remove marks : /path_to_this_script/noad.sh -rmmarks
# Remove all marks? : /path_to_this_script/noad.sh -rmallmarksRun
# CONFIG START
NOADOPTS="nice --ac3 --overlap --jumplogo --comments --OSD --statisticfile=/var/log/vdr/noad.log"
VDR_VIDEO="/video0"
# CONFIG END
which noad >/dev/null 2>&1 { echo noad $"not found" ... ; exit 1 ; }
case $1 in
-start)
echo $"Recording" ...
echo
echo "$2"
echo
if [ -s "${PIDFILE:=$2/noad.pid}" ] ; then
read PID < "$PIDFILE"
if ps -p $PID >/dev/null 2>&1 ; then
echo $"Noad process already active" "(pid: $PID)" ...
exit 0
fi
fi
# screen -dm sh -c "noad $NOADOPTS \"$2\""
echo $"Noad startet" ...
;;
# -batch)
# screen -dm bash -c " \
# while read i ; do \
# noad $NOADOPTS \"\$i\" &
# wait \$! ; \
# done < <(find "$VDR_VIDEO" -follow -name "*.rec")"
# ;;
-count)
echo $"Noad processes" $(pidof noad | wc -w | tr -d ' ') ...
;;
-killpid)
echo $"Recording" ...
echo
echo "$2"
echo
if [ -s "${PIDFILE:=$2/noad.pid}" ] ; then
read PID < "$PIDFILE"
if ps -p $PID >/dev/null 2>&1 ; then
kill $PID
echo $"Noad stopped" "(pid: $PID)" ...
exit 0
fi
rm -f "$PIDFILE"
fi
echo $"Noad is not active" ...
;;
-killall)
pidof noad | xargs -r kill -9
;;
-rmmarks)
rm -f "$2/marks.vdr"
;;
-rmallmarks)
find "$VDR_VIDEO" -follow -type f -name marks.vdr -print0 2>/dev/null | xargs -r0 rm
;;
*)
echo "unrecognized option: $1"
exit 1
;;
esac
exit $?
und das Verzeichnis /usr/local/bin beinhaltet folgende Dateien samt Berechtigungen:
ZitatAlles anzeigen
vdr:/usr/local/bin # ls -l
insgesamt 4160
-rwxr-xr-x 1 root root 480 2007-01-02 23:09 allnewnoad
-rwxr-xr-x 1 root root 537 2007-01-02 23:09 allnoad
-rwxr-xr-x 1 root root 341 2007-01-02 23:09 allnoadnice
-rwxr-xr-x 1 root root 552 2007-01-02 23:09 allnoaduncut
-rwxr-xr-x 1 root root 257 2007-01-02 23:09 clearlogos
-rwxrwxrwx 1 root root 420553 2007-01-02 23:09 noad
-rwxr-xr-x 1 root root 1084 2007-01-02 23:09 noadcall.sh
-rwxr-xr-x 1 root root 629 2007-01-02 23:09 noadifnew
-rwxr-xr-x 1 root root 2056 2007-01-02 23:00 noad.sh
-rwxr-xr-x 1 root root 152757 2006-12-23 18:25 nvram-wakeup
-rwxr-xr-x 1 root root 1854 2004-04-20 16:33 readme
-rwxr-xr-x 1 root root 252 2004-04-16 17:45 reccmds.conf
-rwxr-xr-x 1 root root 854 2006-12-31 11:30 runvdr
-rwxr-xr-x 1 root root 10420 2006-12-02 14:54 showpic
-rwxr-xr-x 1 root root 13268 2006-12-02 14:54 showtext
-rwxr-xr-x 1 root root 5470 2007-01-02 23:09 stat2html
-rwxr-xr-x 1 root root 1043 2007-01-02 23:09 statupd
-rwxr-xr-x 1 root root 3590314 2006-12-02 14:58 vdr
-rwxr-xr-x 1 root root 2694 2006-12-23 21:38 vdrshutdown
Wenn ich dann am VDR für eine Aufnahme die Werbeerkennung starte meldet er mir:
"noad not found..."
Kann mir jemand helfen?