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

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

Post by scott.borisch »

Hi:

sborisch@sborisch-P67A-D3-B3:~$ ls -lh /usr/share/zoneminder/www/events
lrwxrwxrwx 1 www-data www-data 28 Mar 31 10:06 /usr/share/zoneminder/www/events -> /var/cache/zoneminder/events

sborisch@sborisch-P67A-D3-B3:~$ ls -lh /usr/share/zoneminder/www/images
lrwxrwxrwx 1 www-data www-data 28 Mar 31 10:06 /usr/share/zoneminder/www/images -> /var/cache/zoneminder/images

sborisch@sborisch-P67A-D3-B3:~$ ls -lh /var/cache/zoneminder
total 12K
drwxr-xr-x 2 root root 4.0K Mar 31 10:04 events
drwxr-xr-x 2 root root 4.0K Mar 31 10:04 images
drwxr-xr-x 2 root root 4.0K Mar 31 10:04 temp
sborisch@sborisch-P67A-D3-B3:~$
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 »

For whatever reason, going to any resolution other than 320x240 still gives the "missing image" icon.

Also, I see some new errors in the log now, so pasting here:

More Clear Refresh Export Close System Log
Updated: Tue 25th Apr, 7:06pm State: alarm Total: 387865 Available: 387865 Displaying: 109
Filter log - Component Server PID Level File Line Reset
Date/Time
Component Server PID Level Message File Line
2017-04-25 19:06:55.291395 web_php 3220 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-25 19:06:54.273085 web_php 2965 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-25 19:06:52.477793 web_php 2965 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-25 19:06:51.964809 web_php 5365 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-25 19:06:51.457940 web_php 2964 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-25 19:06:49.699262 web_php 2964 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-25 19:06:48.677828 web_php 2966 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-25 19:06:46.935857 web_php 2966 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-25 19:06:45.918656 web_php 7510 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-25 19:06:44.139159 web_php 7510 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-25 19:06:43.858244 web_php 7510 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-25 19:06:41.913971 web_php 3216 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-25 19:06:41.377026 web_php 7510 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-25 19:06:41.049693 zms 7705 INF addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55ca739c7bb8 0x7f1ce9e47390 0x55ca739749ad 0x55ca73981648 0x55ca73947e01 0x7f1ce6536830 0x55ca73948bb9 zm_signal.cpp 110
2017-04-25 19:06:40.939364 zms 7705 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 109
2017-04-25 19:06:40.917150 zmc_m2 3129 INF driveway_cam: 168000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-25 19:06:40.912648 zms 7705 ERR Backtrace 6: /usr/lib/zoneminder/cgi-bin/nph-zms(_start+0x29) [0x55ca73948bb9] zm_signal.cpp 102
2017-04-25 19:06:40.895680 zms 7705 ERR Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f1ce6536830] zm_signal.cpp 102
2017-04-25 19:06:40.878607 zms 7705 ERR Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xa91) [0x55ca73947e01] zm_signal.cpp 102
2017-04-25 19:06:40.861603 zms 7705 ERR Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x48) [0x55ca73981648] zm_signal.cpp 102
2017-04-25 19:06:40.844518 zms 7705 ERR Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK7Monitor6GetFPSEv+0xd) [0x55ca739749ad] zm_signal.cpp 102
2017-04-25 19:06:40.827429 zms 7705 ERR Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f1ce9e47390] zm_signal.cpp 102
2017-04-25 19:06:40.810706 zms 7705 ERR Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x55ca739c7bb8] zm_signal.cpp 102
2017-04-25 19:06:40.792532 zms 7705 ERR Signal address is (nil), from 0x55ca739749ad zm_signal.cpp 81
2017-04-25 19:06:40.775538 zms 7705 ERR Got signal 11 (Segmentation fault), crashing zm_signal.cpp 50
2017-04-25 19:06:40.748385 zms 7705 ERR Got unexpected memory map file size 11521760, expected 311041760 zm_monitor.cpp 536
2017-04-25 19:06:36.894331 zms 7704 INF addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55fde54acbb8 0x7ff35d14b390 0x55fde54599ad 0x55fde5466648 0x55fde542ce01 0x7ff35983a830 0x55fde542dbb9 zm_signal.cpp 110
2017-04-25 19:06:36.877024 zms 7704 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 109
2017-04-25 19:06:36.859270 zms 7704 ERR Backtrace 6: /usr/lib/zoneminder/cgi-bin/nph-zms(_start+0x29) [0x55fde542dbb9] zm_signal.cpp 102
2017-04-25 19:06:36.791845 zms 7704 ERR Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7ff35983a830] zm_signal.cpp 102
2017-04-25 19:06:36.757986 zms 7704 ERR Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xa91) [0x55fde542ce01] zm_signal.cpp 102
2017-04-25 19:06:36.723508 zms 7704 ERR Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x48) [0x55fde5466648] zm_signal.cpp 102
2017-04-25 19:06:36.706382 zms 7704 ERR Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK7Monitor6GetFPSEv+0xd) [0x55fde54599ad] zm_signal.cpp 102
2017-04-25 19:06:36.688392 zms 7704 ERR Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7ff35d14b390] zm_signal.cpp 102
2017-04-25 19:06:36.671492 zms 7704 ERR Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x55fde54acbb8] zm_signal.cpp 102
2017-04-25 19:06:36.653400 zms 7704 ERR Signal address is (nil), from 0x55fde54599ad zm_signal.cpp 81
2017-04-25 19:06:36.635545 zms 7704 ERR Got signal 11 (Segmentation fault), crashing zm_signal.cpp 50
2017-04-25 19:06:36.610208 zms 7704 ERR Got unexpected memory map file size 11521760, expected 311041760 zm_monitor.cpp 536
2017-04-25 19:06:33.206767 zms 7688 INF addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x5583fbc6cbb8 0x7f818507f390 0x5583fbc199ad 0x5583fbc26648 0x5583fbbece01 0x7f818176e830 0x5583fbbedbb9 zm_signal.cpp 110
2017-04-25 19:06:33.188912 zms 7688 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 109
2017-04-25 19:06:33.171768 zms 7688 ERR Backtrace 6: /usr/lib/zoneminder/cgi-bin/nph-zms(_start+0x29) [0x5583fbbedbb9] zm_signal.cpp 102
2017-04-25 19:06:33.153757 zms 7688 ERR Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f818176e830] zm_signal.cpp 102
2017-04-25 19:06:33.135959 zms 7688 ERR Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xa91) [0x5583fbbece01] zm_signal.cpp 102
2017-04-25 19:06:33.059586 zms 7688 ERR Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x48) [0x5583fbc26648] zm_signal.cpp 102
2017-04-25 19:06:33.032886 zms 7688 ERR Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK7Monitor6GetFPSEv+0xd) [0x5583fbc199ad] zm_signal.cpp 102
2017-04-25 19:06:33.015880 zms 7688 ERR Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f818507f390] zm_signal.cpp 102
2017-04-25 19:06:32.998951 zms 7688 ERR Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x5583fbc6cbb8] zm_signal.cpp 102
2017-04-25 19:06:32.980950 zms 7688 ERR Signal address is (nil), from 0x5583fbc199ad zm_signal.cpp 81
2017-04-25 19:06:32.963228 zms 7688 ERR Got signal 11 (Segmentation fault), crashing zm_signal.cpp 50
2017-04-25 19:06:32.934683 zms 7688 ERR Got unexpected memory map file size 11521760, expected 311041760 zm_monitor.cpp 536
2017-04-25 19:06:32.809044 web_php 5365 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-25 19:06:31.867754 web_php 2965 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-25 19:06:29.727660 web_php 5365 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-25 19:06:26.965686 web_php 5365 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-25 19:06:26.093368 web_php 5365 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-25 19:06:21.813817 web_php 2964 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-25 19:06:16.984474 web_php 2966 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-25 19:06:15.235290 web_php 2966 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-25 19:06:14.134348 zms 7639 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2017-04-25 19:06:12.147537 web_php 7510 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-25 19:06:12.146513 web_js 2966 WAR Adjusting to minimum width when getting popup size for tag 'watch' - getPopupSize()
2017-04-25 19:06:12.116017 web_php 2966 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-25 19:06:11.766351 web_php 3216 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-25 19:06:07.559248 zmc_m2 3129 INF driveway_cam: 167000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-25 19:06:01.714317 web_php 2962 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-25 19:05:51.653969 web_php 3220 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-25 19:05:44.275340 web_php 5365 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-25 19:05:43.251145 web_php 2964 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-25 19:05:41.605233 web_php 2965 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-25 19:05:41.447550 web_php 2964 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-25 19:05:40.421988 web_php 7510 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-25 19:05:39.378974 web_php 2965 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-25 19:05:38.623996 web_php 7510 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-25 19:05:37.595455 web_php 2966 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-25 19:05:35.744528 web_php 2966 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-25 19:05:34.721935 web_php 2962 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-25 19:05:34.253392 zmc_m2 3129 INF driveway_cam: 166000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-25 19:05:33.037119 web_php 2962 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-25 19:05:32.016741 web_php 3220 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-25 19:05:31.563686 web_php 3216 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-25 19:05:30.342803 web_php 3220 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-25 19:05:29.323652 web_php 5365 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-25 19:05:27.499309 web_php 5365 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-25 19:05:26.479394 web_php 2964 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-25 19:05:24.787480 web_php 2964 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-25 19:05:23.769128 web_php 7510 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-25 19:05:21.923480 web_php 7510 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-25 19:05:21.521581 web_php 2965 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-25 19:05:20.902254 web_php 2966 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-25 19:05:19.192546 web_php 2966 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-25 19:05:18.174163 web_php 2962 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-25 19:05:16.499420 web_php 2962 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-25 19:05:15.476221 web_php 3216 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-25 19:05:13.812021 web_php 3216 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-25 19:05:12.795008 web_php 5365 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-25 19:05:11.452031 web_php 3220 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-25 19:05:11.086141 web_php 5365 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-25 19:05:10.065512 web_php 2964 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-25 19:05:08.321046 web_php 2964 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-25 19:05:07.296069 web_php 7510 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-25 19:05:05.586491 web_php 7510 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-25 19:05:04.561675 web_php 2966 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-25 19:05:02.714091 web_php 2966 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-25 19:05:02.506061 web_php 2966 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-25 19:05:01.409328 web_php 2965 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-25 19:05:00.979480 zmc_m2 3129 INF driveway_cam: 165000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-25 19:05:00.372146 zms 7569 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2017-04-25 19:04:58.628825 web_php 2962 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-25 19:04:58.628795 web_js 2966 WAR Adjusting to minimum width when getting popup size for tag 'watch' - getPopupSize()
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 »

