zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’

Forum for questions and support relating to the 1.25.x releases only.
Locked
blrzone
Posts: 1
Joined: Wed May 23, 2012 6:23 pm

zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’

Post 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
troublestarter
Posts: 6
Joined: Tue Mar 27, 2012 8:45 am

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

Post 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#
usersenior
Posts: 24
Joined: Tue Jul 10, 2012 8:34 pm

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

Post by usersenior »

try a old version of ffmpeg
troublestarter
Posts: 6
Joined: Tue Mar 27, 2012 8:45 am

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

Post 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 ... :))
Locked