ffmpeg Installation Woes - How I fixed them
Posted: Mon Jul 25, 2005 11:58 am
Talk about a long weekend trying to figure out what was going on with my installation.
I've got FC3, customized apache dirs, php, etc. (not loaded from RPM)
I have seen many postings for errors regarding FFMPEG and the version that people are using. I tried all versions this past weekend and no luck, until this morning when I had time to sleep on it.
I downloaded the ffmpeg-0.4.9-pre1 source. I knew that I must have been doing something wrong, but not sure.
I wasn't doing anything wrong with the compile or install. I found out that FFMPEG wasn't installing everything like it should have been.
First the configure:
What the make install leaves out are the libavcodec.a and libavformat.a lib files. At least that is what my experience was with recompiling and re-installing MANY times.
To fix this, I just copied them to the appropriate directory. While still in the ffmpeg source directory type:
I use /usr/local/lib because by default FFMPEG gets installed there.
Make sure that you DO NOT have the libavcodec.a and libavformat.a files in the /usr/lib directory, or your Zoneminder compile will fail.
My /etc/ld.so.conf file looks like the following:
type:
Now configure Zoneminder, make, make install. Don't forget to follow the upgrade procedure as outlined in the documentation.
My configure string for Zoneminder
After I copied those lib files to /usr/local/lib and ldconfig'd, my zoneminder compiled with ease. I was expecting an error this morning, but it went smooth.
Hopefully this helps you.
-Geo
I've got FC3, customized apache dirs, php, etc. (not loaded from RPM)
I have seen many postings for errors regarding FFMPEG and the version that people are using. I tried all versions this past weekend and no luck, until this morning when I had time to sleep on it.
I downloaded the ffmpeg-0.4.9-pre1 source. I knew that I must have been doing something wrong, but not sure.
I wasn't doing anything wrong with the compile or install. I found out that FFMPEG wasn't installing everything like it should have been.
First the configure:
Code: Select all
./configure --enable-shared --enable-mp3lame
make
make install
To fix this, I just copied them to the appropriate directory. While still in the ffmpeg source directory type:
Code: Select all
cp libavcodec/libavcodec.a /usr/local/lib
cp libavformat/libavformat.a /usr/local/lib
Make sure that you DO NOT have the libavcodec.a and libavformat.a files in the /usr/lib directory, or your Zoneminder compile will fail.
My /etc/ld.so.conf file looks like the following:
Code: Select all
include ld.so.conf.d/*.conf
/usr/local/lib
/opt/mysql/lib/mysql
/opt/php/lib/php
/usr/X11R6/lib/nvidia-graphics-1.0-4496
/lib/security
Code: Select all
ldconfig
My configure string for Zoneminder
Code: Select all
./configure --with-mysql=/opt/mysql \
--with-webdir=/path/to/webdir \
--with-cgidir=/path/to/cgi-dir \
--with-webuser=nobody --with-webgroup=nobody \
--with-ffmpeg=/usr/local/include/ffmpeg --with-lame=/usr/include/lame
Hopefully this helps you.
-Geo