Do you realize you misspelled APPID?
Quote:
Originally Posted by fw12
APPIP=`pidof ffmpeg2theora`
if test $APPID -gt 0
|
Anyway, this script seems to work:
Code:
#!/bin/sh
APPID=`pidof ffmpeg2theora`
if [ "$APPID" != "" ]
then
kill "$APPID"
fi
if [ "$?" -ne "0" ]
then
ffmpeg2theora /dev/video0 -audiobitrate 128 --optimize ...
fi