No image from Axis P1346 network camera

Forum for questions and support relating to the 1.24.x releases only.
Locked
alekstef
Posts: 5
Joined: Wed Apr 11, 2012 6:41 pm

No image from Axis P1346 network camera

Post by alekstef »

Hello!

I am new to ZoneMinder, and am having trouble with getting it to work with the Axis P1346 network camera.

OS: Debian Squeeze 6.0
ZM version: 1.24.2

I have ffmpeg and cambozola.jar installed, and all seems good, except that when trying to watch the stream, I can't get an image, not even black or anything else. When using Cambozola, it says "No main content type" where the camera feed is supposed to be. Before I installed Cambozola, there was no image at all, only the regular image missing-icon.

Here are the ZoneMinder settings:
Skjermbilde 2012-04-11 kl. 20.52.49.png
Skjermbilde 2012-04-11 kl. 20.52.49.png (55.86 KiB) Viewed 4845 times
Skjermbilde 2012-04-11 kl. 20.45.49.png
Skjermbilde 2012-04-11 kl. 20.45.49.png (62.82 KiB) Viewed 4845 times
I have checked these settings manually by going to http ://stmm:xxxxxxx@<camera-ip>/mjpg/video.mjpg straight in the browser, and it works. I have even tried disabling authentication, without any luck. When clicking the "Probe"-link in the monitor settings, I get an error message saying "Unable to probe network cameras, status is '127'".

Does anybody know why it does not work? I would be very thankful if someone could help me figure this out, as I have been trying for hours, and don't really know what else to do..

Do let me know if you need any more information. Thanks in advance!
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Re: No image from Axis P1346 network camera

Post by Flasheart »

Hi

Couple of things - ignore probe, that's for analogues (I know, it's not very clear).

Use presets above, and select one of the lower resolution Axis presets to start with.

Unless Axis have significantly changed the layout of their urls with this camera (I have a lot of vga and 1024x768 Axis ip cams), the url would be something like;

/axis-cgi/mjpg/video.cgi?resolution=640x480&color=0&req_fps=1

(1 fps, B&W, vga)

Also, see the FAQ about shared memory unless you built ZM yourself and specified MMAP. If you don't know what that is, you'll definitely need to fix the shared memory for all resolutions about 320x240. You'll probably have to multiple the example figures by 3 or 4 for the resolution you give.
alekstef
Posts: 5
Joined: Wed Apr 11, 2012 6:41 pm

Re: No image from Axis P1346 network camera

Post by alekstef »

Thank you for the answer!

I did select the "Axis IP, 640x480, mpjpeg, B&W" preset and it worked! Status colour is orange, but it does work. However, when I try to change the resolution to 1024x768, the status colour goes red. I tried 1024x576, and status colour turns orange, but there is only a black picture. It won't work with 1920x1080 either. I guess it will need some tweaking, do you have any suggestions as of how to proceed?

I have increased the shmmall to 1048576 bytes (which, according to the FAQ, should be equivalent to 4 GB) and the shmmax to 4294967296 bytes which is 4 GB, so I assume that should be enough. Total amount of memory is 8 GB...
alekstef
Posts: 5
Joined: Wed Apr 11, 2012 6:41 pm

Re: No image from Axis P1346 network camera

Post by alekstef »

Ok so I actually managed to get it working with up to 1280x720, but just for a while, and only for one of two cameras. Then the status on both turned red. I checked /var/log/zm/zmdc.log:
04/12/2012 22:11:30.020593 zmdc[6906].INF [Starting pending process, zmc -m 1]
04/12/2012 22:11:30.021264 zmdc[6906].INF ['zmc -m 1' starting at 12/04/12 22:11:30, pid = 7232]
04/12/2012 22:11:30.313845 zmdc[6906].ERR ['zmc -m 1' exited abnormally, exit status 255]
I tried to lower the resolution, and it wouldn't work until I reached 640x480. Then I upped the resolution to 1024x768 and it worked again. I also tried changing both to 1280x720 and it worked. Then tried 1440x810 and 1920x1080, without any luck. I don't get it, why is ZM acting like this? I realise these are quite high resolutions, and possibly alot higher than usual for a surveillance system, but it is crucial that I get the highest possible resolution...

Edit: Also, I used to get 19-20 fps, now I only get 6 fps and 10 fps.
alekstef
Posts: 5
Joined: Wed Apr 11, 2012 6:41 pm

Re: No image from Axis P1346 network camera

Post by alekstef »

Been messing around and decided to compile 1.25 from source (hope it is still ok that I continue this thread, or should I post in the 1.25-forum?)

I made sure to compile ZM with mmap enabled. Now, I can't get higher resolutions than 640x480 at all. I checked the log and it looks like mmap is not working correctly...
2012-04-13 15:21:59.036100 zmdc 3061 INF 'zmc -m 1' crashed, signal 6 zmdc.pl
2012-04-13 15:21:59.025760 zmc_m1 4217 ERR Got unexpected memory map file size 49767924, expected 94373364 zm_monitor.cpp 364
2012-04-13 15:21:59.018510 zmdc 4217 INF 'zmc -m 1' started at 12/04/13 15:21:59 zmdc.pl
2012-04-13 15:21:59.018490 zmdc 3061 INF 'zmc -m 1' starting at 12/04/13 15:21:59, pid = 4217 zmdc.pl
2012-04-13 15:21:59.017150 zmdc 3061 INF Starting pending process, zmc -m 1
Does anyone have any idea what I can do to make this work? Or if not, is there any way to disable mmap besides recompiling?
marolf
Posts: 3
Joined: Sun Apr 15, 2012 4:09 pm

Re: No image from Axis P1346 network camera

Post by marolf »

I was having similar issues with the same error. I went to dev/shm and deleted the .zm.mmap file then restarted zoneminder.
alekstef
Posts: 5
Joined: Wed Apr 11, 2012 6:41 pm

Re: No image from Axis P1346 network camera

Post by alekstef »

Wow.. Now I am able to get 1920x1080 from both cameras. Thank you very much, that is amazing!
Locked