-
Notifications
You must be signed in to change notification settings - Fork 663
Install On Raspbian
- Read the general Installation page first.
- These instructions apply only to an up-to-date Raspbian, the official Raspberry PI distro.
- All commands require root; use
sudo
before each command or become root usingsudo -i
. - If you want to use the CSI camera module for the Raspberry PI, you need to add
bcm2835-v4l2
to/etc/modules
and reboot.
-
As you probably know,
ffmpeg
is missing from the official Debian repos. Moreover, the variant offered by deb-multimedia.org no longer works with Raspbian after recent updates. You can either compile it yourself (not recommended) or download this prebuilt package and install it:wget https://github.com/ccrisan/motioneye/wiki/precompiled/ffmpeg_3.1.1-1_armhf.deb dpkg -i ffmpeg_3.1.1-1_armhf.deb
note: If you have previously added the deb-multimedia repo to your system and installed their version of ffmpeg, you'll need to remove the repo from your apt sources and run the following commands to remove related libraries:
apt-get remove libavcodec-extra-56 libavformat56 libavresample2 libavutil54
-
Install
motion
:wget https://github.com/ccrisan/motioneye/wiki/precompiled/motion-mrdave-raspbian -O /usr/local/bin/motion chmod +x /usr/local/bin/motion
note 1: The motion version provided by the official repos is too old and not recommended.
note 2: For other versions of
motion
check out Compiling Motion. -
Install the dependencies from the repositories:
apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev
note:
v4l-utils
appears to be preinstalled on Raspbian systems; if it isn't, please install it -
Install
motioneye
, which will automatically pull Python dependencies (tornado
,jinja2
,pillow
andpycurl
):pip install motioneye
-
Prepare the configuration directory:
mkdir -p /etc/motioneye cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
-
Prepare the media directory:
mkdir -p /var/lib/motioneye
-
Add an init script, configure it to run at startup and start the
motionEye
server:cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service systemctl daemon-reload systemctl enable motioneye systemctl start motioneye
-
To upgrade to the newest version of motionEye, just issue:
pip install motioneye --upgrade systemctl restart motioneye
home | installation | faq