zmrepo, Centos 6.6 and ffmpeg 0.10?

Forum for questions and support relating to the 1.28.x releases only.
Locked
benf
Posts: 16
Joined: Mon Dec 26, 2011 12:36 am

zmrepo, Centos 6.6 and ffmpeg 0.10?

Post by benf »

First, big thanks to knnniggett for setting up the Centos Repo - I've previously had to install/compile manually on Centos5 and this is a big step forwards.

I've recently updated from 1.28.0 to ZM 1.28.1 ( smoothly via zmrepo ) but I've noticed it is flagging an update to ffmpeg from 0.6.5 to 0.10 is available.

I'd like to move to 0.10 if possible as I've got some other applications which require 0.10 or higher to work on the same box.

When I set it off to update though, I get some "Not found" errors even after trying yum clean all as suggested here in another thread:

Any suggestions as to how this could be fixed?

Code: Select all

[root@nas ~]# yum clean all
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Cleaning repos: Webmin base extras updates zmrepo
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@nas ~]# yum update ffmpeg
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Setting up Update Process
Determining fastest mirrors
 * Webmin: webmin.mirror.somersettechsolutions.co.uk
 * base: mirror.vorboss.net
 * extras: centos.hyve.com
 * updates: centos.hyve.com
 * zmrepo: zmrepo.mehvc.com
Webmin                                                   | 1.0 kB     00:00
Webmin/primary                                           |  26 kB     00:00
Webmin                                                                  210/210
base                                                     | 3.7 kB     00:00
base/primary_db                                          | 4.6 MB     00:01
extras                                                   | 3.4 kB     00:00
extras/primary_db                                        |  30 kB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 2.7 MB     00:00
zmrepo                                                   | 2.9 kB     00:00
zmrepo/primary_db                                        |  55 kB     00:00
Resolving Dependencies
--> Running transaction check
---> Package ffmpeg.x86_64 0:0.6.5-1.el6.rf will be updated
--> Processing Dependency: libavcodec.so.52()(64bit) for package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64
--> Processing Dependency: libavdevice.so.52()(64bit) for package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64
--> Processing Dependency: libavfilter.so.1()(64bit) for package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64
--> Processing Dependency: libavformat.so.52()(64bit) for package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64
--> Processing Dependency: libavutil.so.50()(64bit) for package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64
--> Processing Dependency: libavutil.so.50()(64bit) for package: ffmpeg-libpostproc-0.6.5-1.el6.rf.x86_64
--> Processing Dependency: libavutil.so.50(LIBAVUTIL_50)(64bit) for package: ffmpeg-libpostproc-0.6.5-1.el6.rf.x86_64
--> Processing Dependency: libswscale.so.0()(64bit) for package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64
--> Processing Dependency: ffmpeg = 0.6.5 for package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64
---> Package ffmpeg.x86_64 0:0.10.15-1.el6 will be an update
--> Finished Dependency Resolution
Error: Package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: libavcodec.so.52()(64bit)
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               libavcodec.so.52()(64bit)
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
              [b] Not found[/b]
Error: Package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: libavdevice.so.52()(64bit)
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               libavdevice.so.52()(64bit)
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
               [b]Not found[/b]
Error: Package: ffmpeg-libpostproc-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: libavutil.so.50()(64bit)
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               libavutil.so.50()(64bit)
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
               Not found
Error: Package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: ffmpeg = 0.6.5
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               ffmpeg = 0.6.5-1.el6.rf
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
               ffmpeg = 0.10.15-1.el6
           Available: ffmpeg-0.10.11-1.el6.x86_64 (zmrepo)
               ffmpeg = 0.10.11-1.el6
Error: Package: ffmpeg-libpostproc-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: libavutil.so.50(LIBAVUTIL_50)(64bit)
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               libavutil.so.50(LIBAVUTIL_50)(64bit)
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
               Not found
Error: Package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: libavfilter.so.1()(64bit)
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               libavfilter.so.1()(64bit)
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
               Not found
Error: Package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: libavformat.so.52()(64bit)
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               libavformat.so.52()(64bit)
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
               Not found
Error: Package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: libavutil.so.50()(64bit)
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               libavutil.so.50()(64bit)
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
               Not found
Error: Package: ffmpeg-devel-0.6.5-1.el6.rf.x86_64 (@rpmforge)
           Requires: libswscale.so.0()(64bit)
           Removing: ffmpeg-0.6.5-1.el6.rf.x86_64 (@rpmforge)
               libswscale.so.0()(64bit)
           Updated By: ffmpeg-0.10.15-1.el6.x86_64 (zmrepo)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@nas ~]# uname -a
Linux nas.home 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 22:03:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@nas ~]#
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: zmrepo, Centos 6.6 and ffmpeg 0.10?

Post by knight-of-ni »

zmrepo is intended to be installed on a clean system where none of zoneminder's dependencies have already been installed from somewhere else.

In your case, you've got an old ffmpeg rpm installed from rpmforge (quite possibly due to using one of my pre-zmrepo rpms).

To get things going, you first need to manually uninstall the conflicting packages.
This should do it:

Code: Select all

sudo yum uninstall ffmpeg*
If it tries to remove a dependency you don't want to remove, here is a more advanced way to get around that:

Code: Select all

sudo rpm -e ffmpeg* --force --nodeps
Once you do that, zoneminder should install via yum and it will pull in ffmpeg 0.10 automatically.

As a precaution, you may want to check to see if you have any other rpms installed from rpmforge:

Code: Select all

rpm -qa |grep .rf.
Zoneminder no longer uses rpm's from this repo, but I don't know if you've got some other application on your system that does.
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/
benf
Posts: 16
Joined: Mon Dec 26, 2011 12:36 am

Re: zmrepo, Centos 6.6 and ffmpeg 0.10?

Post by benf »

Thanks!

Now working, and I appreciate now the issue wasn't with zmrepo.

I went the route eventually of:
yum uninstall ffmpeg*
And accepted that it would uninstall zoneminder as a dependency.

After that, re-installing zoneminder as you said
yum install zoneminder
picked up ffmpeg 0.10 from zmrepo without a problem.

I've made a small change after installation ( for my setup ) to add a symbolic link to point /var/lib/zoneminder to another location where my old events are ( separate disk ) and everything is working again.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: zmrepo, Centos 6.6 and ffmpeg 0.10?

Post by knight-of-ni »

benf wrote: I've made a small change after installation ( for my setup ) to add a symbolic link to point /var/lib/zoneminder to another location where my old events are ( separate disk ) and everything is working again.
No, don't do that.

This is what can happen when you use symbolic links:
http://www.zoneminder.com/forums/viewto ... 32&t=23076

Instead *mount* the other disk directly to your events folder under /var/lib.
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/
benf
Posts: 16
Joined: Mon Dec 26, 2011 12:36 am

Re: zmrepo, Centos 6.6 and ffmpeg 0.10?

Post by benf »

Ah, I'd used a link as in the past that was the solution.

Adding a link back in after reinstalling works Centos 6 - I will look at mounting the directory instead.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: zmrepo, Centos 6.6 and ffmpeg 0.10?

Post by knight-of-ni »

Sometimes linking does work, but it can cause problems, which is why we don't recommend anyone do it that way.

The method that works 100% of the time is what is shown in the Wiki entry mentioned in that other thread.
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/
Locked