Ok, this should clear up all the "Cannot write" errors:

Code: Select all

sudo chown www-data:www-data -R /var/cache/zoneminder/temp
sudo chown www-data:www-data -R /var/cache/zoneminder/events
sudo chown www-data:www-data -R /var/cache/zoneminder/images
What is still a mystery, however, is why this wasn't set automatically when you installed zoneminder.
Can you tell us where you got zoneminder from and how you installed it?

Once these errors are gone, let's re-asses. Tell us what is or is not working still.

UPDATE: so from the instructions linked in your first post, it sounds like you installed iconnor's ppa. Is that right?
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/
larizzo
Posts: 7
Joined: Wed Apr 26, 2017 3:13 pm

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

Post by larizzo »

I'm having the same issue as OP, if I used any other resolution than 320x240 I get the broken image icon. I'm using iconnor's ppa, zoneminder 1.30.2, this camera is working correctly in zoneminder 1.30.0.

I'm also using rtsp like OP.
Source Type: Libvlc
Source Path: rtsp://admin:HIDDEN@10.0.0.50//Streaming/Channels/1
Remote Method: tcp
Target colorspace: 24bit
Capture Width: 320
Capture Height: 240

EDIT: Solved by RTFMing...
http://zoneminder.readthedocs.io/en/latest/faq.html
In recent kernels the shmmax is set to 33554432 bytes for only 32 MB of maximum shared memory allocatable at a time, hardly enough for ZoneMinder to go above 320 x 240 x 24-bit resolution at 40 frames in the buffer if it is using the /dev/shm shared memory device, so this value needs to be increased. If you are using ZoneMinder with the memory mapped (mmap) compile time option then this doesn’t affect you.

