Page 1 of 1

zm_ffmpeg_camera.cpp:151: error: ‘avcodec_decode_video’

Posted: Sun Aug 07, 2011 5:05 pm
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

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

Posted: Sun Aug 07, 2011 5:09 pm
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

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

Posted: Sun Aug 07, 2011 5:19 pm
by fantomas000
Has looked at this file.
Hasn't found that suspicious.

Has laid out a file here http://ifolder.ru/25076910

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

Posted: Sun Aug 07, 2011 5:25 pm
by fantomas000
CentOS 5.6
ZoneMinder 1.24.2

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

Posted: Sun Aug 07, 2011 5:51 pm
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

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

Posted: Mon Aug 08, 2011 5:35 am
by fantomas000
Ubuntu it is good, but it would be desirable CentOS

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

Posted: Mon Aug 08, 2011 6:35 am
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?

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

Posted: Mon Aug 08, 2011 7:25 am
by fantomas000
Yes. All is established ffmpeg. And what in config.log it is bad?

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

Posted: Mon Aug 08, 2011 2:36 pm
by mastertheknife
These errors are fixed in ZM 1.24.4.

mastertheknife

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

Posted: Thu Aug 11, 2011 6:43 am
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

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

Posted: Mon Aug 15, 2011 7:12 am
by fantomas000
UP