Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Forum for questions and support relating to the 1.30.x releases only.
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

Hello,

I followed the instructions at:

http://zoneminder.readthedocs.io/en/lat ... untu-16-04

to install ZoneMinder 1.30.2 on Kubuntu 16.04 LTS 64-bit.
Note that I had to manually fix "Options => Path" as noted here:

http://zoneminder.readthedocs.io/en/lat ... -streaming
(this fixed an issue with a "broken image" I was seeing when trying to view the Amcrest camera via ZoneMinder in "monitor" mode)

I then followed the directions at:
https://www.youtube.com/watch?v=E9Jpy-kQokE

to configure ZoneMinder (not using zmNinja at this time).

I only get a blue screen now, with the incrementing timestamp.

One thing I noticed is that the Amcrest Youtube video says you should set "Source => Remote Method" in the ZoneMinder web interface for the Amcrest camera to "RTP/RTSP". In my installation, that is not an option. I see only:

TCP
UDP
UDP Multicast
HTTP Tunnel.

1) Why is RTP/RTSP missing from "Source => Remote Method"
2) Anything else I should try?

BTW, the camera is working fine using Amcrest ViewPro (Android) on my phone.

Thanks.

- Scott
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

How do I install an older version? And which one would be recommended? 1.29?
I used this ppa:
add-apt-repository ppa:iconnor/zoneminder
as recommended:
http://zoneminder.readthedocs.io/en/lat ... untu-16-04

if I do
sudo apt-cache search zoneminder
I do not see an option to install an older version.

I see from
viewtopic.php?f=36&t=24846
building from source is discouraged.

Is there a downloadedable .deb for earlier versions somewhere?

Thanks.
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

Also, I have 2 Kubuntu 16.04 PCs available, so I can try an earlier version on the second one without touching the first.
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

Using VLC 2.2.2, I verified my RTP/RTSP ***is correct***.
One thing I noticed was VLC asked me for username/password.
Zoneminder is ***not*** asking me for this password.
Where should I enter this -- is that the issue?
I can provide the complete configuration of the camera "monitor" in Zoneminder if that would be useful.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by knight-of-ni »

Yes, if your camera requires authentication then you have to include that in the rtsp url when you enter it into zoneminder.
Different cameras have different requirements on exactly how to do that. Please see the wiki link I gave you earlier to learn how to do that for your camera.

If you still have trouble please show us what you've set every field to on the Source tab, including the complete rtsp url. Naturally, replace the password with dummy text. It would also be helpful to see the contents of your zoneminder log.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

Ah, ok, the user name and password were wrong in the rtsp url.
When I fixed that, I verified vlc works without user/password prompting.
However, Zoneminder still gives a blue screen with the corrected url.

Source Path: rtsp:/<user>:<password>@192.168.1.93:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
Remote Method: TCP
Options: <None>
Target colorspace: 24 bit colour
Capture Width (pixels): 320
Capture Height (pixels): 240
Preserve aspect ratio (unchecked)
Orientation: Normal
Deinterlacing: Disabled

I'll add the log shortly.
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

When I try to export the log from the Zoneminder web GUI, I get:

Export Failed 500/Internal Server Error

However, I was able to copy/paste from the Webpage version of the log:

