This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:internetofthings:shinobi [2018/01/06 15:45] – [Install] scipio | projects:internetofthings:shinobi [2018/04/03 13:19] (current) – [Motion destection] scipio | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| Install ffmpeg | Install ffmpeg | ||
| < | < | ||
| - | sudo add-apt-repository ppa: | + | sudo apt-get install -y software-properties-common |
| + | sudo add-apt-repository | ||
| sudo apt update -y && sudo apt install ffmpeg libav-tools x264 x265 -y | sudo apt update -y && sudo apt install ffmpeg libav-tools x264 x265 -y | ||
| </ | </ | ||
| Line 14: | Line 15: | ||
| Clone git | Clone git | ||
| < | < | ||
| + | sudo apt install -y git | ||
| git clone -b dev --depth 1 https:// | git clone -b dev --depth 1 https:// | ||
| cd shinobi | cd shinobi | ||
| npm i | npm i | ||
| + | |||
| + | # install static ffmpeg | ||
| + | npm install ffmpeg-static | ||
| </ | </ | ||
| Line 24: | Line 29: | ||
| mysql < sql/ | mysql < sql/ | ||
| mysql ccio < sql/ | mysql ccio < sql/ | ||
| - | mysql ccio < sql/ | + | # mysql ccio < sql/ |
| </ | </ | ||
| Line 36: | Line 41: | ||
| < | < | ||
| pm2 start camera.js | pm2 start camera.js | ||
| - | pm2 start cron.js | + | # pm2 start cron.js |
| </ | </ | ||
| Line 56: | Line 61: | ||
| * stream type: MJPEG | * stream type: MJPEG | ||
| - | ===== Motion | + | ===== Motion |
| < | < | ||