To change the value to 128 MB temporarily during this kernel execution type (for example) :- echo 536870912 >/proc/sys/kernel/shmmax

Be sure to restart ZoneMinder after this.
Last edited by larizzo on Wed Apr 26, 2017 3:28 pm, edited 1 time in total.
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 »

larizzo wrote: Wed Apr 26, 2017 3:18 pm I'm having the same issue as OP, if I used any other resolution than 320x240 I get the broken image icon. I'm using iconnor's ppa, zoneminder 1.30.2, this camera is working correctly in zoneminder 1.30.0.

I'm also using rtsp like OP.
Source Type: Libvlc
Source Path: rtsp://admin:HIDDEN@10.0.0.50//Streaming/Channels/1
Remote Method: tcp
Target colorspace: 24bit
Capture Width: 320
Capture Height: 240
If you open the stream in VLC PLayer, rather than zoneminder, then clock Tools -> Codec, what resolution does VLC report?
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/
larizzo
Posts: 7
Joined: Wed Apr 26, 2017 3:13 pm

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

Post by larizzo »

Was able to solve it, I put an edit in my original post. Thank you for the quick reply! Hopefully, my edit helps OP also.
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'm not going to have time to try this fix tonight. Probably tomorrow. Thanks for the help.
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 »

>> What is still a mystery, however, is why this wasn't set automatically when you installed zoneminder.
>> Can you tell us where you got zoneminder from and how you installed it?
>> Once these errors are gone, let's re-asses. Tell us what is or is not working still.
>> UPDATE: so from the instructions linked in your first post, it sounds like you installed iconnor's ppa. Is that right?

