I'm getting this error when trying to make ZM:
zm_ffmpeg_camera.cpp: In destructor âvirtual FfmpegCamera::~FfmpegCamera()â:
zm_ffmpeg_camera.cpp:51: error: âsws_freeContextâ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function âvirtual int FfmpegCamera::Capture(Image&)â:
zm_ffmpeg_camera.cpp:172: error: âavcodec_decode_video2â was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/usr/src/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm'
make: *** [all] Error 2
I have been fighting for a while with FFMPEG and this is the farthest I've gotten.
Here is FFMPEG info:
FFmpeg version SVN-r0.5.2-4:0.5.2-6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.2-6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 5 2010 08:33:07, gcc: 4.4.5
Any ideas?
FFMPEG Camera Error
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 6
- Joined: Mon May 16, 2011 7:41 pm
Re: FFMPEG Camera Error
It was the SVN from yesterday. I dont have the exact number for the download.
Edit: I just tried 1.24.3 and am getting the same thing
I'm running Debian 6.0
Edit: I just tried 1.24.3 and am getting the same thing
I'm running Debian 6.0
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: FFMPEG Camera Error
You have a pretty old version of ffmpeg but ordinarily that wouldn't be a problem. Except that when they change function names I don't always get the exact version number to reflect the changes in the code. I would suggest trying one of the more recent releases from their download page.
Phil