Make error
I can confirm this behavior with the latest SVN as per my post on the first page of this thread.cordel wrote:Is this the lastest ffmpeg from svn?
What SVN version is it?
It would seem that they have changed the location of the header files
If this is the latest ffmpeg, you will need to cange the code in ZM to reflect the new location and let us know what version of ffmpeg you have so we can track it down and make it work in ZM.
The file you would need to change is zm_mpeg.h
http://www.zoneminder.com/wiki/index.ph ... tes#ffmpeg
I tried to post the canges here but the sanitation of the forum botchs the post so the above link will have the changes needed listed.
Cheers,
badone
FFmpeg version SVN-r13065, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-swscale --prefix=/usr
libavutil version: 49.6.0
libavcodec version: 51.56.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on May 10 2008 10:46:39, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
configuration: --enable-gpl --enable-swscale --prefix=/usr
libavutil version: 49.6.0
libavcodec version: 51.56.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on May 10 2008 10:46:39, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
Of course, remiss of me.cordel wrote:onina, I was asking badone, as you have already posted the version you are using
Thx though
[root@fc6dev ffmpeg]# svn info
Path: .
URL: svn://svn.mplayerhq.hu/ffmpeg/trunk
Repository Root: svn://svn.mplayerhq.hu/ffmpeg
Repository UUID: 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
Revision: 13086
Node Kind: directory
Schedule: normal
Last Changed Author: aurel
Last Changed Rev: 13086
Last Changed Date: 2008-05-09 09:15:39 +1000 (Fri, 09 May 2008)
Properties Last Updated: 2008-05-09 09:36:32 +1000 (Fri, 09 May 2008)
Cheers,
Brad
I will be trying this out starting today as well: CentOS 5.1 ZoneMinder 1.23.3
I will let you know how it all goes, and when I am done I will post the instructions on how to do it from start to finish.
I will combine efforts from here:
http://www.zoneminder.com/forums/viewto ... ght=centos
I will let you know how it all goes, and when I am done I will post the instructions on how to do it from start to finish.
I will combine efforts from here:
http://www.zoneminder.com/forums/viewto ... ght=centos
I have successfully compiled ffmpeg on my centos 5.0 box, however, and adding the --with-ffmpeg flag, zoneminder compiles fine, however, i keep getting mpeg streaming disabled, rebuild with ffmpeg option message in httpd/error_log..
any ideas?
ffmpeg:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
any ideas?
ffmpeg:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
I have begun the CentOS Wiki. I will be done with all the steps toward the end of this week.
http://www.zoneminder.com/wiki/index.php/CentOS
http://www.zoneminder.com/wiki/index.php/CentOS
mudputty, the rev of ffmpeg you list on your wiki page, 11879, has problems, not at config or make time, but at make install. I posted a discussion page on the wiki.
The only rev of ffmpeg I've been able to successfully config/make/install and run is the very latest from their trunk. Of course, is no good for the current ZM 1.23.3 code, as evidenced by all other posts here. I sympathize with you guys and these open source projects that keep changing their APIs. It sucks, I wish I knew enough about ZM to help fix it.
BTW, I've reduced my ./configure script line to just this, and rev 11879 still didn't work:
./configure --enable-gpl --enable-shared
-Jac
The only rev of ffmpeg I've been able to successfully config/make/install and run is the very latest from their trunk. Of course, is no good for the current ZM 1.23.3 code, as evidenced by all other posts here. I sympathize with you guys and these open source projects that keep changing their APIs. It sucks, I wish I knew enough about ZM to help fix it.
BTW, I've reduced my ./configure script line to just this, and rev 11879 still didn't work:
./configure --enable-gpl --enable-shared
-Jac
Just to close the loop on this... I resolved my ffmpeg make install issue for SVN rev 11879 (the rev mudpuddy's wiki page recommends). Yipee!!!
There were some faulty MakeFile lines in that rev having to do with whether or not you excluded libswscale in your configure line. Even if you didn't use "--enable-swscaler" in configure, the MakeFile was attempting to install that module at "make install" time, and of course failing because it never got built. The lines that compiled that module had the conditional make statement on it like:
But the "install" target was missing the config conditional statement:
So in my local copy I changed all references to libswscale to have the same conditional config line and violah... it built/installed just fine. And even more importantly ZM v1.23.3 configured/built, and installed just fine as well. Even though I didn't mention "--with-ffmpeg" on the ZM configure line it must've found the ffmpeg binary and configured itself to compile with it because after I got monitors running I was able to set ZM_STREAM_METHOD to mpeg and ZM_OPT_MPEG to ffmpeg and watched my monitors stream using Windows MP's MPEG streaming in the browser.
Anyways, I just wanted to save anyone else the hassel of having to figure this out on their own since I struggled with it for over a week. I'm not even sure what to do with the changes I've made to ffmpeg's MakeFile since their latest svn HEAD code configures/builds/installs without a hitch, so it must already be fixed there. But just in case anyone else is wondering what I changed, here's the "svn diff" output for you:
Cheers,
-Jac
PS: Once again, kudos to you folks in the ZM development team on another great release 1.23.3. It's really a great piece of software.
There were some faulty MakeFile lines in that rev having to do with whether or not you excluded libswscale in your configure line. Even if you didn't use "--enable-swscaler" in configure, the MakeFile was attempting to install that module at "make install" time, and of course failing because it never got built. The lines that compiled that module had the conditional make statement on it like:
Code: Select all
$(MAKE-$(CONFIG_SWSCALER)) -C libswscale all
Code: Select all
$(MAKE) -C libswscale install-headers
Anyways, I just wanted to save anyone else the hassel of having to figure this out on their own since I struggled with it for over a week. I'm not even sure what to do with the changes I've made to ffmpeg's MakeFile since their latest svn HEAD code configures/builds/installs without a hitch, so it must already be fixed there. But just in case anyone else is wondering what I changed, here's the "svn diff" output for you:
Code: Select all
Index: Makefile
===================================================================
--- Makefile (revision 11879)
+++ Makefile (working copy)
@@ -176,7 +176,7 @@
$(MAKE) -C libavformat install-headers
$(MAKE) -C libavdevice install-headers
$(MAKE-$(CONFIG_PP)) -C libpostproc install-headers
- $(MAKE) -C libswscale install-headers
+ $(MAKE-$(CONFIG_SWSCALER)) -C libswscale install-headers
uninstall: uninstall-progs uninstall-libs uninstall-headers uninstall-man uninstall-vhook
@@ -196,7 +196,7 @@
$(MAKE) -C libavformat uninstall-libs
$(MAKE) -C libavdevice uninstall-libs
$(MAKE) -C libpostproc uninstall-libs
- $(MAKE) -C libswscale uninstall-libs
+ $(MAKE-$(CONFIG_SWSCALER)) -C libswscale uninstall-libs
uninstall-headers:
$(MAKE) -C libavutil uninstall-headers
@@ -204,7 +204,7 @@
$(MAKE) -C libavformat uninstall-headers
$(MAKE) -C libavdevice uninstall-headers
$(MAKE) -C libpostproc uninstall-headers
- $(MAKE) -C libswscale uninstall-headers
+ $(MAKE-$(CONFIG_SWSCALER)) -C libswscale uninstall-headers
-rmdir "$(INCDIR)"
depend dep: .depend .vhookdep
@@ -233,7 +233,7 @@
$(MAKE) -C libavformat clean
$(MAKE) -C libavdevice clean
$(MAKE) -C libpostproc clean
- $(MAKE) -C libswscale clean
+ $(MAKE-$(CONFIG_SWSCALER)) -C libswscale clean
rm -f *.o *~ .libs gmon.out TAGS $(ALLPROGS) $(ALLPROGS_G) \
output_example$(EXESUF)
rm -f doc/*.html doc/*.pod doc/*.1
@@ -248,7 +248,7 @@
$(MAKE) -C libavformat distclean
$(MAKE) -C libavdevice distclean
$(MAKE) -C libpostproc distclean
- $(MAKE) -C libswscale distclean
+ $(MAKE-$(CONFIG_SWSCALER)) -C libswscale distclean
rm -f .depend .vhookdep version.h config.* *.pc
-Jac
PS: Once again, kudos to you folks in the ZM development team on another great release 1.23.3. It's really a great piece of software.
One suggestion
The fact is a secondary aspect of Reality.