-
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_2.8.3.git325b593-1_armhf.deb dpkg -i ffmpeg_2.8.3.git325b593-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 reinstall the official version of some libav libraries:
apt-get remove libavcodec-extra-56 libavformat56 libavresample2 libavutil54 apt-get install libavutil54 libavformat56 libswscale3
-
Install
motion
:apt-get install motion
note 1:
v4l-utils
appears to be preinstalled on Raspbian systems.note 2: A prebuilt version of Mr Dave's motion for Raspbian can be downloaded from here. Just download it and copy it to
/usr/local/bin/motion
.note 3: For other versions of
motion
check out Compiling Motion instead of installing it usingapt-get
. Also make sure to configure the build using--with-ffmpeg=/usr/lib/arm-linux-gnueabihf --with-ffmpeg-headers=/usr
. -
Install the dependencies from the repositories:
apt-get install python-pip python-dev libssl-dev libcurl4-openssl-dev libjpeg-dev
-
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