After having many troubles on FC11 x64 with libav* things and ffmpeg, I've reinstalled my pc with a fc11 i386. I've made the installation that way: (i'm a linux newbie, so don't laugh loud if I'm wrong a lot)
A brand new linux install (Fedora Core 11 i386) on E5200 with 3W9650 4x500GB/RAID10, 4GB RAM, Kodicom 8800 clone, 8 channel, 8x conexant (brooktree) 878A, 2 active cameras.
Added rpmfusion and livna repos
echo options i2c-algo-bit bit_test=1 > /etc/modprobe.d/bttv.conf
echo options bttv gbuffers=16 card=77,102,102,102,102,102,102,102,102 radio=0,0,0,0,0,0,0,0,0 tuner=4,4,4,4,4,4,4,4,4 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0 >> /etc/modprobe.d/bttv.conf
yum install faad2 faad2-devel faad2-libs xvidcore xvidcore-devel faac faac-devel libfaac0 libfaad2 lame lame-devel libvorbis libvorbis-devel libtheora libtheora-devel libavcodec52 libavdevice52 libavfilter1 libavformat52 libavutil50 libpostproc51 perl-PHP-Serialization yasm
yum remove ccache
yum install nasm
git clone git://git.videolan.org/x264.git
cd x264/
./configure
make
make install
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-shared --enable-libxvid --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-x11grab --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264
make
make install
After that i had problem with ffmpeg complaining of the versions of libav* at /usr/lib . So, as a M$DOS user, i've copied the libraries (.so) from the original ffmpeg/*lib*/*.so* to /usr/lib , overwriting, and ffmpeg stopped complaining and it's working.
then:
wget http://www2.zoneminder.com/downloads/Zo ... 4.2.tar.gz
tar -zxvf ZoneMinder-1.24.2.tar.gz
cd ZoneMinder-1.24.2
Add zmdbname with zmdbuser and zmdbpass in mysql;
./configure --with-webdir=/var/www --with-cgidir=/var/cgi-bin --with-webuser=apache --with-webgroup=apache --with-mysql ZM_DB_HOST=localhost ZM_DB_NAME=zmdbname ZM_DB_USER=zmdbuser ZM_DB_PASS=zmdbpass --with-extralibs="-L/usr/lib -L/usr/lib/mysql" ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local/bin
make
make install
mysql zmdbname -u root -p <db>> /etc/sysctl.conf
echo kernel.shmmax = 4194304000 >> /etc/sysctl.conf
sysctl -p
shutdonw -r now
I'm sure that ffmpeg works, because it generates an event in any format. I can view it directly in .ASF, or download it and view it in other formats.
The only problem for now is to view the live streams from the cameras, not jpeg, neither mpeg are working. The events aren't showing as video (or images) too. I have added all AddTypes for these extensions in the httpd.con file. There are no errors in the log files. No errors in /tmp/zm*.log ; .../httpd/error.log. I've tried the last Firefox and IE8. I'm sure it's something really simple that makes me crazy...