ffmpeg problem [SOLVED]

Forum for questions and support relating to the 1.24.x releases only.
BlueH2O
Posts: 55
Joined: Thu Aug 12, 2010 10:33 pm

Re: SOLVED!

Post by BlueH2O »

jeanpierre wrote:error : av_free_packet not found !


add in end file src/zm_ffmpeg_camera.cpp to resolve problem.



void av_free_packet(AVPacket *pkt)
{
if (pkt) {
if (pkt->destruct) pkt->destruct(pkt);
pkt->data = NULL; pkt->size = 0;
}
}
[/u]
This didn't work for me. Every time I fix one error another one stops me dead. I'm following the CentOS 5 instructions from the wiki but there seems to be some discrepancies. After trying this fix I get:

Code: Select all

make  all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include  -frepo -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF ".deps/zm_ffmpeg_camera.Tpo" -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp; \
        then mv -f ".deps/zm_ffmpeg_camera.Tpo" ".deps/zm_ffmpeg_camera.Po"; else rm -f ".deps/zm_ffmpeg_camera.Tpo"; exit 1; fi
/usr/local/include/libavutil/common.h: In function 'int32_t av_clipl_int32_c(int64_t)':
/usr/local/include/libavutil/common.h:161: error: 'UINT64_C' was not declared in this scope
zm_ffmpeg_camera.cpp: In member function 'virtual int FfmpegCamera::Capture(Image&)':
zm_ffmpeg_camera.cpp:151: warning: 'avcodec_decode_video' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3518)
zm_ffmpeg_camera.cpp:151: warning: 'avcodec_decode_video' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3518)
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.2'
make: *** [all] Error 2
jayen1980
Posts: 2
Joined: Tue Jan 18, 2011 5:48 am

Post by jayen1980 »

Hi All, I had same issue, Centos 5.3 on Intel based assembled pc.

I could fix errors by running, you need Openssl

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl CPPFLAGS="-D__STDC_CONSTANT_MACROS"
Locked