Page 1 of 1

zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’

Posted: Wed May 23, 2012 6:35 pm
by blrzone
Hi i am trying to setup Zoneminder on ubuntu 10.04. When i run make i am getting below error.

g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
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

i have installed the libavcodec library but i could not able to see utils.c file in the /use/include/ directory. i am using logitech c270 webcam.

Please someone help me out to resolve the issue.

Naresh

Re: zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’

Posted: Mon Oct 08, 2012 1:48 pm
by troublestarter
+1

Same error

root@debian:~/ZoneMinder-1.25.0# make
make all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.25.0'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.25.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/share/ffmpeg/include -Wall -Wno-sign-compare -fno-inline -I/usr/share/ffmpeg/include -D__STDC_CONSTANT_MACROS -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
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 `/root/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.25.0'
make: *** [all] Error 2
root@debian:~/ZoneMinder-1.25.0#

Re: zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’

Posted: Mon Oct 08, 2012 2:27 pm
by usersenior
try a old version of ffmpeg

Re: zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’

Posted: Mon Oct 08, 2012 2:39 pm
by troublestarter
same error.

But i've follow instructions here :

http://www.zoneminder.com/forums/viewtopic.php?t=16628

And it's works after some time ... :))