Trouble Installing ZoneMinder on CentOS5.
Re: Trouble Installing ZoneMinder on CentOS5.
]# ldconfig -v
ldconfig: Can't stat /opt/ffmpeg/lib: No such file or directory
And then it lists many lines with lib info.
Do I need to copy something to /opt/ffmpeg/lib ?
Maybe I misread something...
ldconfig: Can't stat /opt/ffmpeg/lib: No such file or directory
And then it lists many lines with lib info.
Do I need to copy something to /opt/ffmpeg/lib ?
Maybe I misread something...
Re: Trouble Installing ZoneMinder on CentOS5.
Not sure...Here's the output from 'ldconfig -v' for ffmpeg on my working 32-bit install.nvandal wrote:]# ldconfig -v
ldconfig: Can't stat /opt/ffmpeg/lib: No such file or directory
And then it lists many lines with lib info.
Do I need to copy something to /opt/ffmpeg/lib ?
Maybe I misread something...
/opt/ffmpeg/lib:
Code: Select all
libpostproc.so.52 -> libpostproc.so.52.0.100
libswresample.so.0 -> libswresample.so.0.7.100
libswscale.so.2 -> libswscale.so.2.1.100
libavutil.so.51 -> libavutil.so.51.42.100
libavformat.so.54 -> libavformat.so.54.2.100
libavcodec.so.54 -> libavcodec.so.54.10.100
libavfilter.so.2 -> libavfilter.so.2.64.101
libavdevice.so.53 -> libavdevice.so.53.4.100
Code: Select all
-rw-r--r-- 1 root root 37289520 Mar 10 16:49 libavcodec.a
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libavcodec.so -> libavcodec.so.54.10.100
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libavcodec.so.54 -> libavcodec.so.54.10.100
-rwxr-xr-x 1 root root 7439536 Mar 10 16:49 libavcodec.so.54.10.100
-rw-r--r-- 1 root root 502912 Mar 10 16:49 libavdevice.a
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libavdevice.so -> libavdevice.so.53.4.100
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libavdevice.so.53 -> libavdevice.so.53.4.100
-rwxr-xr-x 1 root root 41104 Mar 10 16:49 libavdevice.so.53.4.100
-rw-r--r-- 1 root root 2879912 Mar 10 16:49 libavfilter.a
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libavfilter.so -> libavfilter.so.2.64.101
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libavfilter.so.2 -> libavfilter.so.2.64.101
-rwxr-xr-x 1 root root 529056 Mar 10 16:49 libavfilter.so.2.64.101
-rw-r--r-- 1 root root 14153974 Mar 10 16:49 libavformat.a
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libavformat.so -> libavformat.so.54.2.100
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libavformat.so.54 -> libavformat.so.54.2.100
-rwxr-xr-x 1 root root 1189124 Mar 10 16:49 libavformat.so.54.2.100
-rw-r--r-- 1 root root 497504 Mar 10 16:49 libavutil.a
lrwxrwxrwx 1 root root 22 Mar 10 16:49 libavutil.so -> libavutil.so.51.42.100
lrwxrwxrwx 1 root root 22 Mar 10 16:49 libavutil.so.51 -> libavutil.so.51.42.100
-rwxr-xr-x 1 root root 134632 Mar 10 16:49 libavutil.so.51.42.100
-rw-r--r-- 1 root root 147020 Mar 10 16:49 libpostproc.a
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libpostproc.so -> libpostproc.so.52.0.100
lrwxrwxrwx 1 root root 23 Mar 10 16:49 libpostproc.so.52 -> libpostproc.so.52.0.100
-rwxr-xr-x 1 root root 79104 Mar 10 16:49 libpostproc.so.52.0.100
-rw-r--r-- 1 root root 94194 Mar 10 16:49 libswresample.a
lrwxrwxrwx 1 root root 24 Mar 10 16:49 libswresample.so -> libswresample.so.0.7.100
lrwxrwxrwx 1 root root 24 Mar 10 16:49 libswresample.so.0 -> libswresample.so.0.7.100
-rwxr-xr-x 1 root root 28104 Mar 10 16:49 libswresample.so.0.7.100
-rw-r--r-- 1 root root 1007366 Mar 10 16:49 libswscale.a
lrwxrwxrwx 1 root root 21 Mar 10 16:49 libswscale.so -> libswscale.so.2.1.100
lrwxrwxrwx 1 root root 21 Mar 10 16:49 libswscale.so.2 -> libswscale.so.2.1.100
-rwxr-xr-x 1 root root 326964 Mar 10 16:49 libswscale.so.2.1.100
drwxr-xr-x 2 root root 4096 Mar 10 16:49 pkgconfig
Code: Select all
/opt/ffmpeg/lib
I have the 32-bit install up and running recording 3 cameras. Works great so far!
Re: Trouble Installing ZoneMinder on CentOS5.
Thanks for the reply, I can't wait to get up and running.
My ffmpeg output:
]# ffmpeg
ffmpeg version N-38764-gb25a265 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 12 2012 20:33:09 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 51. 42.100 / 51. 42.100
libavcodec 54. 10.100 / 54. 10.100
libavformat 54. 2.100 / 54. 2.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 64.101 / 2. 64.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 7.100 / 0. 7.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
I am still chipping away here and look forward to eventual resolution.
My ffmpeg output:
]# ffmpeg
ffmpeg version N-38764-gb25a265 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 12 2012 20:33:09 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 51. 42.100 / 51. 42.100
libavcodec 54. 10.100 / 54. 10.100
libavformat 54. 2.100 / 54. 2.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 64.101 / 2. 64.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 7.100 / 0. 7.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
I am still chipping away here and look forward to eventual resolution.
Re: Trouble Installing ZoneMinder on CentOS5.
Looks like you're testing the wrong ffmpeg. That would be your origin install to /usr/bin. Due to your PATH environment variable, it's finding the old install path because /opt/ffmeg/bin isnt in your PATH setting at all I imagine. To test it you need to run /opt/ffmpeg/bin/ffmpeg to force your terminal to the correct install. Zoneminder has no problem with the PATH setting because when you compile that, you tell it which path to look at.nvandal wrote:Thanks for the reply, I can't wait to get up and running.
My ffmpeg output:
]# ffmpeg
ffmpeg version N-38764-gb25a265 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 12 2012 20:33:09 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 51. 42.100 / 51. 42.100
libavcodec 54. 10.100 / 54. 10.100
libavformat 54. 2.100 / 54. 2.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 64.101 / 2. 64.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 7.100 / 0. 7.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
I am still chipping away here and look forward to eventual resolution.
Compare the configuration line of my ffmpeg to yours. You'll see that when you point your terminal to the correct install it has the 'prefix' setting listed.
Re: Trouble Installing ZoneMinder on CentOS5 - need ffmpeg 6
I had the same issue with CentOS 6. Here is the link to my thread.
http://www.zoneminder.com/forums/viewto ... 29&t=18950
My resolution post is as follows:
=======================
With the help of knnniggett I was able to get a clean compile. What I had to do was to get the matching version of ffmpeg, 6.5.
After doing a git clone, I did "git checkout n0.6.5". Then I built ffmpeg and zm compiled just fine.
It would seem that the instructions for compiling a particular version of zm should come with matching/required ffmpeg, rather than providing instructions that say "git clone git://git.videolan.org/ffmpeg.git" then configure and make.
=======================
Here is the ffmpeg version post that I see and works for me:
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 19 2012 14:28:20 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
configuration: --enable-gpl --enable-shared --enable-pthreads --arch=x86_64
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
Hope this helps
http://www.zoneminder.com/forums/viewto ... 29&t=18950
My resolution post is as follows:
=======================
With the help of knnniggett I was able to get a clean compile. What I had to do was to get the matching version of ffmpeg, 6.5.
After doing a git clone, I did "git checkout n0.6.5". Then I built ffmpeg and zm compiled just fine.
It would seem that the instructions for compiling a particular version of zm should come with matching/required ffmpeg, rather than providing instructions that say "git clone git://git.videolan.org/ffmpeg.git" then configure and make.
=======================
Here is the ffmpeg version post that I see and works for me:
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 19 2012 14:28:20 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
configuration: --enable-gpl --enable-shared --enable-pthreads --arch=x86_64
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
Hope this helps
Re: Trouble Installing ZoneMinder on CentOS5.
Can you elaborate and the git checkout part?
How exactly did you get 6.5 installed?
Thank you.
How exactly did you get 6.5 installed?
Thank you.
Re: Trouble Installing ZoneMinder on CentOS5.
I too, alas have this precise issue and have never been able to figure out "git" - and now I must! Please do tell us how to get ffmpeg 6.5! I thank any kind soul who can tell us inquiring minds, in advance!
Best,
P.
Best,
P.
Re: Trouble Installing ZoneMinder on CentOS5.
Dear nvandal inter alia:
OK, based on the work of the previous posters here is what to do if you do not want to 'git.'
1) go to: http://ffmpeg.org/download.html - download the obsolete (!!) release: FFmpeg 0.6.5 "Works with HTML5"
2) make sure you clear out the old FFmpeg install before installing this one. (I think I used make uninstall <package name>
3) install the 0.6.5 FFmpeg
4) you may get an error message after install when you run FFmpeg: ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory
5) if you get the load shared libraries error - here is the solution from "Linux Hosting Support (with thanks!):
Solution:
Search the file libavdevice.so.52 on the server using the ‘find’ command
# find / -name libavdevice.so.52
The output will display the complete path to the file for example, /usr/local/lib/libavdevice.so.52 and you need to add the directory path ”/usr/local/lib” in the ‘ld.so.conf’ file.
# vi /etc/ld.so.conf
and add the following at the bottom of the file
/usr/local/lib
Save the file and for the new changes to take effect, execute
# ldconfig
7 Try starting ffmpeg again - it should start
continue install - Zoneminder will now compile as per the original directions in the Centos5 Wiki for ZoneMinder install.
I hope this helps nvandal! I did the precise, same install as you and this should fix it all! I also hope this helps someone else. Do note my work was based on the previous posts!
Best,
P.
OK, based on the work of the previous posters here is what to do if you do not want to 'git.'
1) go to: http://ffmpeg.org/download.html - download the obsolete (!!) release: FFmpeg 0.6.5 "Works with HTML5"
2) make sure you clear out the old FFmpeg install before installing this one. (I think I used make uninstall <package name>
3) install the 0.6.5 FFmpeg
4) you may get an error message after install when you run FFmpeg: ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory
5) if you get the load shared libraries error - here is the solution from "Linux Hosting Support (with thanks!):
Solution:
Search the file libavdevice.so.52 on the server using the ‘find’ command
# find / -name libavdevice.so.52
The output will display the complete path to the file for example, /usr/local/lib/libavdevice.so.52 and you need to add the directory path ”/usr/local/lib” in the ‘ld.so.conf’ file.
# vi /etc/ld.so.conf
and add the following at the bottom of the file
/usr/local/lib
Save the file and for the new changes to take effect, execute
# ldconfig
7 Try starting ffmpeg again - it should start
continue install - Zoneminder will now compile as per the original directions in the Centos5 Wiki for ZoneMinder install.
I hope this helps nvandal! I did the precise, same install as you and this should fix it all! I also hope this helps someone else. Do note my work was based on the previous posts!
Best,
P.
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Trouble Installing ZoneMinder on CentOS5.
I'm certainly not trying to spoil the "fun" of compiling from source, but one very easy way to install ffmpeg is to simply add the rpmforge repository to your system.
Instructions are found here:
http://wiki.centos.org/AdditionalResour ... s/RPMForge
Once the repository is added, just do a "yum install ffmpeg" from the command line. You may also have to install "ffmpeg-libpostproc". I've got it on my system, but I did not verify if I actually needed it.
Current version of ffmpeg in the repository is, you guessed it, version 0.6.5.
Instructions are found here:
http://wiki.centos.org/AdditionalResour ... s/RPMForge
Once the repository is added, just do a "yum install ffmpeg" from the command line. You may also have to install "ffmpeg-libpostproc". I've got it on my system, but I did not verify if I actually needed it.
Current version of ffmpeg in the repository is, you guessed it, version 0.6.5.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Trouble Installing ZoneMinder on CentOS5.
I see there were a few follow up questions to my post regarding the compiling of ffmpeg.
The ZoneMinder Wiki CentOS install instruction @ http://www.zoneminder.com/wiki/index.php/CentOS says to:
git clone git://git.videolan.org/ffmpeg.git
If you are following the ZM Wiki CentOS instructions, my follow up to that for ZM 1.25.0 was to:
git checkout n0.6.5
Then continue with the ffmpeg compile instructions on the Wiki.
If you use RPMForge as suggested in the prior post, apparantly you also get 0.6.5.
My follow up to that is, only get ffmpeg from RPMForge and then remove yum lookups to RPMForge. This is my personal preference based on my experience with RPMForge, others may not agree. RPMForge can have mismatched modules with CentOS that can seriously mess up your Linux install if you do something like a "yum update" with RPMForge enabled. Also, I don't know that RPMForge can be counted upon to "forever" provide ffmpeg 0.6.5, so I would check it after it is installed.
In any case, the error described in this thread is directly related to having a mis-matched ffmpeg (i.e. Not having ffmpeg 0.6.5).
The ZoneMinder Wiki CentOS install instruction @ http://www.zoneminder.com/wiki/index.php/CentOS says to:
git clone git://git.videolan.org/ffmpeg.git
If you are following the ZM Wiki CentOS instructions, my follow up to that for ZM 1.25.0 was to:
git checkout n0.6.5
Then continue with the ffmpeg compile instructions on the Wiki.
If you use RPMForge as suggested in the prior post, apparantly you also get 0.6.5.
My follow up to that is, only get ffmpeg from RPMForge and then remove yum lookups to RPMForge. This is my personal preference based on my experience with RPMForge, others may not agree. RPMForge can have mismatched modules with CentOS that can seriously mess up your Linux install if you do something like a "yum update" with RPMForge enabled. Also, I don't know that RPMForge can be counted upon to "forever" provide ffmpeg 0.6.5, so I would check it after it is installed.
In any case, the error described in this thread is directly related to having a mis-matched ffmpeg (i.e. Not having ffmpeg 0.6.5).
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Trouble Installing ZoneMinder on CentOS5.
One of the things I've noticed over the years of compiling Zoneminder is that one can count on ffmpeg related compile problems. The "problem" stems from the fact that the ffmpeg developers make significant changes to their code quite often and without warning. When the Zoneminder CentOS Wiki page was written, I'm sure it worked with the latest version of ffmpeg that was in the git repository at that time.
Moving forward, the ffmpeg developers have since changed things around (again), and unfortunately the latest version no longer plays nice with Zoneminder. That is what is going on here. What would be helpful is if each Wiki author would post exactly which version/build of ffmpeg they used.
Sure, one could modify the Zoneminder source code to work with the latest version of ffmpeg, but keep in mind this is a moving target. Any change one makes might work fine today, but will be broken again tomorrow. I have found it easier to simply find a version of ffmpeg that works well with the version of Zoneminder I am running and stick with it. Turns out that the version(s) of ffmpeg that seem to be most compatible are found in well known repositories. For CentOS, that would be ffmpeg 0.6.5 from the RPMForge repository. When the next version of Zoneminder is released, it will likely be a different version.
The RPMForge repository has been around for a long time and is unlikely to override any rpm's from the CentOS repository nor is it likely ffmpeg will be removed from it. Regardless, the way to avoid the repository issue that brentl99 points out is to use yum priorities:
http://wiki.centos.org/PackageManagement/Yum/Priorities
Using Yum w/ priorities is the method recommended by the CentOS developers.
I've done both methods, and my experience has been that it is easier to break things compiling from source rather than installing from a repository. However, the long answer to the question "why" is stated here:
http://wiki.centos.org/PackageManagement/SourceInstalls
Nice thing about open source software is that we can all do what we want with it. So if you disagree, I certainly understand your decision. I don't intend to turn this into a "Compile from Source" Vs. "install from packages" battle. Each method has its place. However, I think that those who read this (and may not know which path to choose) deserve to know which method is the one recommended by the developers of the OS they are running on.
Moving forward, the ffmpeg developers have since changed things around (again), and unfortunately the latest version no longer plays nice with Zoneminder. That is what is going on here. What would be helpful is if each Wiki author would post exactly which version/build of ffmpeg they used.
Sure, one could modify the Zoneminder source code to work with the latest version of ffmpeg, but keep in mind this is a moving target. Any change one makes might work fine today, but will be broken again tomorrow. I have found it easier to simply find a version of ffmpeg that works well with the version of Zoneminder I am running and stick with it. Turns out that the version(s) of ffmpeg that seem to be most compatible are found in well known repositories. For CentOS, that would be ffmpeg 0.6.5 from the RPMForge repository. When the next version of Zoneminder is released, it will likely be a different version.
The RPMForge repository has been around for a long time and is unlikely to override any rpm's from the CentOS repository nor is it likely ffmpeg will be removed from it. Regardless, the way to avoid the repository issue that brentl99 points out is to use yum priorities:
http://wiki.centos.org/PackageManagement/Yum/Priorities
Using Yum w/ priorities is the method recommended by the CentOS developers.
I've done both methods, and my experience has been that it is easier to break things compiling from source rather than installing from a repository. However, the long answer to the question "why" is stated here:
http://wiki.centos.org/PackageManagement/SourceInstalls
Nice thing about open source software is that we can all do what we want with it. So if you disagree, I certainly understand your decision. I don't intend to turn this into a "Compile from Source" Vs. "install from packages" battle. Each method has its place. However, I think that those who read this (and may not know which path to choose) deserve to know which method is the one recommended by the developers of the OS they are running on.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Trouble Installing ZoneMinder on CentOS5.
I think this is all good discussion knnniggett, you provide well documented posts. Hopefully this thread and related cross-posts will help a lot of people. I am sooo temped to tweak the CentOS install Wiki, but since I'm still flattening my forehead on several other ZM issues, I hardly feel competent to be making further ZM recommendations! My concern about ffmpeg in RPMForge was that it could be updated at some point with a rev of ffmpeg other than 0.6.5, perhaps the repository version of ffmpeg is static at this point with respect to CentOS 5.5/6. What ever approach people use, validate the your ffmpeg installed version before taking the next ZM install step.