More Clear Refresh Export Close System Log
Updated: Sun 23rd Apr, 6:39pm State: alarm Total: 337035 Available: 337035 Displaying: 200
Filter log - Component Server PID Level File Line Reset
Date/Time
Component Server PID Level Message File Line
2017-04-23 18:39:02.961166 zmc_m2 3027 INF driveway_cam: 310121000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:02.863451 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:39:02.825205 zmc_m2 3027 INF driveway_cam: 310120000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:02.676095 zmc_m2 3027 INF driveway_cam: 310119000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:02.565061 zmc_m2 3027 INF driveway_cam: 310118000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:02.441576 zmc_m2 3027 INF driveway_cam: 310117000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:02.324869 zmc_m2 3027 INF driveway_cam: 310116000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:02.214675 zmc_m2 3027 INF driveway_cam: 310115000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:02.102245 zmc_m2 3027 INF driveway_cam: 310114000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:39:01.986188 zmc_m2 3027 INF driveway_cam: 310113000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:01.864352 zmc_m2 3027 INF driveway_cam: 310112000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:01.734224 zmc_m2 3027 INF driveway_cam: 310111000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:01.618863 zmc_m2 3027 INF driveway_cam: 310110000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:01.489230 zmc_m2 3027 INF driveway_cam: 310109000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:01.350688 zmc_m2 3027 INF driveway_cam: 310108000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:01.192398 zmc_m2 3027 INF driveway_cam: 310107000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:01.082782 zmc_m2 3027 INF driveway_cam: 310106000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:39:00.974333 zmc_m2 3027 INF driveway_cam: 310105000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:00.866613 zmc_m2 3027 INF driveway_cam: 310104000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:00.752117 zmc_m2 3027 INF driveway_cam: 310103000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:00.636717 zmc_m2 3027 INF driveway_cam: 310102000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:00.524185 zmc_m2 3027 INF driveway_cam: 310101000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:00.415828 zmc_m2 3027 INF driveway_cam: 310100000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:00.307152 zmc_m2 3027 INF driveway_cam: 310099000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:00.188343 zmc_m2 3027 INF driveway_cam: 310098000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:39:00.170140 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:39:00.069915 zmc_m2 3027 INF driveway_cam: 310097000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:59.923531 zmc_m2 3027 INF driveway_cam: 310096000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:59.813306 zmc_m2 3027 INF driveway_cam: 310095000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:59.676164 zmc_m2 3027 INF driveway_cam: 310094000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:59.526235 zmc_m2 3027 INF driveway_cam: 310093000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:59.410171 zmc_m2 3027 INF driveway_cam: 310092000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:59.294220 zmc_m2 3027 INF driveway_cam: 310091000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:59.174506 zmc_m2 3027 INF driveway_cam: 310090000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:59.066982 zmc_m2 3027 INF driveway_cam: 310089000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:58.952350 zmc_m2 3027 INF driveway_cam: 310088000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:58.842258 zmc_m2 3027 INF driveway_cam: 310087000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:58.713593 zmc_m2 3027 INF driveway_cam: 310086000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:58.578690 zmc_m2 3027 INF driveway_cam: 310085000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:58.439772 zmc_m2 3027 INF driveway_cam: 310084000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:58.314343 zmc_m2 3027 INF driveway_cam: 310083000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:58.199858 zmc_m2 3027 INF driveway_cam: 310082000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:58.077797 zmc_m2 3027 INF driveway_cam: 310081000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:57.950521 zmc_m2 3027 INF driveway_cam: 310080000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:57.812809 zmc_m2 3027 INF driveway_cam: 310079000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:57.695660 zmc_m2 3027 INF driveway_cam: 310078000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:57.584421 zmc_m2 3027 INF driveway_cam: 310077000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:57.475214 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:57.469727 zmc_m2 3027 INF driveway_cam: 310076000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:57.353137 zmc_m2 3027 INF driveway_cam: 310075000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:57.241797 zmc_m2 3027 INF driveway_cam: 310074000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:57.133252 zmc_m2 3027 INF driveway_cam: 310073000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:57.012398 zmc_m2 3027 INF driveway_cam: 310072000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:56.867230 zmc_m2 3027 INF driveway_cam: 310071000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:56.720341 zmc_m2 3027 INF driveway_cam: 310070000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:56.590189 zmc_m2 3027 INF driveway_cam: 310069000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:56.468703 zmc_m2 3027 INF driveway_cam: 310068000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:56.352061 zmc_m2 3027 INF driveway_cam: 310067000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:56.241396 zmc_m2 3027 INF driveway_cam: 310066000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:56.134605 zmc_m2 3027 INF driveway_cam: 310065000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:56.055722 zmc_m2 3111 ERR Unable to open input rtsp://<REMOVED BY ME>@192.168.1.93:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif due to: Connection timed out zm_ffmpeg_camera.cpp 269
2017-04-23 18:38:56.033910 zmc_m2 3027 INF driveway_cam: 310064000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:56.026233 zmc_m2 3111 ERR Open video took more than 10 seconds. zm_ffmpeg_camera.cpp 441
2017-04-23 18:38:55.925018 zmc_m2 3027 INF driveway_cam: 310063000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:55.814802 zmc_m2 3027 INF driveway_cam: 310062000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:55.702122 zmc_m2 3027 INF driveway_cam: 310061000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:55.594191 zmc_m2 3027 INF driveway_cam: 310060000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:55.485704 zmc_m2 3027 INF driveway_cam: 310059000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:55.375970 zmc_m2 3027 INF driveway_cam: 310058000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:55.268357 zmc_m2 3027 INF driveway_cam: 310057000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:55.149291 zmc_m2 3027 INF driveway_cam: 310056000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:55.027284 zmc_m2 3027 INF driveway_cam: 310055000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:54.940490 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:54.917449 zmc_m2 3027 INF driveway_cam: 310054000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:54.806428 zmc_m2 3027 INF driveway_cam: 310053000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:54.692396 zmc_m2 3027 INF driveway_cam: 310052000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:54.585715 zmc_m2 3027 INF driveway_cam: 310051000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:54.477942 zmc_m2 3027 INF driveway_cam: 310050000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:54.367605 zmc_m2 3027 INF driveway_cam: 310049000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:54.259374 zmc_m2 3027 INF driveway_cam: 310048000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:54.148494 zmc_m2 3027 INF driveway_cam: 310047000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:54.020444 zmc_m2 3027 INF driveway_cam: 310046000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:53.899431 zmc_m2 3027 INF driveway_cam: 310045000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:53.778624 zmc_m2 3027 INF driveway_cam: 310044000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:53.669948 zmc_m2 3027 INF driveway_cam: 310043000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:53.518834 zmc_m2 3027 INF driveway_cam: 310042000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:53.409292 zmc_m2 3027 INF driveway_cam: 310041000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:53.301122 zmc_m2 3027 INF driveway_cam: 310040000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:53.193214 zmc_m2 3027 INF driveway_cam: 310039000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:53.086653 zmc_m2 3027 INF driveway_cam: 310038000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:52.970950 zmc_m2 3027 INF driveway_cam: 310037000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:52.845343 zmc_m2 3027 INF driveway_cam: 310036000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:52.736333 zmc_m2 3027 INF driveway_cam: 310035000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:52.621028 zmc_m2 3027 INF driveway_cam: 310034000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:52.511694 zmc_m2 3027 INF driveway_cam: 310033000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:52.404128 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:52.403045 zmc_m2 3027 INF driveway_cam: 310032000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:52.294117 zmc_m2 3027 INF driveway_cam: 310031000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:52.187116 zmc_m2 3027 INF driveway_cam: 310030000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:52.076932 zmc_m2 3027 INF driveway_cam: 310029000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:51.946907 zmc_m2 3027 INF driveway_cam: 310028000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:51.814412 zmc_m2 3027 INF driveway_cam: 310027000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:51.686808 zmc_m2 3027 INF driveway_cam: 310026000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:51.576258 zmc_m2 3027 INF driveway_cam: 310025000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:51.461721 zmc_m2 3027 INF driveway_cam: 310024000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:51.353025 zmc_m2 3027 INF driveway_cam: 310023000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:51.242850 zmc_m2 3027 INF driveway_cam: 310022000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:51.106581 zmc_m2 3027 INF driveway_cam: 310021000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:50.982335 zmc_m2 3027 INF driveway_cam: 310020000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:50.863396 zmc_m2 3027 INF driveway_cam: 310019000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:50.752436 zmc_m2 3027 INF driveway_cam: 310018000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:50.644293 zmc_m2 3027 INF driveway_cam: 310017000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:50.534457 zmc_m2 3027 INF driveway_cam: 310016000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:50.351216 zmc_m2 3027 INF driveway_cam: 310015000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:50.160726 zmc_m2 3027 INF driveway_cam: 310014000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:50.048696 zmc_m2 3027 INF driveway_cam: 310013000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:49.894882 zmc_m2 3027 INF driveway_cam: 310012000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:49.702223 zmc_m2 3027 INF driveway_cam: 310011000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:49.651607 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:49.577719 zmc_m2 3027 INF driveway_cam: 310010000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:49.469385 zmc_m2 3027 INF driveway_cam: 310009000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:49.361331 zmc_m2 3027 INF driveway_cam: 310008000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:49.252909 zmc_m2 3027 INF driveway_cam: 310007000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:49.144634 zmc_m2 3027 INF driveway_cam: 310006000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:49.036558 zmc_m2 3027 INF driveway_cam: 310005000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:48.928402 zmc_m2 3027 INF driveway_cam: 310004000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:48.820311 zmc_m2 3027 INF driveway_cam: 310003000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:48.705898 zmc_m2 3027 INF driveway_cam: 310002000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:48.590030 zmc_m2 3027 INF driveway_cam: 310001000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:48.472874 zmc_m2 3027 INF driveway_cam: 310000000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:48.364052 zmc_m2 3027 INF driveway_cam: 309999000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:48.242026 zmc_m2 3027 INF driveway_cam: 309998000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:47.801051 zmc_m2 3027 INF driveway_cam: 309997000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:47.661653 zmc_m2 3027 INF driveway_cam: 309996000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:47.554095 zmc_m2 3027 INF driveway_cam: 309995000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:47.441966 zmc_m2 3027 INF driveway_cam: 309994000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:47.320133 zmc_m2 3027 INF driveway_cam: 309993000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:47.212572 zmc_m2 3027 INF driveway_cam: 309992000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:47.080830 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:47.080119 zmc_m2 3027 INF driveway_cam: 309991000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:46.970836 zmc_m2 3027 INF driveway_cam: 309990000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:46.862754 zmc_m2 3027 INF driveway_cam: 309989000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:46.754225 zmc_m2 3027 INF driveway_cam: 309988000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:46.645355 zmc_m2 3027 INF driveway_cam: 309987000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:46.537023 zmc_m2 3027 INF driveway_cam: 309986000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:46.429500 zmc_m2 3027 INF driveway_cam: 309985000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:46.319124 zmc_m2 3027 INF driveway_cam: 309984000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:46.205735 zmc_m2 3027 INF driveway_cam: 309983000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:46.072494 zmc_m2 3027 INF driveway_cam: 309982000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:45.960515 zmc_m2 3027 INF driveway_cam: 309981000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:45.827087 zmc_m2 3027 INF driveway_cam: 309980000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:45.785332 web_js 4217 ERR Export request failed: 500 / Internal Server Error - exportFail() ?view=log
2017-04-23 18:38:45.769533 web_php 4217 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:45.677257 zmc_m2 3027 INF driveway_cam: 309979000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:45.499962 zmc_m2 3027 INF driveway_cam: 309978000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:45.321159 zmc_m2 3027 INF driveway_cam: 309977000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:45.151112 zmc_m2 3027 INF driveway_cam: 309976000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:45.069359 zmc_m2 3111 ERR Unable to open input rtsp://<REMOVED BY ME>@192.168.1.93:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif due to: Connection timed out zm_ffmpeg_camera.cpp 269
2017-04-23 18:38:45.033660 zmc_m2 3027 INF driveway_cam: 309975000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:45.032649 zmc_m2 3111 ERR Open video took more than 10 seconds. zm_ffmpeg_camera.cpp 441
2017-04-23 18:38:44.916105 zmc_m2 3027 INF driveway_cam: 309974000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:44.803614 zmc_m2 3027 INF driveway_cam: 309973000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:44.607800 zmc_m2 3027 INF driveway_cam: 309972000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:44.491354 zmc_m2 3027 INF driveway_cam: 309971000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:44.377522 zmc_m2 3027 INF driveway_cam: 309970000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:44.253183 zmc_m2 3027 INF driveway_cam: 309969000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:44.099114 zmc_m2 3027 INF driveway_cam: 309968000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:43.940540 zmc_m2 3027 INF driveway_cam: 309967000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:43.831981 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:43.766434 zmc_m2 3027 INF driveway_cam: 309966000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:43.758220 web_php 4195 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:43.651030 zmc_m2 3027 INF driveway_cam: 309965000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:43.538458 zmc_m2 3027 INF driveway_cam: 309964000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:43.430114 zmc_m2 3027 INF driveway_cam: 309963000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:43.321915 zmc_m2 3027 INF driveway_cam: 309962000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:43.213633 zmc_m2 3027 INF driveway_cam: 309961000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:43.105385 zmc_m2 3027 INF driveway_cam: 309960000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:42.999517 zmc_m2 3027 INF driveway_cam: 309959000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:42.890390 zmc_m2 3027 INF driveway_cam: 309958000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:42.757710 zmc_m2 3027 INF driveway_cam: 309957000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:42.648372 zmc_m2 3027 INF driveway_cam: 309956000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:42.539313 zmc_m2 3027 INF driveway_cam: 309955000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:42.425200 zmc_m2 3027 INF driveway_cam: 309954000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:42.312732 zmc_m2 3027 INF driveway_cam: 309953000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:42.192508 zmc_m2 3027 INF driveway_cam: 309952000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:42.076248 zmc_m2 3027 INF driveway_cam: 309951000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:41.940862 zmc_m2 3027 INF driveway_cam: 309950000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:41.745602 zmc_m2 3027 INF driveway_cam: 309949000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:41.554063 zmc_m2 3027 INF driveway_cam: 309948000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:41.361581 zmc_m2 3027 INF driveway_cam: 309947000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:41.171433 zmc_m2 3027 INF driveway_cam: 309946000 - Capturing at 1000.00 fps zm_monitor.cpp 3125
2017-04-23 18:38:41.039757 web_php 2809 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:40.999460 zmc_m2 3027 INF driveway_cam: 309945000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:40.926482 web_php 4195 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
2017-04-23 18:38:40.872386 zmc_m2 3027 INF driveway_cam: 309944000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:40.758937 zmc_m2 3027 INF driveway_cam: 309943000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:40.648530 zmc_m2 3027 INF driveway_cam: 309942000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:40.534184 zmc_m2 3027 INF driveway_cam: 309941000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:40.420439 zmc_m2 3027 INF driveway_cam: 309940000 - Capturing at inf fps zm_monitor.cpp 3125
2017-04-23 18:38:40.307063 zmc_m2 3027 INF driveway_cam: 309939000 - Capturing at inf fps zm_monitor.cpp 3125
Last edited by scott.borisch on Sun Apr 23, 2017 11:44 pm, edited 1 time in total.
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