Yes, I installed using:

https://launchpad.net/~iconnor/+archive ... zoneminder

Adding this PPA to your system
You can update your system with unsupported packages from this untrusted PPA by adding ppa
:iconnor/zoneminder to your system's Software Sources. (Read about installing)
sudo add-apt-repository ppa:iconnor/zoneminder
sudo apt-get update

Specifically following these directions:

http://zoneminder.readthedocs.io/en/lat ... untu-16-04
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 »

OK, so here is what I have, after doing this:

sudo chown www-data:www-data -R /var/cache/zoneminder/temp
sudo chown www-data:www-data -R /var/cache/zoneminder/events
sudo chown www-data:www-data -R /var/cache/zoneminder/images

and then I did a reboot to make sure everything restarts cleanly.
I actually still had the resolution set at 1920 x 1080 even though it was not working before.
Now, it **does work**, even though I did not do this (does work meaning I see the camera view at 1920 x 1080)):
echo 536870912 >/proc/sys/kernel/shmmax

So all I need to test is recording.
I'll have to do that later.
Most of the errors in the log are gone, although I see a few potential issues, so I will post here.
The reboot would have been around 7:10, give or take, but I am not sure exactly when.

More Clear Refresh Export Close System Log
Updated: Thu 27th Apr, 7:25am State: alert Total: 405279 Available: 405279 Displaying: 100
Filter log - Component Server PID Level File Line Reset
Date/Time
Component Server PID Level Message File Line
2017-04-27 07:25:05.355496 zmc_m2 23552 INF driveway_cam: 32000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:24:32.133022 zmc_m2 23552 INF driveway_cam: 31000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:23:58.764975 zmc_m2 23552 INF driveway_cam: 30000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:23:25.501348 zmc_m2 23552 INF driveway_cam: 29000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:22:52.192735 zmc_m2 23552 INF driveway_cam: 28000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:22:18.847700 zmc_m2 23552 INF driveway_cam: 27000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:22:10.677700 zmaudit 23483 INF Database monitor '2' does not exist in filesystem zmaudit.pl
2017-04-27 07:21:45.549878 zmc_m2 23552 INF driveway_cam: 26000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:21:12.288898 zmc_m2 23552 INF driveway_cam: 25000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:20:38.924353 zmc_m2 23552 INF driveway_cam: 24000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:20:05.626404 zmc_m2 23552 INF driveway_cam: 23000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:19:35.347136 zms 26044 ERR Terminating, last frame sent time 1493295575.150175 secs more than maximum of 10.000000 zm_monitor.cpp 4213
2017-04-27 07:19:35.150333 zms 26044 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2017-04-27 07:19:34.844776 zms 26041 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2017-04-27 07:19:32.367247 zmc_m2 23552 INF driveway_cam: 22000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:19:03.381472 zms 26017 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2017-04-27 07:18:59.078818 zmc_m2 23552 INF driveway_cam: 21000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:18:25.700575 zmc_m2 23552 INF driveway_cam: 20000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:17:52.431365 zmc_m2 23552 INF driveway_cam: 19000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:17:19.083414 zmc_m2 23552 INF driveway_cam: 18000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:16:45.786373 zmc_m2 23552 INF driveway_cam: 17000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:16:12.524840 zmc_m2 23552 INF driveway_cam: 16000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:15:39.149587 zmc_m2 23552 INF driveway_cam: 15000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:15:05.863633 zmc_m2 23552 INF driveway_cam: 14000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:14:33.255882 web_js 24337 ERR getStreamCmdResponse stream error: Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. - checkStreamForErrors() ?view=watch
2017-04-27 07:14:32.604843 zmc_m2 23552 INF driveway_cam: 13000 - Capturing at 27.78 fps zm_monitor.cpp 3125
2017-04-27 07:14:31.310643 web_php 24337 ERR Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. /usr/share/zoneminder/www/includes/functions.php 2031
2017-04-27 07:14:23.421428 zms 23559 ERR Terminating, last frame sent time 10.600632 secs more than maximum of 10.000000 zm_monitor.cpp 4213
2017-04-27 07:13:56.755725 zmc_m2 23552 INF driveway_cam: 12000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:13:23.414840 zmc_m2 23552 INF driveway_cam: 11000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:12:50.094034 zmc_m2 23552 INF driveway_cam: 10000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:12:16.831296 zmc_m2 23552 INF driveway_cam: 9000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:11:43.493167 zmc_m2 23552 INF driveway_cam: 8000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:11:10.174024 zmc_m2 23552 INF driveway_cam: 7000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:10:36.886416 zmc_m2 23552 INF driveway_cam: 6000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:10:03.553088 zmc_m2 23552 INF driveway_cam: 5000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:09:30.261008 zmc_m2 23552 INF driveway_cam: 4000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:08:57.016102 zmc_m2 23552 INF driveway_cam: 3000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:08:23.632201 zmc_m2 23552 INF driveway_cam: 2000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 07:07:50.321621 zmc_m2 23552 INF driveway_cam: 1000 - Capturing at 28.57 fps zm_monitor.cpp 3125
2017-04-27 07:07:18.378900 web_js 23399 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-728816s.sock ) failed: Connection refused - checkStreamForErrors() ?view=watch
2017-04-27 07:07:18.333125 web_php 23399 ERR socket_sendto( /var/run/zm/zms-728816s.sock ) failed: Connection refused /usr/share/zoneminder/www/includes/functions.php 2031
2017-04-27 07:07:16.168025 zms 23467 INF addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x556a97e58bb8 0x7fe6aaed2390 0x556a97e059ad 0x556a97e12648 0x556a97dd8e01 0x7fe6a75c1830 0x556a97dd9bb9 zm_signal.cpp 110
2017-04-27 07:07:16.033930 zms 23467 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 109
2017-04-27 07:07:15.982979 zms 23467 ERR Backtrace 6: /usr/lib/zoneminder/cgi-bin/nph-zms(_start+0x29) [0x556a97dd9bb9] zm_signal.cpp 102
2017-04-27 07:07:15.923863 zms 23467 ERR Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fe6a75c1830] zm_signal.cpp 102
2017-04-27 07:07:15.797310 zms 23467 ERR Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xa91) [0x556a97dd8e01] zm_signal.cpp 102
2017-04-27 07:07:15.755021 zmc_m2 23552 INF Priming capture from rtsp://admin:admin@192.168.1.93:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif zm_ffmpeg_camera.cpp 104
2017-04-27 07:07:15.678869 zms 23467 ERR Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x48) [0x556a97e12648] zm_signal.cpp 102
2017-04-27 07:07:15.629901 zmc_m2 23552 INF Starting Capture version 1.30.2 zmc.cpp 250
2017-04-27 07:07:15.539131 zms 23467 ERR Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK7Monitor6GetFPSEv+0xd) [0x556a97e059ad] zm_signal.cpp 102
2017-04-27 07:07:15.505193 zms 23467 ERR Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7fe6aaed2390] zm_signal.cpp 102
2017-04-27 07:07:15.471116 zms 23467 ERR Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x556a97e58bb8] zm_signal.cpp 102
2017-04-27 07:07:15.455440 zmdc 23552 INF 'zmc -m 2' started at 17/04/27 07:07:15 zmdc.pl
2017-04-27 07:07:15.455430 zmdc 23443 INF 'zmc -m 2' starting at 17/04/27 07:07:15, pid = 23552 zmdc.pl
2017-04-27 07:07:15.436679 zms 23467 ERR Signal address is (nil), from 0x556a97e059ad zm_signal.cpp 81
2017-04-27 07:07:15.394340 zmdc 23443 INF Starting pending process, zmc -m 2 zmdc.pl
2017-04-27 07:07:15.352339 zms 23467 ERR Got signal 11 (Segmentation fault), crashing zm_signal.cpp 50
2017-04-27 07:07:15.238710 zmdc 23443 ERR 'zmc -m 2' exited abnormally, exit status 255 zmdc.pl
2017-04-27 07:07:14.744808 zms 23467 ERR Got empty memory map file size 0, is the zmc process for this monitor running? zm_monitor.cpp 533
2017-04-27 07:07:12.273190 zmfilter 23478 INF Scanning for events zmfilter.pl
2017-04-27 07:07:11.326880 zmdc 23502 INF 'zmtelemetry.pl' started at 17/04/27 07:07:11 zmdc.pl
2017-04-27 07:07:11.326860 zmdc 23443 INF 'zmtelemetry.pl' starting at 17/04/27 07:07:11, pid = 23502 zmdc.pl
2017-04-27 07:07:11.101640 zmwatch 23489 INF Watchdog pausing for 30 seconds zmwatch.pl
2017-04-27 07:07:11.051140 zmdc 23495 INF 'zmupdate.pl -c' started at 17/04/27 07:07:11 zmdc.pl
2017-04-27 07:07:11.051140 zmdc 23443 INF 'zmupdate.pl -c' starting at 17/04/27 07:07:11, pid = 23495 zmdc.pl
2017-04-27 07:07:10.928520 zmwatch 23489 INF Watchdog starting zmwatch.pl
2017-04-27 07:07:10.732620 zmdc 23443 INF 'zmwatch.pl' starting at 17/04/27 07:07:10, pid = 23489 zmdc.pl
2017-04-27 07:07:10.732620 zmdc 23489 INF 'zmwatch.pl' started at 17/04/27 07:07:10 zmdc.pl
2017-04-27 07:07:10.441460 zmdc 23443 INF 'zmaudit.pl -c' starting at 17/04/27 07:07:10, pid = 23483 zmdc.pl
2017-04-27 07:07:10.441460 zmdc 23483 INF 'zmaudit.pl -c' started at 17/04/27 07:07:10 zmdc.pl
2017-04-27 07:07:10.034850 zmdc 23478 INF 'zmfilter.pl' started at 17/04/27 07:07:10 zmdc.pl
2017-04-27 07:07:10.034850 zmdc 23443 INF 'zmfilter.pl' starting at 17/04/27 07:07:10, pid = 23478 zmdc.pl
2017-04-27 07:07:09.050270 zmdc 23443 INF 'zmc -m 2' starting at 17/04/27 07:07:09, pid = 23473 zmdc.pl
2017-04-27 07:07:09.050270 zmdc 23473 INF 'zmc -m 2' started at 17/04/27 07:07:09 zmdc.pl
2017-04-27 07:07:08.759540 zmpkg 23414 INF Single server configuration detected. Starting up services. zmpkg.pl
2017-04-27 07:07:08.458620 web_js 23397 ERR getStreamCmdResponse stream error: Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. - checkStreamForErrors() ?view=watch
2017-04-27 07:07:06.190171 web_php 23397 ERR Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. /usr/share/zoneminder/www/includes/functions.php 2031
2017-04-27 07:07:05.756750 zmdc 23443 INF Server starting at 17/04/27 07:07:05 zmdc.pl
2017-04-27 07:07:05.071510 zmpkg 23414 INF Command: start zmpkg.pl
2017-04-27 07:07:03.987650 zmpkg 23414 INF Sanity checking States table... zmpkg.pl
2017-04-27 07:03:33.451940 zmdc 3016 INF Server shutdown at 17/04/27 07:03:33 zmdc.pl
2017-04-27 07:03:23.200220 zmdc 3016 INF Server shutdown at 17/04/27 07:03:23 zmdc.pl
2017-04-27 07:03:12.575190 zmdc 3016 INF 'zmc -m 2' exited normally zmdc.pl
2017-04-27 07:03:10.780259 zmc_m2 3129 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2017-04-27 07:03:10.688050 zmdc 3016 INF 'zmwatch.pl' exited, signal 14 zmdc.pl
2017-04-27 07:03:10.671130 zmdc 3016 INF 'zmc -m 2' sending stop to pid 3129 at 17/04/27 07:03:10 zmdc.pl
2017-04-27 07:03:10.654120 zmdc 3016 INF 'zmtelemetry.pl' exited, signal 14 zmdc.pl
2017-04-27 07:03:10.637240 zmdc 3016 INF 'zmwatch.pl' sending stop to pid 3107 at 17/04/27 07:03:10 zmdc.pl
2017-04-27 07:03:10.620200 zmdc 3016 INF 'zmupdate.pl -c' exited, signal 14 zmdc.pl
2017-04-27 07:03:10.603330 zmdc 3016 INF 'zmtelemetry.pl' sending stop to pid 3122 at 17/04/27 07:03:10 zmdc.pl
2017-04-27 07:03:10.586120 zmdc 3016 INF 'zmaudit.pl -c' exited, signal 14 zmdc.pl
2017-04-27 07:03:10.544020 zmdc 3016 INF 'zmupdate.pl -c' sending stop to pid 15436 at 17/04/27 07:03:10 zmdc.pl
2017-04-27 07:03:10.449050 zmdc 3016 INF 'zmfilter.pl' exited, signal 14 zmdc.pl
2017-04-27 07:03:10.418760 zmdc 3016 INF 'zmaudit.pl -c' sending stop to pid 3100 at 17/04/27 07:03:10 zmdc.pl
2017-04-27 07:03:10.392450 zmdc 3016 INF 'zmfilter.pl' sending stop to pid 3095 at 17/04/27 07:03:10 zmdc.pl
2017-04-27 07:03:09.933990 zmpkg 6697 INF Command: stop zmpkg.pl
2017-04-27 07:03:09.773180 zmpkg 6697 INF Sanity checking States table... zmpkg.pl
2017-04-27 07:02:49.252649 zmc_m2 3129 INF driveway_cam: 4050000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 07:02:15.954883 zmc_m2 3129 INF driveway_cam: 4049000 - Capturing at 30.30 fps zm_monitor.cpp 3125
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 »

