Installation, make

Support and queries relating to all previous versions of ZoneMinder
Locked
Rebelhig
Posts: 1
Joined: Tue Aug 15, 2006 12:12 pm

Installation, make

Post by Rebelhig »

Hello,
I get the following faults when executing make:

zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int,
int, int)':
zm_mpeg.cpp:88: error: cannot convert `AVCodecContext**' to `AVCodecContext*'
in initialization
zm_mpeg.cpp:109: error: 'struct AVCodecContext' has no member named 'frame_rate
'
zm_mpeg.cpp:110: error: 'struct AVCodecContext' has no member named '
frame_rate_base'
zm_mpeg.cpp: In member function `void VideoStream::OpenStream()':
zm_mpeg.cpp:161: error: cannot convert `AVCodecContext**' to `AVCodecContext*'
in initialization
zm_mpeg.cpp: In destructor `VideoStream::~VideoStream()':
zm_mpeg.cpp:256: error: cannot convert `AVCodecContext**' to `AVCodecContext*'
for argument `1' to `int avcodec_close(AVCodecContext*)'
zm_mpeg.cpp: In member function `double VideoStream::EncodeFrame(uint8_t*, int,
bool, unsigned int)':
zm_mpeg.cpp:303: error: cannot convert `AVCodecContext**' to `AVCodecContext*'
in initialization
make[2]: *** [zm_mpeg.o] Fehler 1
make[2]: Leaving directory `/usr/local/ZoneMinder-1.22.2/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/local/ZoneMinder-1.22.2'
make: *** [all] Fehler 2
debian:/usr/local/ZoneMinder-1.22.2#

Does anybody have an idea?

I work under Debian.

Reiner
miles
Posts: 5
Joined: Wed Aug 16, 2006 6:45 pm
Location: Czech Republic

Post by miles »

Hi Reiner,

Try to install the ffmpeg patch you can find here:

http://www.zoneminder.com/wiki/index.php/1.22.2_Patches

It helped me.

Regards,

Peter
ManRoaming
Posts: 27
Joined: Fri Sep 08, 2006 7:15 pm

FFMPEG patch on Wiki

Post by ManRoaming »

Here's a question from a noob.

I see this FFMPEG patch code on wiki. Where exactly does this get plugged in?

javascript:emoticon(':?:')
Locked