ffmpeg support - ZM compiled from source (SOLVED)

Forum for questions and support relating to the 1.26.x releases only.
Locked
User avatar
nugget
Posts: 42
Joined: Mon Dec 08, 2003 7:52 pm
Location: Sydney, Australia
Contact:

ffmpeg support - ZM compiled from source (SOLVED)

Post by nugget »

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?
Last edited by nugget on Tue Mar 25, 2014 6:02 am, edited 1 time in total.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: ffmpeg support - ZM compiled from source.

Post by PacoLM »

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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
nugget
Posts: 42
Joined: Mon Dec 08, 2003 7:52 pm
Location: Sydney, Australia
Contact:

Re: ffmpeg support - ZM compiled from source.

Post by nugget »

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?
User avatar
nugget
Posts: 42
Joined: Mon Dec 08, 2003 7:52 pm
Location: Sydney, Australia
Contact:

Re: ffmpeg support - ZM compiled from source (SOLVED)

Post by nugget »

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!
Locked