Recommend you lower the frame rate in your camera. 5 fps is a good frame rate for general surveillance such as a driveway.

Something else to keep an eye on is the amount of free space in your ramdisk /dev/shm. The higher the camera resolution, the more memory is consumed. You should see how full your ramdisk is in the top right of the web console, but I still prefer to just do it from the command line:

Code: Select all

ls -lh /dev/shm
The symptoms you describe, with lower resolutions working but higher resolutions not, can be caused by a lack of space in /dev/shm.
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/
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

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

Post by rockedge »

Code: Select all

chown -R www-data:www-data /var/cache/zoneminder
Check for the symlinks for /zm/events, /zm/images and /zm/temp exist. This error can cause all kinds of problems.
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 »

So setting
General => Maximum FPS to 5
causes the image to have significant issues with freezing. Sometimes 10 seconds or more.
Also, I see numerous errors in the log.
When I return Maximum FPS to the default (blank), image updates are smooth, and the log is much cleaner.
I'll probably try setting up recording on the weekend.


Date/Time
Component Server PID Level Message File Line
2017-04-27 22:07:47.488419 zmc_m2 3006 INF driveway_cam: 13000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 22:07:14.188542 zmc_m2 3006 INF driveway_cam: 12000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 22:06:40.783649 zmc_m2 3006 INF driveway_cam: 11000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 22:06:07.464234 zmc_m2 3006 INF driveway_cam: 10000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 22:05:34.141567 zmc_m2 3006 INF driveway_cam: 9000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 22:05:00.798997 zmc_m2 3006 INF driveway_cam: 8000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 22:04:50.220236 zms 4525 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2017-04-27 22:04:27.491855 zmc_m2 3006 INF driveway_cam: 7000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 22:03:54.152366 zmc_m2 3006 INF driveway_cam: 6000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 22:03:20.785180 zmc_m2 3006 INF driveway_cam: 5000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 22:02:47.480778 zmc_m2 3006 INF driveway_cam: 4000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 22:02:14.116428 zmc_m2 3006 INF driveway_cam: 3000 - Capturing at 29.41 fps zm_monitor.cpp 3125
2017-04-27 22:01:40.751049 zmc_m2 3006 INF driveway_cam: 2000 - Capturing at 30.30 fps zm_monitor.cpp 3125
2017-04-27 22:01:07.481296 zmc_m2 3006 INF driveway_cam: 1000 - Capturing at 28.57 fps zm_monitor.cpp 3125
2017-04-27 22:00:32.952333 zmc_m2 3006 INF Priming capture from rtsp://admin:admin@192.168.1.93:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif zm_ffmpeg_camera.cpp 104
2017-04-27 22:00:32.863593 zmc_m2 3006 INF Starting Capture version 1.30.2 zmc.cpp 250
2017-04-27 22:00:32.594420 zmdc 3006 INF 'zmc -m 2' started at 17/04/27 22:00:32 zmdc.pl
2017-04-27 22:00:32.594420 zmdc 2899 INF 'zmc -m 2' starting at 17/04/27 22:00:32, pid = 3006 zmdc.pl
2017-04-27 22:00:32.181580 zmdc 2899 INF Starting pending process, zmc -m 2 zmdc.pl
2017-04-27 22:00:30.352000 zmdc 2899 ERR 'zmc -m 2' exited abnormally, exit status 255 zmdc.pl
2017-04-27 22:00:29.448140 zmdc 3000 INF 'zmtelemetry.pl' started at 17/04/27 22:00:29 zmdc.pl
2017-04-27 22:00:29.448110 zmdc 2899 INF 'zmtelemetry.pl' starting at 17/04/27 22:00:29, pid = 3000 zmdc.pl
2017-04-27 22:00:29.239620 zmwatch 2986 INF Watchdog pausing for 30 seconds zmwatch.pl
2017-04-27 22:00:29.178600 zmdc 2899 INF 'zmupdate.pl -c' starting at 17/04/27 22:00:29, pid = 2995 zmdc.pl
2017-04-27 22:00:29.178600 zmdc 2995 INF 'zmupdate.pl -c' started at 17/04/27 22:00:29 zmdc.pl
2017-04-27 22:00:29.172440 zmwatch 2986 INF Watchdog starting zmwatch.pl
2017-04-27 22:00:28.882650 zmfilter 2975 INF Scanning for events zmfilter.pl
2017-04-27 22:00:28.852080 zmdc 2986 INF 'zmwatch.pl' started at 17/04/27 22:00:28 zmdc.pl
2017-04-27 22:00:28.852070 zmdc 2899 INF 'zmwatch.pl' starting at 17/04/27 22:00:28, pid = 2986 zmdc.pl
2017-04-27 22:00:28.476130 zmdc 2980 INF 'zmaudit.pl -c' started at 17/04/27 22:00:28 zmdc.pl
2017-04-27 22:00:28.475250 zmdc 2899 INF 'zmaudit.pl -c' starting at 17/04/27 22:00:28, pid = 2980 zmdc.pl
2017-04-27 22:00:28.101470 zmdc 2975 INF 'zmfilter.pl' started at 17/04/27 22:00:28 zmdc.pl
2017-04-27 22:00:28.100990 zmdc 2899 INF 'zmfilter.pl' starting at 17/04/27 22:00:28, pid = 2975 zmdc.pl
2017-04-27 22:00:27.750470 zmdc 2971 INF 'zmc -m 2' started at 17/04/27 22:00:27 zmdc.pl
2017-04-27 22:00:27.750470 zmdc 2899 INF 'zmc -m 2' starting at 17/04/27 22:00:27, pid = 2971 zmdc.pl
2017-04-27 22:00:26.847060 zmpkg 2877 INF Single server configuration detected. Starting up services. zmpkg.pl
2017-04-27 22:00:23.844630 zmdc 2899 INF Server starting at 17/04/27 22:00:23 zmdc.pl
2017-04-27 22:00:22.073580 zmpkg 2877 INF Command: start zmpkg.pl
2017-04-27 22:00:21.554000 zmpkg 2877 INF Sanity checking States table... zmpkg.pl
2017-04-27 21:47:17.276550 zmdc 2903 INF Server shutdown at 17/04/27 21:47:17 zmdc.pl
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.borisch wrote: Fri Apr 28, 2017 3:08 am So setting
General => Maximum FPS to 5
No, I didn't tell you to lower the framerate in ZoneMinder. I said to lower the framerate in the camera.
Read the help text associated with the max fps field by clicking the "?", leave that field empty (along with max alarm fps and analysis fps), then go to your camera's web portal, find where to set the frame rate, and then lower it to 5.
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/
faspina
Posts: 8
Joined: Thu Apr 27, 2017 4:40 pm

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

