rate=$(timeout 5 ffprobe "rtmp://localhost/live/rrstudio" 2>&1 | grep framerate | awk '{printf "%d", $2}')
if [ -z "$rate" ]; then
echo "$d: need restart - null rate $rate" >> /var/log/upstart/rrvideo.log
service rrvideo restart
elif [ $rate -lt 25 ]; then
echo "$d: need restart - $rate" >> /var/log/upstart/rrvideo.log
service rrvideo restart
fi
#!/bin/bash
for i in `seq 1 1000`; do
for f in ogg mp4 webm; do
ffmpeg -i $(printf "%04d" $i.avi) -f $f $(printf "%04d" $i.$f)
done
done