Page 1 of 1

1.23.3 not compatible with the latest ffmpeg?

Posted: Thu Oct 09, 2008 5:50 pm
by RobinQi
Hi! All: I am trying to compile the new 1.23.3 version. Downloaded the
latest ffmpeg. installed it.

The first issue I encountered was when I did the .configure. It reports
it cannot find the ffmpeg. After investigation I found a bunch of
subdirectories under /usr/local/include looks like the newly installed
ffmpeg, but none of them are called "ffmpeg". I had to manually create
a "ffmpeg" directory and copy all files from those subdirecories to it.
Then configure went through.

Then next issue is when I compile, the compiler reports:
zm_mpeg.cpp: In member function âdouble VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)â:
zm_mpeg.cpp:325: error: 'img_convert' was not declared in this scope

It seems img_convert was in ffmpeg/avformat.h, but it is now deprecated
and deleted?

Posted: Sat Oct 11, 2008 3:24 am
by RobinQi
Problem resolved. Had to recompile ffmpeg with bunch of switches turned on(mainly swscale lib), had to modify zm_mpeg.h to use the new directory structure. finally got all my cameras running now !!!