mirror of
https://github.com/Motion-Project/motion.git
synced 2026-01-27 16:18:33 -05:00
59 lines
1.8 KiB
Plaintext
59 lines
1.8 KiB
Plaintext
The following is a brief overview of the building and installing instructions.
|
|
|
|
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(apt):
|
|
autoconf
|
|
automake
|
|
libtool
|
|
libjpeg8-dev
|
|
build-essential
|
|
libzip-dev
|
|
|
|
Build Packages(zypper)
|
|
autoconf
|
|
automake
|
|
libtool
|
|
libjpeg8-devel
|
|
-t pattern devel_basis
|
|
-t pattern devel_C_C++
|
|
|
|
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 -f
|
|
./configure
|
|
make
|
|
make install
|
|
|
|
Sample custom configuration options:
|
|
--prefix : Specify the install location for the motion package
|
|
--with-ffmpeg : Specify the location in which ffmpeg/libav is installed.
|
|
--with-ffmpeg-headers : Specify the location for the ffmpeg/libav headers
|
|
--with-ffmpeg-libs : Specify the additional libraries for ffmpeg/libav
|
|
|
|
Sample additional libs that MAY be needed for ffmpeg/libav
|
|
-lavformat -lswscale -lavcodec -lavutil -lfdk-aac -lswresample -lm
|
|
-lopus -lz -lva -lvpx -lx264 -lmp3lame -lbz2 -ldl -lvorbisenc
|
|
-lvorbis -ltheoraenc -ltheoradec
|
|
|
|
|