I have another open thread about a Tenvis IP camera & acquiring images via http; in the mean time I thought I'd move back to an ffmpeg install issue I had, and my own investigation seems to be going nowhere...
I've installed Zoneminder 1.26.5 from source on Centos 6.5. I've downloaded ffmpeg from git (per the Wiki instructions), and the new cmake options are a bit confusing to me.
I've recompiled Zoneminder using the following command:
cmake -C zm_conf.cmake -DZM_SSL_LIB=openssl .
make
make install
When I try to use ffmpeg as the source type I get "You must have ffmpeg libraries installed to use ffmpeg cameras for monitor 2" messages in the log.
Options/Images has the following enabled:
opt_ffmpeg (enabled)
path_ffmpeg /usr/local/bin/ffmpeg
I'm thinking its a configure/make issue where I have not compiled against the correct library set. Can anyone shed light on what I should be doing on Red Hat variant Linux to get make to install against the ffmpeg libraries installed from git?
ffmpeg support - ZM compiled from source (SOLVED)
ffmpeg support - ZM compiled from source (SOLVED)
Last edited by nugget on Tue Mar 25, 2014 6:02 am, edited 1 time in total.
Re: ffmpeg support - ZM compiled from source.
Are you sure that the path for the compiled ffmpeg package is under /usr/local/bin/ffmpeg ? I would issue a search using:
find / -name ffmpeg to see where the compilation/make throw the file...sometimes is under /usr/local/sbin.
Hope it helps,
PacoLM
find / -name ffmpeg to see where the compilation/make throw the file...sometimes is under /usr/local/sbin.
Hope it helps,
PacoLM
After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Re: ffmpeg support - ZM compiled from source.
Correct; one of the first things I tried.
The ffmpeg libraries have been installed into /usr/local/lib, and per the Wiki instructions I've updated ld.so.conf & reran ldconfig; so I believe the runtime side of things has been taken care of.
I'm assuming there's an additional "-D" option I need to feed into the cmake command above to ensure Zoneminder is linked against the ffmpeg libraries; I have no idea what it might be
The ffmpeg libraries have been installed in /usr/local/lib on a 64 bit platform, rather than lib64; the 'file' command confirms they are 64 bit. Perhaps cmake is assuming they would be installed in lib64?
The ffmpeg libraries have been installed into /usr/local/lib, and per the Wiki instructions I've updated ld.so.conf & reran ldconfig; so I believe the runtime side of things has been taken care of.
I'm assuming there's an additional "-D" option I need to feed into the cmake command above to ensure Zoneminder is linked against the ffmpeg libraries; I have no idea what it might be
The ffmpeg libraries have been installed in /usr/local/lib on a 64 bit platform, rather than lib64; the 'file' command confirms they are 64 bit. Perhaps cmake is assuming they would be installed in lib64?
Re: ffmpeg support - ZM compiled from source (SOLVED)
PEBKAC!
My first attempts to compile Zoneminder had ffmpeg compile time errors (which I have since solved); so I originally configured the make script by:
cmake -C zm_conf.cmake -DZM_NO_FFMPEG=ON -DZM_SSL_LIB=openssl .
Each attempt to recompile (make/make install) honoured the original ZM_NO_FFMPEG=ON obviously!
I've since rerun cmake as:
cmake -C zm_conf.cmake -DZM_NO_FFMPEG=OFF -DZM_SSL_LIB=openssl .
make
make install
Note the OFF above; counter-intuitive to turn OFF a NO_ffmpeg option, but that's the answer!
My first attempts to compile Zoneminder had ffmpeg compile time errors (which I have since solved); so I originally configured the make script by:
cmake -C zm_conf.cmake -DZM_NO_FFMPEG=ON -DZM_SSL_LIB=openssl .
Each attempt to recompile (make/make install) honoured the original ZM_NO_FFMPEG=ON obviously!
I've since rerun cmake as:
cmake -C zm_conf.cmake -DZM_NO_FFMPEG=OFF -DZM_SSL_LIB=openssl .
make
make install
Note the OFF above; counter-intuitive to turn OFF a NO_ffmpeg option, but that's the answer!