Skip to content

Instantly share code, notes, and snippets.

@kubrey
Last active February 28, 2020 21:37
Show Gist options
  • Save kubrey/054db8170aa0d9589e039748fdf94a39 to your computer and use it in GitHub Desktop.
Save kubrey/054db8170aa0d9589e039748fdf94a39 to your computer and use it in GitHub Desktop.
Installing motion for RTSP stream
sudo apt-get install autoconf automake build-essential libtool libjpeg8-dev libzip-dev
mkdir programms
cd programms/
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
# ffmpeg may take a long time to compile(more than hour on my raspberry pi)
./configure
make
sudo make install
#default motion does not support RTSP streaming, using Mr-Dave's fork
git clone https://github.com/Mr-Dave/motion.git motion
cd motion
autoreconf -fiv
./configure --with-ffmpeg=$HOME/ffmpeg --with-ffmpeg-headers=$HOME/ffmpeg/include
make
sudo make install
cd /usr/local/etc/motion
#we need to rename motion config file and also we can make backup of default configuration
sudo cp motion-dist.conf motion-backup.conf
sudo mv motion-dist.conf motion.conf
# my motion.conf is here https://gist.github.com/kubrey/01c41ebe7c27f4898b2cf5fa98a46ebd
# edit motion.conf to use your ip cam stream(netcam_url) and setup other config data + set `daemon on` to run in background
# run motion
motion
@Mike59FR
Copy link

with my raspberry pi 3, it doesn't work.

When I submit : ./configure , I've this error :

Detected CPU: ARMv7 Processor rev 4 (v7l)
*** Error in `gcc': double free or corruption (top): 0x013cf5e8 ***
./configure: line 6778: 7080 Aborted ( $COMPILER $CPU_OPTIONS -o $TMPO $TMPC ) 2>&1

OS : uname -a
Linux jeedom 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux

Could you help me please ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment