Just to let you know, today I installed a new Ubuntu Desktop 11.04 and used this install guide on this page:
http://www.zoneminder.com/wiki/index.ph ... _Cambozola
And it worked like a charm!
One step uses nano to manually edit several src files:
#Edit files below, or ZoneMinder will not compile
nano src/zm_ffmpeg_camera.cpp # change “CODEC_TYPE_VIDEO” to “AVMEDIA_TYPE_VIDEO”
nano src/zm_mpeg.cpp # change “PKT_FLAG_KEY” to “AV_PKT_FLAG_KEY”
nano src/zm_mpeg.cpp # change “CODEC_TYPE_VIDEO” to “AVMEDIA_TYPE_VIDEO”
nano src/zm_remote_camera_rtsp.cpp # change as before
nano src/zm_rtsp.cpp # change as before
nano src/zm_sdp.cpp # change all CODEC_TYPE_ to AVMEDIA_TYPE_
nano src/zm_sdp.h # change “enum CodecType” to “enum AVMediaType”
I found the above instructions hard to follow, so I wrote a script to do them all below, the lines below replace above nano lines:
### script to edit cpp files using sed so they compile on Ubuntu 11.04
sed 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/g' zm_ffmpeg_camera.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_ffmpeg_camera.cpp
sed 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/g' zm_mpeg.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_mpeg.cpp
sed 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/g' zm_mpeg.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_mpeg.cpp
# zm_remote_camera_rtsp.cpp # change as before
sed 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/g' zm_remote_camera_rtsp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_remote_camera_rtsp.cpp
sed 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/g' zm_remote_camera_rtsp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_remote_camera_rtsp.cpp
# zm_rtsp.cpp # change as before
sed 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/g' zm_rtsp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_rtsp.cpp
sed 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/g' zm_rtsp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_rtsp.cpp
sed 's/CODEC_TYPE_/AVMEDIA_TYPE_/g' zm_sdp.cpp > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_sdp.cpp
sed 's/enum CodecType/enum AVMediaType/g' zm_sdp.h > /tmp/ptmp.cpp ; mv /tmp/ptmp.cpp zm_sdp.h
# -------------- end of script -----------------
It saves time vs doing the manual edits.
Zoneminder 1.24.3 deluxe on Ubuntu 11.04 Natty
Zoneminder 1.24.3 deluxe on Ubuntu 11.04 Natty
Running Ubuntu 11.04 64bit Zoneminder 1.24.3 from SVN, FFmpeg, libjpeg-turbo, Webmin, Cambozola
-
- Posts: 3
- Joined: Sun May 08, 2011 5:36 pm
Re: Zoneminder 1.24.3 deluxe on Ubuntu 11.04 Natty
Hi Nogero,
I added your script to my 11.04 Wiki article! Thanks for your addition!
I added your script to my 11.04 Wiki article! Thanks for your addition!
Re: Zoneminder 1.24.3 deluxe on Ubuntu 11.04 Natty
I'm having issues following the wiki guide
http://www.zoneminder.com/wiki/index.ph ... _Cambozola
zm_mpeg.cpp: In member function âvoid VideoStream::SetParameters()â:
zm_mpeg.cpp:133:7: warning: âint av_set_parameters(AVFormatContext*, AVFormatParameters*)â is deprecated (declared at /usr/local/include/libavformat/avformat.h:1334)
zm_mpeg.cpp:133:34: warning: âint av_set_parameters(AVFormatContext*, AVFormatParameters*)â is deprecated (declared at /usr/local/include/libavformat/avformat.h:1334)
zm_mpeg.cpp: In member function âdouble VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)â:
zm_mpeg.cpp:359:16: error: âAV_AV_PKT_FLAG_KEYâ was not declared in this scope
zm_mpeg.cpp:390:18: error: âAV_AV_PKT_FLAG_KEYâ was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/usr/src/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm'
make: *** [all] Error 2
root@ubuntu-zoneminder-source64:/usr/src/zm#
I get the above issues Not sure how to proceed
http://www.zoneminder.com/wiki/index.ph ... _Cambozola
zm_mpeg.cpp: In member function âvoid VideoStream::SetParameters()â:
zm_mpeg.cpp:133:7: warning: âint av_set_parameters(AVFormatContext*, AVFormatParameters*)â is deprecated (declared at /usr/local/include/libavformat/avformat.h:1334)
zm_mpeg.cpp:133:34: warning: âint av_set_parameters(AVFormatContext*, AVFormatParameters*)â is deprecated (declared at /usr/local/include/libavformat/avformat.h:1334)
zm_mpeg.cpp: In member function âdouble VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)â:
zm_mpeg.cpp:359:16: error: âAV_AV_PKT_FLAG_KEYâ was not declared in this scope
zm_mpeg.cpp:390:18: error: âAV_AV_PKT_FLAG_KEYâ was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/usr/src/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm'
make: *** [all] Error 2
root@ubuntu-zoneminder-source64:/usr/src/zm#
I get the above issues Not sure how to proceed
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Zoneminder 1.24.3 deluxe on Ubuntu 11.04 Natty
It looks like some of the substitutions maybe have run twice? You should be ok if you change the AV_AV_ to just AV_.
Version 1.24.3 has all these changes already made by the way.
Version 1.24.3 has all these changes already made by the way.
Phil