zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Forum for questions and support relating to the 1.24.x releases only.
Locked
fantomas000
Posts: 10
Joined: Tue Jul 26, 2011 1:57 pm

zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by fantomas000 »

Hello!
HELP
I use this instruction http://www.zoneminder.com/wiki/index.php/CentOS
At a command make produces an error:

Code: Select all

zm_ffmpeg_camera.cpp:94: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
zm_ffmpeg_camera.cpp:110: warning: ‘avcodec_open’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3770)
zm_ffmpeg_camera.cpp:110: warning: ‘avcodec_open’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3770)
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::Capture(Image&)’:
zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.2'
make: *** [all] Error 2
jbmia
Posts: 50
Joined: Sat Jul 30, 2011 1:56 pm

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by jbmia »

Did you check config.log? If not, have a look at that file.. it's produced when you run configure.. should be in the same folder you ran the install from.. I always do a search for the term "fatal" over that file when I run configure.. That'll start giving you some clues as to what's going on..

Suggest reading this as well: http://www.zoneminder.com/forums/viewto ... 21&t=12385

jbmia
fantomas000
Posts: 10
Joined: Tue Jul 26, 2011 1:57 pm

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by fantomas000 »

Has looked at this file.
Hasn't found that suspicious.

Has laid out a file here http://ifolder.ru/25076910
fantomas000
Posts: 10
Joined: Tue Jul 26, 2011 1:57 pm

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by fantomas000 »

CentOS 5.6
ZoneMinder 1.24.2
jbmia
Posts: 50
Joined: Sat Jul 30, 2011 1:56 pm

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by jbmia »

That's a funky download page there... You're right, there's nothing there that jumps out at you (that I can see)...

It appears to be an issue with ffmpeg... Did you check the ffmpeg build config.log? You might check your version and perhaps reinstall.

For what it's worth, my first zm install attempt was on CentOS, which of course is reknowned for it's stability.. I was not successful and moved over to Ubuntu server where I was successful. I've had success with Fedora as well. I can't speak for others who've had success on CentOS, but for me I'd didn't want to fight with it and went to Ubuntu server from there. I'm sure people have had success with CentOS, but from what I've read, the thing that makes it's stable is also the thing that makes a bit problematic is well. And that is , less updates, older versions of software... Not sure at all if that's at play here.

So, I'd check your ffmpeg instance and see what's going on there and potentiall reinstall a new version of ffmpeg. From there, if I wasn't successful, if it were me, cause I'm not bent on using CentOS, I just burn an Ubuntu Server install CD and move that way.. My 2 cents.

jbmia
fantomas000
Posts: 10
Joined: Tue Jul 26, 2011 1:57 pm

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by fantomas000 »

Ubuntu it is good, but it would be desirable CentOS
tijuca
Posts: 9
Joined: Sun Jul 31, 2011 10:01 am

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by tijuca »

There are some headers missed, especially for ffmpeg as I can see in the config.log. :wink:
ffmpeg is correct installed, even the -dev packages?
fantomas000
Posts: 10
Joined: Tue Jul 26, 2011 1:57 pm

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by fantomas000 »

Yes. All is established ffmpeg. And what in config.log it is bad?
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by mastertheknife »

These errors are fixed in ZM 1.24.4.

mastertheknife
Kfir Itzhak.
fantomas000
Posts: 10
Joined: Tue Jul 26, 2011 1:57 pm

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by fantomas000 »

Installed ZM 1.24.4 when you run service zm start writes error env: /etc/init.d/zm: No such file or directory
Although the file zm and there is a right -rwxr-xr-x
fantomas000
Posts: 10
Joined: Tue Jul 26, 2011 1:57 pm

Re: zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Post by fantomas000 »

UP
Locked