This problem with ffmpeg has been since Fedora 9.
http://www.zoneminder.com/forums/viewto ... highlight=
zm_ffmpeg.h:29:30: error: libavutil/avutil.h: No such file or directory
zm_ffmpeg.h:36:32: error: libavcodec/avcodec.h: No such file or directory
zm_ffmpeg.h:43:34: error: libavformat/avformat.h: No such file or directory
zm_ffmpeg.h:51:32: error: libswscale/swscale.h: No such file or directory
Add ffmpeg to path :-
$ diff zm_ffmpeg.h zm_ffmpeg.h.orig
29c29
< #include <ffmpeg/libavutil/avutil.h>
---
> #include <libavutil/avutil.h>
36c36
< #include <ffmpeg/libavcodec/avcodec.h>
---
> #include <libavcodec/avcodec.h>
43c43
< #include <ffmpeg/libavformat/avformat.h>
---
> #include <libavformat/avformat.h>
51c51
< #include <ffmpeg/libswscale/swscale.h>
---
> #include <libswscale/swscale.h>
vi src/zm_ffmpeg.h
Add full path for these files e.g #include "/usr/include/ffmpeg/libavcodec/avcodec.h"
sudo vi /usr/include/ffmpeg/libavcodec/avcodec.h
sudo vi /usr/include/ffmpeg/libavformat/avformat.h
sudo vi /usr/include/ffmpeg/libswscale/swscale.h
make
My modified fix for F9 in 10 sorts the ffmpeg but I now get
make[2]: Entering directory `/data/ZoneMinder-1.24.1/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In function ‘PixelFormat getFfPixFormatFromV4lPalette(int, int)’:
zm_local_camera.cpp:161: error: ‘PIX_FMT_VDPAU_H264’ was not declared in this scope
zm_local_camera.cpp:162: error: ‘PIX_FMT_VDPAU_MPEG1’ was not declared in this scope
zm_local_camera.cpp:163: error: ‘PIX_FMT_VDPAU_MPEG2’ was not declared in this scope
zm_local_camera.cpp:228: error: ‘PIX_FMT_VDPAU_H264’ was not declared in this scope
zm_local_camera.cpp:229: error: ‘PIX_FMT_VDPAU_MPEG1’ was not declared in this scope
zm_local_camera.cpp:230: error: ‘PIX_FMT_VDPAU_MPEG2’ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
I am using the standard RPMs for Fedora so I suspect all users will see this problem. I've tried compiling ffmpeg from latest svn but I'm still seeing errors.
I'm sticking with 1.23.3 and hopefully this will be fixed or a workaround found for the standard RPM (via yum).