Page 1 of 1
NVT Camera
Posted: Wed Oct 10, 2018 1:41 pm
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
Re: NVT Camera
Posted: Fri Oct 12, 2018 11:24 am
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
Re: NVT Camera
Posted: Sat Oct 13, 2018 4:19 pm
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.
Re: NVT Camera
Posted: Tue Oct 16, 2018 12:12 pm
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.]
Re: NVT Camera
Posted: Wed Oct 17, 2018 1:14 am
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.
Re: NVT Camera
Posted: Fri Oct 19, 2018 4:57 pm
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 (62.8 KiB) Viewed 5301 times
ZM conf:
- ZM1.jpg (46.85 KiB) Viewed 5301 times
- ZM2.jpg (41.33 KiB) Viewed 5301 times
Thanks for any help.
Re: NVT Camera
Posted: Fri Oct 19, 2018 5:04 pm
by albazeus
This is what I get:
- ZM3.jpg (31.87 KiB) Viewed 5299 times
Re: NVT Camera
Posted: Sat Oct 20, 2018 2:09 am
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.
Re: NVT Camera
Posted: Sat Oct 20, 2018 9:27 am
by albazeus
I can't believe it. The problem was iptables. I'm really sorry for all this.
Thanks for your help.