Motion - Support Question 2015x 01x 23x 222142

Install Motion on Centos6

Question

I try to use the following procedure in order to installa Motion on Centos:

"RPM for Fedora on x86/x86-64 - Available on RPM Fusion, build without DB support. Motion and all its dependencies (ffmpeg...) are available on the RPM Fusion repository. Configure the repository and Install motion with yum install motion."

But I receive: Motion isn't available.

How can I install Motion with ffmpeg e db support?

"yum install motion
Plugin abilitati:fastestmirror, security
Impostazione processo di installazione
Loading mirror speeds from cached hostfile
 * base: centos.muzzy.it
 * epel: mirror.fraunhofer.de
 * extras: centos.muzzy.it
 * rpmforge: archive.cs.uu.nl
 * rpmfusion-free-updates: download1.rpmfusion.org
 * rpmfusion-nonfree-updates: download1.rpmfusion.org
 * updates: centos.muzzy.it
Nessun pacchetto motion disponibile.
Errore: Niente da fare"

Environment

Motion version: 3.2.12
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS:  
-- AndreaFranchi - 23 Jan 2015

Answer

The easies way - is to compile ffmpeg from sources and then compile motion to use your ffmpeg.

Like this:
cd /home/user
git clone https://github.com/FFmpeg/FFmpeg.git ffmpeg
cd ffmpeg
./configure --prefix=/home/user/ffmpeg/out
make

Then go to your motion source dir and configure this way:
./configure --with-ffmpeg=/home/user/ffmpeg/out

If you get linking error, try editing motion's Makefile and put there extra library flags, like:
-lswresample -lrt -llzma -lbz2 etc...

-- TosiaraT - 12 Apr 2015
Topic revision: r2 - 12 Apr 2015, TosiaraT
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.