NVT Camera

Forum for questions and support relating to the 1.30.x releases only.
Locked
albazeus
Posts: 10
Joined: Wed Oct 10, 2018 12:10 pm

NVT Camera

Post by albazeus »

Hello,
I'm new to zoneminder and surveillance in general. I'm trying to add my IP cameras in ZM. I have the exact same cameras as the one reported here:
viewtopic.php?t=26014

I tried using this path:
rtsp://192.168.XX.XX:554/user=XXX_password=XXXX_channel=1_stream=0.sdp?real_stream
and the Foscam presets as mentioned in that thread. Doesn't work.

Here is the log:
2018-10-10 15:20:51.100701 zmc_m5 10320 ERR Open video took more than 10 seconds. zm_ffmpeg_camera.cpp 441
2018-10-10 15:20:40.086049 zmc_m5 10320 ERR Unable to open input rtsp://192.168.X.XXX:554/user=XXXXX_password=XXXXX_channel=1_stream=0.sdp due to: Operation now in progress zm_ffmpeg_camera.cpp 269
2018-10-10 15:20:40.079946 zmc_m5 10300 INF Monitor-5: 7000 - Capturing at 24.39 fps
I'm using ZM 1.30.4.
I've installed ONVIF Device Manager the it sees every camera (3). Is there a way the make them work with ZM?

Thanks
albazeus
Posts: 10
Joined: Wed Oct 10, 2018 12:10 pm

Re: NVT Camera

Post by albazeus »

I made some minor progress: my PATH_ZMS option was wrong. Now I see a blue screen and the date, but nothing more.
Since the misconfiguration was caused by the fact that I'm using a subdomain (https//zm.mydomain.com/ instead of https//mydomain.com/zm), is there some other option/configuration that I should double check?

Thanks
User avatar
snake
Posts: 337
Joined: Sat May 21, 2016 2:20 am

Re: NVT Camera

Post by snake »

Can you view the camera in VLC?

Blue screen often means the resolution is incorrect. VLC will indicate the resolution.

If you are trying to view the camera on a resource constrained computer (beaglebone, rpi), try a lower resolution that is 1/2 or less proportional to the original one. E.g. instead of 1080x720 use 640x360 or 320x180.
albazeus
Posts: 10
Joined: Wed Oct 10, 2018 12:10 pm

Re: NVT Camera

Post by albazeus »

I can view the camera in VLC, resolution is the same (704x576). I'm not sure about 'Target colorspace'.
My server is an AMD Ryzen 7 and I enabled only 1 cam at the moment. ZM reports Load: 0 - Disk: 7% - /dev/shm: 0%
This is the log:

Code: Select all

