ᚴᛟ, ᚹᛇ ᛞᛟᚾ ᚻ ᛇ ᚴᛁᚠᛁ ᚾᛚ, ᛒᛏ ᛄᛇᚾ ᚾᛞ ᛁ ᚹᛟᚾᛏᛞ ᛏ ᚹᛟ ᛇ ᛚᚴ ᛈᚴᛟᛞ Battlestar ᚷᛚᚳᛏᚳ. ᛇ ᛟ ᚱᛞ ᛟᚾ ᚠᚱᛁᛞᛖ, ᚴᛟ ᛁ ᚹᛞ ᚷᛏ ᛟᚾᛚᛁᚾ ᚾᛞ ᛞᚾᛚᛟᛞ ᛗ ᛟᚾ ᚴᛏᛞᛖ ᚴᚾᛞᛇ. ᚹᛇᛞ ᚾ ᚹᛟ ᛗ ᛟᚾ ᛖ ᛚᛈᛏᚫᛈ. ᚾᚦᛝ ᚱᛟᛝ ᚹ ᛏ, ᚾᚴᚴᚱᛚᛇ, ᛒᛏ ᚴᛗᛏᛁᛗ ᛖ ᛚᛏᛚ ᛟᚳᚹᛞ ᚾᛞ ᛇ ᚴᚾᛞ ᚹᚾᛏ ᚷᚱᛖᛏ.
ᚾ ᛁ ᚠᚾᛞ pyTivo[1].
pyTivo ᛖ ᛗᛇᛞᛇ ᚴ ᚠᚱ ᚣᚱ ᛏᛟ ᛏ transcodes ᛟᚾ ᛇ ᚠᛚᛁ ᚣᚢᛝ ffmpeg. ᚻᚹᛏ ᛞ ᛏ mean? ᛏ ᛗᛇᚾ ᛏ ᛏ ᚳᚾ ᛏᚱᚾᚴᛚᛖᛏ ᛟᛚᛗᛟᚴᛏ ᚾᛇ ᚳᛁᚾᛞ ᛞᛇᛟ ᚠᛁᛚ ᚣᚢ ᚳᚾ ᚠᛁᚾᛞ ᚾᛏ ᛖ ᚠᛟᚱᛗᛏ ᛏ ᛏᛟ ᚳᚾ ᚾᛞᚴᛏᚾᛞ ᚾᛞ ᛈᛚᛖ.
ᛏᚴ ᛞᛞ ᚴᛗᛈᛚ ᛏ ᚴᛏᛈ, ᚾᛞ ᚹᚾᚴ ᛏᚴ ᚱᚾᛝ ᛏ ᛄᚴᛏ ᛟ ᛖ ᛗᛇᛞᛇ ᚱ ᛟᚾ ᚣᚱ ᛏᛟ ( Tivos ... ᚹᛇ ᚻ 2 ᚾᛞ ᛖ ᛒᛟᚦ ᛟ ᛇ server). ᚾ ᚣᚢ ᛄᚴᛏ ᛏᚱᚾᚴᚠ ᛇ ᚠᛁᛚ ᚠ ᚣᚢ ᚹ ᛏᚱᚾᚴᚠᛝ ᚾᛇ ᛟ.
ᛏᚴ ᛟᚴᛗ.
---
ᛁ ᛞᛞ ᚻ ᚹᚾ ᚢ ᚾ ᛚᚾᚳᚴ, ᛟ (I ᛞᛟᚾ ᚾᛟ ᚠ ᛏ ᛈᛚᛁ ᚾ Windows). ᚻᚹᛏ ᚻᛈᚾ ᛏ ᛇ ffmpeg ᛈᚱᛟᚴᚴ ᛞᚾ ᚳᚴᛏ ᚳᛚᛇᚾᛚᛇ ᚾᛞ ᚣᚢᚱ ᛚᚠᛏ ᚹ ᛖ ᚫᛗᛒᛇ ᛈᚱᛟᚴᚴ ᚻᚹ ᛇᚠᚳᛏᛚᛇ ᛒᛚᚫᚳᚴ pyTivo ᚾᛞ ᚳᛇᛈᚴ ᚣᚢ ᚠᚱᛗ ᛏᚱᚾᚴᚠᛝ ᚾᛇ ᚠᛁᛚ. ᚾ ᛟᚱᛞ ᛏ ᚠᚳᚴ ᛏ ᛁ ᚱᛟᛏ ᛖ ᚳᚹᚳ ᚴᚳᚱᛈᛏ ᛏ ᚳ ᚠᚱ ᛏ ᚾᛞ ᚠᚳᚴ ᛏ.
ᚻᚱ ᛇ ᚴᚳᚱᛈᛏ ... ᛁ ᛄᚴᛏ ᛈᛏ ᛏ ᚾ /home/mckay/bin ᚾᛞ ᚳᛟᛚᛞ ᛏ check_pytivo.sh:
BIN=/home/mckay/lib/wmcbrine/pyTivo.py PIDFILE=/tmp/pytivo.pid LOGFILE=/tmp/pytivo.log start() { ᚳᛟ "Starting $BIN" >> $LOGFILE ᛈᛁᚦᚫᚾ $BIN & ᚳᛟ $! > $PIDFILE } kill_daemon() { ᚳᛟ "Killing ᛈᚱᛟᚴᚴ $(ᚳᛏ $PIDFILE)" >> $LOGFILE ᚳᛚ -9 $(ᚳᛏ $PIDFILE) } restart() { kill_daemon ᚴᛏᚫᚱᛏ } ᚠ [ ! -f $PIDFILE ]; ᚾ ᚳᛟ "No pid ᚠᛁᛚ ᚠᚾᛞ. ᚴᛏᚫᚱᛏᛝ ... " >> $LOGFILE ᚴᛏᚫᚱᛏ ᛚᚴ ᚠ $(ps -Cffmpeg -ostat | grep -q Z); ᚾ ᚳᛟ "Found!" >> $LOGFILE ᚱᛇᚴᛏᚫᚱᛏ ᚠᛇ ᚠᛇ
ᚾ ```crontab -e``` ᚾᛞ ᛞᛞ ᛇ ᚠᚫᛚᛟᛝ:
ᛗᛁ pyTivo ᚾᚴᛏᛚᛖᚾ ᚻ ᛒᚾ ᚱᚾᛝ ᛈᚱᚫᛒᛚᛗ ᚠᚱᛇ ᚠᚱ ᛖ ᚠᚣᚢ ᚹᛇᚳᚴ ᚾ. => http://pytivo.armooo.net [1] pyTivo