Page 1 of 1

Which version of ffmpeg for ZM 1.21.4?

Posted: Sun Nov 27, 2005 5:57 pm
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...

Posted: Sun Nov 27, 2005 10:42 pm
by cordel
It will work with 0.4.8 or the cvs version.
Regards,
Cordel

Posted: Mon Nov 28, 2005 6:35 pm
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