Post by faspina »

I have this same camera, i got it to work with FFMPEG but I am getting these in the log, I can view the stream and have not had a chance to play with MODECT yet.

Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information.
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, the Amcrest Quick start guide doesn't mention the direct web interface. It only mentions using www.amcrest.view and Android/iOS apps. I found it buried in the user manual chapter 5. And, it only works in Windows with IE it appears. But I was able to set the frame rate to 5 fps that way. The video looks smooth in the Zoneminder web interface now (it was also smooth at the default 30 fps, but I agree that seems excessive.)

I see a few errors in the log at startup. Not sure if they are legit or an issue with (perhaps) services not coming up in the right order. They don't seem to persist. I'll post them here:

2017-04-28 17:40:38.859829 web_js 2791 ERR getStreamCmdResponse stream error: Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. - checkStreamForErrors() ?view=watch
2017-04-28 17:40:38.790275 web_php 2791 ERR Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. /usr/share/zoneminder/www/includes/functions.php 2031
2017-04-28 17:40:28.591969 zms 2956 ERR Terminating, last frame sent time 1493419228.091894 secs more than maximum of 10.000000 zm_monitor.cpp 4213
2017-04-28 17:40:26.782533 web_js 2789 ERR getStreamCmdResponse stream error: Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. - checkStreamForErrors() ?view=watch
2017-04-28 17:40:26.670526 web_php 2789 ERR Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. /usr/share/zoneminder/www/includes/functions.php 2031

2017-04-28 17:40:22.020770 zmdc 2843 ERR 'zmc -m 2' exited abnormally, exit status 255 zmdc.pl


Plan to setup recording this weekend.
Locked