Which version of ffmpeg for ZM 1.21.4?

Support and queries relating to all previous versions of ZoneMinder
Locked
jonatha
Posts: 21
Joined: Sun Jul 10, 2005 9:27 pm

Which version of ffmpeg for ZM 1.21.4?

Post by jonatha »

Had this problem earlier, thought perhaps it was fixed:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
zm_mpeg.cpp: In member function `double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:331: error: 'struct AVCodecContext' has no member named 'time_base'
zm_mpeg.cpp:331: error: `av_rescale_q' undeclared (first use this function)
zm_mpeg.cpp:331: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/usr/local/src/zm-1.21.4/src'

This is with ffmpeg 0.4.9-pre1 from sourceforge...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

It will work with 0.4.8 or the cvs version.
Regards,
Cordel
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It _should_ woth with 0.4.9-pre1 as well however Ross has alerted me to the fact that there are pre1.5 and pre1.6 versions (and possibly others). These will all be detected as 0.4.9 (which is pre1) but won't compile as stuff changed in the meantime. There is no simple way to check which 'pre' version it is as they are all reported as 0.4.9.

Phil
Locked