Oct 16 13:56:29 ares zmdc[19190]: WAR [Can't find process with command of 'zma -m 7']
Oct 16 13:56:29 ares zmdc[19190]: WAR [Can't find process with command of 'zmc -m 7']
Oct 16 13:56:30 ares zmdc[19190]: INF ['zmc -m 7' starting at 18/10/16 13:56:30, pid = 24261]
Oct 16 13:56:30 ares zmdc[24261]: INF ['zmc -m 7' started at 18/10/16 13:56:30]
Oct 16 13:56:30 ares zmc_m7[24261]: INF [Starting Capture version 1.30.4]
Oct 16 13:56:30 ares zmc_m7[24261]: INF [Priming capture from rtsp://192.168.1.244:554/user=XXXXXX_password=XXXXXX_channel=1_stream=0.sdp]
Oct 16 13:56:30 ares zmdc[19190]: WAR [Can't find process with command of 'zma -m 7']
Oct 16 13:56:41 ares zmc_m7[24261]: ERR [Open video took more than 10 seconds.]
Oct 16 13:56:41 ares zmc_m7[24261]: ERR [Unable to open input rtsp://192.168.1.244:554/user=XXXXXX_password=XXXXXX_channel=1_stream=0.sdp due to: Operation now in progress]
Oct 16 13:56:52 ares zmc_m7[24261]: ERR [Open video took more than 10 seconds.]
Oct 16 13:56:52 ares zmc_m7[24261]: ERR [Unable to open input rtsp://192.168.1.244:554/user=XXXXXX_password=XXXXXX_channel=1_stream=0.sdp due to: Operation now in progress]
Oct 16 13:57:03 ares zmc_m7[24261]: ERR [Open video took more than 10 seconds.]
Oct 16 13:57:03 ares zmc_m7[24261]: ERR [Unable to open input rtsp://192.168.1.244:554/user=XXXXXX_password=XXXXXX_channel=1_stream=0.sdp due to: Operation now in progress]
Oct 16 13:57:14 ares zmc_m7[24261]: ERR [Open video took more than 10 seconds.]
Oct 16 13:57:14 ares zmc_m7[24261]: ERR [Unable to open input rtsp://192.168.1.244:554/user=XXXXXX_password=XXXXXX_channel=1_stream=0.sdp due to: Operation now in progress]
Oct 16 13:57:21 ares zmc_m7[24261]: INF [Porta Residence: 1000 - Capturing at 19.61 fps]
Oct 16 13:57:25 ares zmc_m7[24261]: ERR [Open video took more than 10 seconds.]
bbunge
Posts: 2932
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: NVT Camera

Post by bbunge »

Linux distro and version? Instructions used to install Zoneminder?

As mentioned before there are two common problems with this version:

PATH_ZMS is not set to /zm/cgi-bin/nph-zms
Camera resolution in Zoneminder does not match camera output. Use VLC (Tools, Media Information, Codec) to check camera Display Resolution.

If you can get the camera to stream in VLC, use that URL in Zoneminder with ffmpeg.
albazeus
Posts: 10
Joined: Wed Oct 10, 2018 12:10 pm

Re: NVT Camera

Post by albazeus »

Debian Stretch, followed the readme of the debian mantainer. I already read this:
https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way
PATH_ZMS is not set to /zm/cgi-bin/nph-zms
PATH_ZMS is set to /zm/cgi-bin/nph-zms
In my apache conf:
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"

I have created a file "/usr/lib/zoneminder/cgi-bin/t":

Code: Select all

#!/usr/bin/sh

echo "Content-type: text/plain"
echo ""
echo "Hello"
If I go to https://zm.elpiro.it/zm/cgi-bin/t I see the "Hello" message. So I think that this configuration is correct.
Camera resolution in Zoneminder does not match camera output. Use VLC (Tools, Media Information, Codec) to check camera Display Resolution.
Vlc Codec Information:
VLC.Codec.jpg
VLC.Codec.jpg (62.8 KiB) Viewed 4556 times
ZM conf:
ZM1.jpg
ZM1.jpg (46.85 KiB) Viewed 4556 times
ZM2.jpg
ZM2.jpg (41.33 KiB) Viewed 4556 times
Thanks for any help.
albazeus
Posts: 10
Joined: Wed Oct 10, 2018 12:10 pm

Re: NVT Camera

Post by albazeus »

This is what I get:
ZM3.jpg
ZM3.jpg (31.87 KiB) Viewed 4554 times
User avatar
snake
Posts: 337
Joined: Sat May 21, 2016 2:20 am

Re: NVT Camera

Post by snake »

Not able to help anymore than what has already been discussed here and in the other post, but you should not be setting maximum FPS rates for ffmpeg.

Your options are as I see it:
Debug ZM reading feed
Contact vendor that sells camera
Or some other reverse engineering as mentioned in finding camera stream paths on the wiki.
albazeus
Posts: 10
Joined: Wed Oct 10, 2018 12:10 pm

Re: NVT Camera

Post by albazeus »

I can't believe it. The problem was iptables. I'm really sorry for all this.

Thanks for your help.
Locked