Could this be it:
2017-04-23 18:38:40.926482 web_php 4195 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

Permissions on that file
sborisch@sborisch-P67A-D3-B3:~$ ls -ltr /usr/share/zoneminder/www/index.php
-rw-r--r-- 1 www-data www-data 7361 Mar 31 09:48 /usr/share/zoneminder/www/index.php
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

I already followed the instructions at:
https://wiki.zoneminder.com/Amcrest_QCam
The only issue being incorrect username/password.

In the section that reads:
H.264
On the Camera:
Setup->Camera->Video->Main Stream
Encode Mode: H.264

I'm not sure how to change such a setting on the camera, although I'd think this is not the issue, as VLC works fine.
The above permissions issue however looks like a good bet
(but I don't want to change it without confirmation).
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by knight-of-ni »

I didn't notice the following until I reread your earlier post. The following doesn't look right:
Capture Width (pixels): 320
Capture Height (pixels): 240
Referring back to the wiki instructions, this should be 1920 x 1080. Failure to get this right will produce the symptoms you describe.
When in doubt, open the stream in the vlc, then click Tools -> Codec Information. Vlc will tell you what the resolution of the stream is. I tell people to do this because not all 1080p cameras are exactly 1080p. For example, I own several cameras with a "1080p" resolution of 1920x1088.

The following is less likely, but for the sake of experimentation, make sure your password only has standard, non-extended alpha numerics. We recently fixed this, but I don't remember if it made it into 1.30.2 or not.

Also, set your color depth to 32bit. This will give a performance boost.
scott.borisch wrote:Could this be it:
2017-04-23 18:38:40.926482 web_php 4195 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158
This is a different problem. It will prevent you from recording but should not prevent a live stream.

To troubleshoot that, we need to see:
  • The value of DIR_EVENTS under Options -> Paths
  • The value of DIR_IMAGES under Options -> Images
  • Code: Select all

    ls -lh /usr/share/zoneminder/www/events
  • Code: Select all

    ls -lh /usr/share/zoneminder/www/images
  • Code: Select all

    ls -lh /var/cache/zoneminder
This will tell us where the problem is.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

>> Referring back to the wiki instructions, this should be 1920 x 1080.

Ah, I missed that because the Youtube video from Amcrest did not change that field from default.
But the wiki has it. I'll fix that.

>> To troubleshoot that, we need to see:
>> The value of DIR_EVENTS under Options -> Paths
>> The value of DIR_IMAGES under Options -> Images

And this.
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

Here is:

The value of DIR_EVENTS under Options -> Paths

Name Description Value
DIR_EVENTS Directory where events are stored (?)
events
DIR_IMAGES Directory where the images that the ZoneMinder client generates are stored (?)
images
DIR_SOUNDS Directory to the sounds that the ZoneMinder client can use (?)
sounds
PATH_ZMS Web path to zms streaming server (?)
/zm/cgi-bin/nph-zms
PATH_MAP Path to the mapped memory files that that ZoneMinder can use (?)
/dev/shm
PATH_SOCKS Path to the various Unix domain socket files that ZoneMinder uses (?)
/var/run/zm
PATH_LOGS Path to the various logs that the ZoneMinder daemons generate (?)
/var/log/zm
PATH_SWAP Path to location for temporary swap images used in streaming (?)
/tmp/zm
PATH_ARP Path to a supported ARP tool (?)

he value of DIR_IMAGES under Options -> Images

Name Description Value
COLOUR_JPEG_FILES Colourise greyscale JPEG files (?)
ADD_JPEG_COMMENTS Add jpeg timestamp annotations as file header comments (?)
JPEG_FILE_QUALITY Set the JPEG quality setting for the saved event files (1-100) (?)
70
JPEG_ALARM_FILE_QUALITY Set the JPEG quality setting for the saved event files during an alarm (1-100) (?)
0
JPEG_STREAM_QUALITY Set the JPEG quality setting for the streamed 'live' images (1-100) (?)
70
MPEG_TIMED_FRAMES Tag video frames with a timestamp for more realistic streaming (?)
MPEG_LIVE_FORMAT What format 'live' video streams are played in (?)
swf
MPEG_REPLAY_FORMAT What format 'replay' video streams are played in (?)
swf
RAND_STREAM Add a random string to prevent caching of streams (?)
OPT_CAMBOZOLA Is the (optional) cambozola java streaming client installed (?)
PATH_CAMBOZOLA Web path to (optional) cambozola java streaming client (?)
cambozola.jar
RELOAD_CAMBOZOLA After how many seconds should Cambozola be reloaded in live view (?)
0
OPT_FFMPEG Is the ffmpeg video encoder/decoder installed (?)
PATH_FFMPEG Path to (optional) ffmpeg mpeg encoder (?)
FFMPEG_INPUT_OPTIONS Additional input options to ffmpeg (?)
FFMPEG_OUTPUT_OPTIONS Additional output options to ffmpeg (?)
-r 25
FFMPEG_FORMATS Formats to allow for ffmpeg video generation (?)
mpg mpeg wmv asf avi* mov swf 3gp**
FFMPEG_OPEN_TIMEOUT Timeout in seconds when opening a stream. (?)
10
scott.borisch
Posts: 32
Joined: Sun Apr 23, 2017 1:59 pm

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by scott.borisch »

>> Referring back to the wiki instructions, this should be 1920 x 1080.

Actually, when I did this, I got a "missing image" icon.
I then changed back to

Capture Width (pixels): 320
Capture Height (pixels): 240

and it actually started working!
So I don't know why, but live streaming now works.

So the only (known) unresolved issue is

2017-04-23 18:38:40.926482 web_php 4195 ERR Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user /usr/share/zoneminder/www/index.php 158

for which I just posted the requested config info.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder 1.30.2 not working with Amcrest IP2M-842E/ RTP/RTSP missing from Source/Remote Method dropdown

Post by knight-of-ni »

Scott, I've cleaned up this thread to remove the distractions.
scott.borisch wrote:>> Referring back to the wiki instructions, this should be 1920 x 1080.

Ah, I missed that because the Youtube video from Amcrest did not change that field from default.
But the wiki has it. I'll fix that.
You should watch the video again. At 2:33 they set the resolution. I know you said you got it working, but 320x240 resolution is pretty crappy.
scott.borisch wrote: >> To troubleshoot that, we need to see:
>> The value of DIR_EVENTS under Options -> Paths
>> The value of DIR_IMAGES under Options -> Images

And this.
We still need to see the following:

Code: Select all

ls -lh /usr/share/zoneminder/www/events

Code: Select all

ls -lh /usr/share/zoneminder/www/images

Code: Select all

ls -lh /var/cache/zoneminder
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked