Support for mega pixel IP camera's

Forum for questions and support relating to the 1.25.x releases only.
Locked
mcleandl
Posts: 15
Joined: Sun Jan 06, 2008 4:08 pm
Location: Orlando, Florida USA

Support for mega pixel IP camera's

Post by mcleandl »

Hi,
I have been using Zoneminder for a number of years and have been very please. I have decided to upgrade to IP mega pixel camera's.

I've tried just about every combination of OS ubunto, fedora, zoneminder versions 1.24.4, 1.25.0 and running into road blocks with not being able to captured images. Common theme is Captured image does not match expected size, check width, height, and color depth being reported by zmc.

The camera's I've tried are all from Arecont, models 2110, 2155 and 3105.

Hardware is dual socket 12 core HP z800, 48GB ram, fast SAS drives. Not limited by system hardware.

Tried playing around with the resolution on the camears, racking down to 640x480 with no success. current message from debug.

2012-01-26 21:50:45.199140 zmdc 15356 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2012-01-26 21:50:45.189954 zmc_m1 15852 ERR Failed to capture image from monitor 1 (0/1) zmc.cpp 263
2012-01-26 21:50:45.189735 zmc_m1 15852 ERR Captured image does not match expected size, check width, height and colour depth zm_monitor.cpp

If anyone has had success, can they point me in the right direction. Not particular on any OS, version of OS but need to try to use the camera's that I have purchased from Arecont.

Have been successful with Axacq software running on Ubunto 10.04 but I keep going back to zoneminder, it just rocks but not for the weak of heart sometimes getting it tuned right.

Any help would be appreciated.


Last ./configured with 1.25.0 on Fedora 14
./configure --prefix=/opt/zm --with-libarch=lib64 --with-mysql=/usr --with-ffmpeg=/usr --with-webuser=apache --with-webgroup=apache --enable-mmap=yes --with-webdir=/var/www/virtual/spacecoast/html/zm --with-cgidir=/var/www/cgi-bin ZM_SSL_LIB=openssl

ffmpeg info
FFmpeg version SVN-r24044, Copyright (c) 2000-2010 the FFmpeg developers
built on Jul 21 2010 15:03:32 with gcc 4.5.0 20100716 (Red Hat 4.5.0-3)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --extra-version=rpmfusion --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 50.20. 0 / 50.20. 0
libavcodec 52.79. 1 / 52.79. 1
libavformat 52.73. 0 / 52.73. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 1 / 1.20. 1
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

thanks in advance
rotohammer
Posts: 3
Joined: Thu Jul 21, 2011 3:18 pm

Re: Support for mega pixel IP camera's

Post by rotohammer »

I have the same problem with Toshiba IKWB-16A 2 Megapixel cameras. I can't get them to work in any resolution greater than 640x480. Ideally I'd like to some cameras recording at the full 1600x1200 resolution.

I'm going to start looking at the source code to see if I can find the issue.
mcleandl
Posts: 15
Joined: Sun Jan 06, 2008 4:08 pm
Location: Orlando, Florida USA

Re: Support for mega pixel IP camera's

Post by mcleandl »

I was finally able to get some success but not really where I want to be.

Arecont AV2100DN

Code: Select all

HTTP, Regexp, <ip>, 8080, /image?res=full&x0=0&y0=0&x1=1600&y1=1200&fps=15
Same setup for the AV2155DN & AV3105DN, adjusting for the proper resolution.

Not able to get RSTP, mjpeg, h264 to work. I really thing Zoneminder is the best, boy it's not for the weak of heart or for someone that expects out of the box to work.

Would appreciate some help in taking getting other options to work.
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Re: Support for mega pixel IP camera's

Post by Mad Professor »

I am also having grate problems getting my MegaPixel IP camera working via rtsp.

I have only been able to use http stream, but the http stream in the camera is preset to 640x480 @ 5FPS.

Here is my post: Xvision X100V MegaPixel Indoor/Outdoor IP Camera
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Support for mega pixel IP camera's

Post by cordel »

Okay I have been away for some time, but do you know how to use the command wget with the --save-headers option to check what the camera is reporting it is sending?
Sorry I'm a bit rusty atm but will be working to get back in the swing of things if you can bare with me.
mcleandl
Posts: 15
Joined: Sun Jan 06, 2008 4:08 pm
Location: Orlando, Florida USA

Re: Support for mega pixel IP camera's

Post by mcleandl »

From the Arecont user manual I use the following to get the image size from the camera

http://camera_ip/get?imgheight
http://camera_ip/get?imgwidth
http://camera_ip/get/imgres

With this information I plug it back into zm source->Remote Host Path

Above commands report back width of 1600 and height of 1200 and res=full

in the Remote Host Path I put: /image?res=full&x0=0&y0=0&x1=1600&y1=1200&fps=15

For some reason the fps was important

What I cannot seem to get to work is h264 or mjpeg stream
the command for h264 for receiving a single frame I believe should look like:

/h264f?res=full&x0=0&y0=0Xx1=1600&y1=1200*bitrate=65535

It's been real trying to get the IP camera's going but the resolution is worth it in the end.

The cameras can be viewed at http://www.spacecoast.com/zm guest/zoneminder (user/passwd) If someone would like to poke around in the system let me know and I'll provide a username and password.

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Support for mega pixel IP camera's

Post by cordel »

Okay I understand that you can not get a stream which is why I ask for a wget. If the stream headers report something other than whats requested it would show. These are the blind bits most people don't know. :mrgreen:
mcleandl
Posts: 15
Joined: Sun Jan 06, 2008 4:08 pm
Location: Orlando, Florida USA

Re: Support for mega pixel IP camera's

Post by mcleandl »

Sorry I miss understood exactly what you were asking, had to many things going on trying to get something to work. Now since I got basic jpeg images working I'm back to trying to get h.264 streaming working. The camera that I'm working with for the testing is Arecont AV3105DN, 3MP.

pasting the following into a Firefox i able to view video via Totem Movie Player 2.32.0 find.

Code: Select all

rtsp://192.168.1.118:554/h264.sdp?res=full&x0=0&y0=0&x1=1920&y1=1184&ssn=1&doublescan=0&bitrate=65535&fps=15
when I run wget using the same string the results are:

Code: Select all

wget --save-headers rtsp://192.168.1.118:554/h264.sdp?res=full&x0=0&y0=0&x1=1920&y1=1184&ssn=1&doublescan=0&bitrate=65535&fps=15
[mcleandl@dave3 ~]$ wget --save-headers rtsp://192.168.1.118:554/h264.sdp?res=full&x0=0&y0=0&x1=1920&y1=1184&ssn=1&doublescan=0&bitrate=65535&fps=15
[1] 32742
[2] 32743
[3] 32744
[4] 32745
[5] 32746
[6] 32747
[7] 32748
[8] 32749
[2] Done x0=0
[3] Done y0=0
[4] Done x1=1920
[5] Done y1=1184
[6] Done ssn=1
[7]- Done doublescan=0
[8]+ Done bitrate=65535

I hope I answered your question correctly with the wget command.

Error messages from log now are:
Screenshot-ZM - System Log - Mozilla Firefox-4.png
Screenshot-ZM - System Log - Mozilla Firefox-4.png (57.09 KiB) Viewed 6885 times
ZM is setup up for this camera as:
Attachments
Screenshot-ZM - Monitor - office - Mozilla Firefox-1.png
Screenshot-ZM - Monitor - office - Mozilla Firefox-1.png (37.23 KiB) Viewed 6885 times
estranged1977
Posts: 15
Joined: Wed Feb 17, 2010 1:57 am

Re: Support for mega pixel IP camera's

Post by estranged1977 »

I had the same problem with foscam h.264 cameras, and I solved it using ffmpeg in source instead of rtsp. Here is the post http://www.zoneminder.com/forums/viewto ... 29&t=18727 Also if you can´t do it yo can try using vlc to get and encode and then to stream, so you can capture from the vlc. I did that before I discovered how to capture Foscam h.264 cameras.
Locked