Cannot compile on Fedora Core 4

Support and queries relating to all previous versions of ZoneMinder
Locked
lennox
Posts: 3
Joined: Sun Nov 20, 2005 3:21 am

Cannot compile on Fedora Core 4

Post by lennox »

I am trying to compile zoneminder on Fedora Core 4, but am not having much luck.

I am getting the following error:

zm_mpeg.cpp: In member function ‘void VideoStream::SetupCodec(int, int, int, int, int)’:
zm_mpeg.cpp:102: error: ‘struct AVCodecContext’ has no member named ‘frame_rate’
zm_mpeg.cpp:103: error: ‘struct AVCodecContext’ has no member named ‘frame_rate_base’
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/home/lennox/installs/zoneminder/zm-1.21.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lennox/installs/zoneminder/zm-1.21.4'
make: *** [all] Error 2


Surfing the web, it looks like this is a problem with the change in ffmpeg? I thought I read somewhere on (in the changelog, I think) that this was fixed.

Any suggestions on how to get this to compile? If I have not given enough info, or if this has already been answered elsewhere, I apologize. From the website, the software looks great, and I'd love to get it up and running. Any help would be greatly appreciated.

Thanks

-lennox
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Do you know which version of ffmpeg you have installed?

Phil
lennox
Posts: 3
Joined: Sun Nov 20, 2005 3:21 am

Post by lennox »

Both ffmpeg and ffmpeg-devel are installed via rpms with the following extension:

0.4.9-10-cvs20050612.rhfc4.at

ffmpeg -v verifies this: 0.4.9-pre1 build 4756.



-lennox
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This looks odd to me, 0.4.9-pre1 is well over a year old, but your other version string has a more recent CVS date. The format of the ffmpeg structures has changed quite a lot between the two versions.

Phil
Locked