-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
8,102 additions
and
14,414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
*.log | ||
.svn/ | ||
*.o | ||
autom4te.cache | ||
aclocal.m4 | ||
.depend | ||
motion | ||
config.h | ||
config.status | ||
config.h.in | ||
Makefile | ||
configure | ||
motion-dist.conf | ||
motion.init-Debian | ||
motion.init-Fedora | ||
motion.init-FreeBSD.sh | ||
motion.spec | ||
thread1.conf | ||
thread2.conf | ||
thread3.conf | ||
thread4.conf | ||
thread1-dist.conf | ||
thread2-dist.conf | ||
thread3-dist.conf | ||
thread4-dist.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,46 @@ | ||
NOTE: Versions come, versions go, packages change, etc. These instructions are intended as a starting point | ||
and may need modification by the time you read this. | ||
|
||
********************************** | ||
*** DEBIAN BASED SYSTEMS *** | ||
|
||
Required Packages: | ||
sudo apt-get install autoconf automake build-essential libtool libjpeg8-dev libzip-dev | ||
|
||
Obtain source code (via git) | ||
sudo apt-get install git | ||
cd ~ | ||
git clone {https://github.com/your favorite fork} | ||
|
||
To rebuild the motion configure file use | ||
autoreconf | ||
|
||
Optional: With FFMPEG support: | ||
Build FFMPEG via their instructions | ||
Configure with manually built ffmpeg which currently installs to ~/bin and ~/ffmpeg_build | ||
Basic | ||
./configure --with-ffmpeg=$HOME/ffmpeg_build --with-ffmpeg-headers=$HOME/ffmpeg_build/include | ||
|
||
With extra libraries for ffmpeg IMPORTANT NOTE: Your libraries will vary depending upon your build of FFMPEG | ||
./configure --with-ffmpeg=$HOME/ffmpeg_build --with-ffmpeg-headers=$HOME/ffmpeg_build/include --with-ffmpeg-libs=" -lavformat -lswscale -lavcodec -lavutil -lfdk-aac -lswresample -lm -lopus -lz -lva -lvpx -lx264 -lmp3lame -lbz2 -ldl -lvorbisenc -lvorbis -ltheoraenc -ltheoradec " | ||
|
||
With extra libraries for ffmpeg and install to ~/motion_build | ||
./configure --prefix=$HOME/motion_build --with-ffmpeg=$HOME/ffmpeg_build --with-ffmpeg-headers=$HOME/ffmpeg_build/include --with-ffmpeg-libs=" -lavformat -lswscale -lavcodec -lavutil -lfdk-aac -lswresample -lm -lopus -lz -lva -lvpx -lx264 -lmp3lame -lbz2 -ldl -lvorbisenc -lvorbis -ltheoraenc -ltheoradec " | ||
|
||
With LIBAV APT versions of libraries | ||
sudo apt-get install libavformat-dev libavcodec-dev libavutil-dev libav-tools libswscale-dev | ||
|
||
Without any LIBAV/FFMPEG support or the installed version of libavcodec/libavformat | ||
The following is a brief overview of the building and installing instructions. | ||
|
||
For full instructions on how to build and install Motion, see the | ||
motion_guide.html that is distributed with this source code. | ||
|
||
The building instructions vary based upon the base system and the desired options. | ||
For most installs, it will be desired to include either ffmpeg or libav and these will | ||
have associated dependencies which dictate the configuration options. | ||
|
||
Build Packages: | ||
autoconf | ||
automake | ||
pkgconf | ||
libtool | ||
libjpeg8-dev | ||
build-essential | ||
libzip-dev | ||
|
||
The option to include FFMPEG or Libav functionality in motion is a choice of one OR the other not both. | ||
The packages and library names change frequently and vary across base operating systems. If ffmpeg or | ||
libav are built and installed from source the custom motion configuration options will usually be needed. | ||
|
||
FFMPEG Packages | ||
ffmpeg | ||
libavformat-dev | ||
libavcodec-dev | ||
libavutil-dev | ||
libswscale-dev | ||
|
||
Libav Packages | ||
libavformat-dev | ||
libavcodec-dev | ||
libavutil-dev | ||
libav-tools | ||
libswscale-dev | ||
|
||
Once required packages are installed, execute: | ||
autoreconf -fiv | ||
./configure | ||
|
||
Sample PI configuration with LIBAV | ||
./configure --with-ffmpeg=/usr/lib/arm-linux-gnueabihf --with-ffmpeg-headers=/usr/include | ||
|
||
|
||
Once configured type: | ||
make | ||
make install | ||
|
||
***************************** | ||
*** OpenSUSE SYSTEM *** | ||
|
||
sudo zypper install autoconf automake libtool git | ||
sudo zypper install --type pattern devel_basis | ||
sudo zypper install libjpeg8-devel | ||
sudo zypper install -t pattern devel_C_C++ | ||
|
||
Optional: FFmpeg files | ||
sudo zypper ar -f -n packman-essentials http://packman.inode.at/suse/openSUSE_13.1/Essentials/ packman-essentials | ||
sudo zypper ar -f -n packman-multimedia http://packman.inode.at/suse/openSUSE_13.1/Multimedia/ packman-multimedia | ||
sudo zypper install libffmpeg-devel | ||
|
||
./configure | ||
make | ||
make install | ||
Sample custom configuration options: | ||
--prefix : Specify the install location for the motion package | ||
--with-ffmpeg=[dir] : Specify the location in which ffmpeg/libav is installed. | ||
|
||
************************* |
Oops, something went wrong.