Page 1 of 1

Problem with ffmpeg version

Posted: Fri Dec 24, 2010 5:58 pm
by rdbkzn
I'm trying to compile ZM on Gentoo x32. Linux version 2.6.36.2
Standart instruction (from googling) doesn't work :-(
.
I've try ffmpeg with version from distro :
ffmpeg-0.5_p20373
ffmpeg-0.6
ffmpeg-0.6_p25423
ffmpeg-0.6_p25767
and trunk from SVN on 24-12-2010
: ZM don't compile (from distro command and from /dev/hands)
error on emerge ZM on ffmpeg-0.6_p25767 is:

and during the ./configure command ZM says, that FFMPEG libraries are:

libavutil/avutil.h: check for missing prerequisite headers?
libavutil/avutil.h: see the Autoconf documentation
libavutil/avutil.h: section "Present But Cannot Be Compiled"
libavutil/avutil.h: proceeding with the compiler's result
## ------------------------------------- ##
## Report this to support@zoneminder.com ##
## ------------------------------------- ##
libavcodec/avcodec.h
libavformat/avformat.h
libswscale/swscale.h
:-(
after that ZM says:
zm_mpeg.h <multiple> and stops
;;
in case of manual compiling the zm from trunk:

./configure --with-libarch=lib64 --with-mysql=/usr --with-ffmpeg=/mnt/devel/zm/ffmpeg-0.6_p25767 --with-extralibs="-lmp3lame" --with-webdir=/var/www/localhost/htdocs/zm --with-cgidir=/var/www/localhost/htdocs/zm/cgi-bin

zm_ffmpeg.h:33:2: error: #error "No location for avutils.h found"
zm_ffmpeg.h:40:2: error: #error "No location for avcodec.h found"
zm_ffmpeg.h:47:2: error: #error "No location for avformat.h found"
zm_ffmpeg.h:55:2: error: #error "No location for swscale.h found"

zm_mpeg.h errors
:-(
I'm trying to manual compile the ffmpeg (confit whith and whitout x264 support)
ffmpeg-0.4.7.tar.gz
ffmpeg-0.4.8.tar.gz
ffmpeg-0.4.9-pre1.tar.gz
ffmpeg-17177 : libswscale/swscale.h error
ffmpeg-19768 : libswscale/swscale.c error
ffmpeg doesn't compile
:-(
Can (anyone) please tell me the working version of ffmpeg and ZM version

or can your help me fand my mistake...

Thanks. Denis

---
zm configure options are:
./configure --with-libarch=lib64 --with-mysql=/usr --with-ffmpeg=/usr --with-extralibs="-lmp3lame" --with-webdir=/var/www/localhost/htdocs/zm --with-cgidir=/var/www/localhost/htdocs/zm/cgi

Posted: Fri Dec 31, 2010 5:10 pm
by mastertheknife
Please use ffmpeg 0.6 or newer and ZoneMinder from SVN. And last, make sure to add CPPFLAGS="-D__STDC_CONSTANT_MACROS" to your ./configure line.

Re: Problem with ffmpeg version

Posted: Fri Dec 31, 2010 6:50 pm
by jdhar
rdbkzn wrote: libavutil/avutil.h: check for missing prerequisite headers?
libavutil/avutil.h: see the Autoconf documentation
libavutil/avutil.h: section "Present But Cannot Be Compiled"
libavutil/avutil.h: proceeding with the compiler's result
Are these present in your system, and if so, where?

Posted: Tue Jan 04, 2011 9:26 pm
by clipo
Have you had any further luck with this problem as I have the same issue with a
CentOS 5 installation,

I have tried FFMPEG 0.6 from RPMforge repo and from source with no luck, the make command also fails when trying to compile ZM

I have tried it with the latest stable 1.24.2 and the SVN versions of ZM and still little luck.

Posted: Thu Jan 06, 2011 11:40 pm
by punch-card
I finally got my ffmpeg for ZM to work on RHEL 5.4 to work by compiling ver 0.6.x, with
./configure --enable-shared --enable-postproc --enable-swscale --enable-gpl

Then also make sure to remove rpm version, check for lib's with locate command.

I am not sure but what was finally the key, but I could be wrong, was editing /etc/ld.so.conf, and make sure

[root@mdame-gx ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
/usr/local/lib64

then a "ldconfig"

then I configure ZM with the following. Then compiled/installed as normal.

CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/RHEL/ZM --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache --with-extralibs="-L/usr/local/lib -L/usr/lib64 -L/usr/lib64/mysql" ZM_DB_USER=xxxxx ZM_DB_PASS=xxxxxxxx ZM_DB_HOST=localhost --with-ffmpeg=/usr/local/bin --enable-crashtrace=no --enable-mmap=no --enable-debug=no --with-mysql=/usr/bin --with-libarch=lib64

I also had to add this link. /usr/bin/ffmpeg -> /usr/local/bin/ffmpeg

I will say up front, I am a Unix SA, and not a programmer, so I could be all wrong, but it works now and that is all that matters. :)

Re:

Posted: Thu Jun 16, 2011 6:11 pm
by jlpoole
For others with Gentoo who received complaints similar to the original posting of this thread.
punch-card wrote:...
then I configure ZM with the following. Then compiled/installed as normal.

CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/RHEL/ZM --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache --with-extralibs="-L/usr/local/lib -L/usr/lib64 -L/usr/lib64/mysql" ZM_DB_USER=xxxxx ZM_DB_PASS=xxxxxxxx ZM_DB_HOST=localhost --with-ffmpeg=/usr/local/bin --enable-crashtrace=no --enable-mmap=no --enable-debug=no --with-mysql=/usr/bin --with-libarch=lib64
I used a modification of the above and appear to have successfully "make install" zm:

Code: Select all

CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/var/www/localhost/htdocs/zm --with-cgidir=/var/www/localhost/cgi-bin  --with-webuser=apache --with-webgroup=apache --with-extralibs="-L/usr/local/lib -L/usr/lib64 -L/usr/lib64/mysql"  --with-ffmpeg=/usr/local/bin --enable-crashtrace=no --enable-mmap=no --enable-debug=no --with-mysql=/usr/bin --with-libarch=lib64