My ZM installation has a bad tendency to stop by itself, once in a while. Today it did it again, apparantly caused by some network frame issue. Why are the incomplete frames not just discarded? I see this in the log, any ideas?:
2018-01-24 06:21:06.605646 zmc_m6 23329 ERR 11: 00 00 01 06 e5 01 80 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-24 06:21:06.599315 zmc_m6 23329 ERR Error while decoding frame 1599719 zm_remote_camera_rtsp.cpp 322
2018-01-24 06:20:59.113188 zmc_m6 23329 ERR 11: 00 00 01 06 e5 01 7e 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-24 06:20:59.098268 zmc_m6 23329 ERR Error while decoding frame 1599659 zm_remote_camera_rtsp.cpp 322
2018-01-24 06:20:56.265242 zmc_m5 2296 WAR Discarding incomplete frame 5635, 0 bytes zm_rtp_source.cpp 336
2018-01-24 06:20:56.257851 zmc_m5 2296 WAR Discarding partial frame 5635, 136900 bytes zm_rtp_source.cpp 345
2018-01-24 06:20:56.245466 zmc_m5 2296 WAR Packet in sequence, gap 27 zm_rtp_source.cpp 127
2018-01-24 06:20:51.588678 zmc_m6 23329 ERR 11: 00 00 01 06 e5 01 7c 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-24 06:20:51.581368 zmc_m6 23329 ERR Error while decoding frame 1599599 zm_remote_camera_rtsp.cpp 322
2018-01-24 06:20:44.074288 zmc_m6 23329 ERR 11: 00 00 01 06 e5 01 7a 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-24 06:20:44.069012 zmc_m6 23329 ERR Error while decoding frame 1599539 zm_remote_camera_rtsp.cpp 322
2018-01-24 06:20:41.264269 zmc_m5 2296 WAR Discarding incomplete frame 5513, 0 bytes zm_rtp_source.cpp 336
2018-01-24 06:20:41.257768 zmc_m5 2296 WAR Discarding partial frame 5513, 136900 bytes zm_rtp_source.cpp 345
2018-01-24 06:20:41.250022 zmc_m5 2296 WAR Packet in sequence, gap 27 zm_rtp_source.cpp 127
ZM stopped with error
Re: ZM stopped with error
Are you using UDP or TCP with your monitor settings? You should use TCP. Check the camera settings and lower the key frame interval and frame rate (5 FPS is good for security cameras). Check the tmpfs to be sure you are not out of space.
Re: ZM stopped with error
I don't seem to have a TCP/UDP options choice in the cameras, and no key frame settings.
One of the complaining cameras, a Trendet TV-IP320PI, has a main stream of type H264. It also has a secondary stream of much lower resolution, thus of no interest to me.
ZM receives data from this camera suing RTSP -> RTSP/Unicast. I guess that's TCP.
tmpfs is at 26% so it shouldn't be an issue.
One of the complaining cameras, a Trendet TV-IP320PI, has a main stream of type H264. It also has a secondary stream of much lower resolution, thus of no interest to me.
ZM receives data from this camera suing RTSP -> RTSP/Unicast. I guess that's TCP.
tmpfs is at 26% so it shouldn't be an issue.
Re: ZM stopped with error
TCP/UDP is in Zoneminder - Source Tab - Remote Method
Key Frame Interval is in the camera settings and sets how often a full image is sent from the camera. Likely you should be using ffmpeg in Zoneminder.
Key Frame Interval is in the camera settings and sets how often a full image is sent from the camera. Likely you should be using ffmpeg in Zoneminder.
Re: ZM stopped with error
Aaah. So, what equals what - is "RTP/Unicast" TCP?
Since my first post, I reinstalleded ZM on another machine. It lowered the /dev/shm usage, to the 26% mentioned, but now this new installation has stopped too. Like with my first installation, it seems to be caused by decoding frame issues:
2018-01-31 06:10:37.094663 zmc_m6 1976 ERR 11: 00 00 01 06 e5 01 9c 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-31 06:10:37.050309 zmc_m6 1976 ERR Error while decoding frame 609956 zm_remote_camera_rtsp.cpp 322
2018-01-31 06:10:32.615748 zmc_m4 7917 ERR 11: 00 00 01 06 e5 01 86 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-31 06:10:32.574015 zmc_m4 7917 ERR Error while decoding frame 494100 zm_remote_camera_rtsp.cpp 322
2018-01-31 06:10:29.579578 zmc_m6 1976 ERR 11: 00 00 01 06 e5 01 9a 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-31 06:10:29.540084 zmc_m6 1976 ERR Error while decoding frame 609896 zm_remote_camera_rtsp.cpp 322
Since my first post, I reinstalleded ZM on another machine. It lowered the /dev/shm usage, to the 26% mentioned, but now this new installation has stopped too. Like with my first installation, it seems to be caused by decoding frame issues:
2018-01-31 06:10:37.094663 zmc_m6 1976 ERR 11: 00 00 01 06 e5 01 9c 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-31 06:10:37.050309 zmc_m6 1976 ERR Error while decoding frame 609956 zm_remote_camera_rtsp.cpp 322
2018-01-31 06:10:32.615748 zmc_m4 7917 ERR 11: 00 00 01 06 e5 01 86 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-31 06:10:32.574015 zmc_m4 7917 ERR Error while decoding frame 494100 zm_remote_camera_rtsp.cpp 322
2018-01-31 06:10:29.579578 zmc_m6 1976 ERR 11: 00 00 01 06 e5 01 9a 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-01-31 06:10:29.540084 zmc_m6 1976 ERR Error while decoding frame 609896 zm_remote_camera_rtsp.cpp 322
Re: ZM stopped with error
ZM has stopped again. I can't say it's running smoothly. The newest part of the log says:
2018-02-06 17:18:16.920335 zmc_m5 1940 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1141
2018-02-06 17:18:16.836086 zmc_m8 22542 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1141
2018-02-06 17:18:16.785534 zmc_m5 1940 ERR Unable to read subheader zm_remote_camera_http.cpp 977
2018-02-06 17:18:16.685225 zmc_m8 22542 ERR Unable to read content zm_remote_camera_http.cpp 1026
2018-02-06 17:18:16.637914 zma_m3 8873 INF M3 svinesti Safehome: 126 - Closing event 1182, shutting down zm_monitor.cpp 625
2018-02-06 17:18:16.635743 zmc_m5 1940 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 175
2018-02-06 17:18:16.634814 zmc_m8 22542 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 175
2018-02-06 17:18:16.519476 zma_m8 30212 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.519447 zma_m5 1961 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.519415 zma_m2 28738 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518945 zma_m4 28940 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518835 zma_m1 24808 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518791 zma_m3 8873 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518450 zmc_m8 22542 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518103 zmc_m4 1942 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518072 zmc_m6 1938 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518038 zma_m6 22524 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518003 zmc_m5 1940 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.517843 zmc_m1 8120 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.517550 zmc_m2 8671 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.259910 zmpkg 8877 INF Command: stop zmpkg.pl
2018-02-06 17:18:16.193210 zmpkg 8877 INF Sanity checking States table... zmpkg.pl
2018-02-06 17:18:16.025880 zmdc 1765 INF 'zmc -m 3' exited normally zmdc.pl
2018-02-06 17:18:15.962860 zmdc 1765 WAR 'zmc -m 3' has not stopped at 18/02/06 17:18:15. Sending KILL to pid 8870 zmdc.pl
2018-02-06 17:18:14.113576 zmc_m6 1938 ERR 11: 00 00 01 06 e5 01 4c 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-02-06 17:18:14.079133 zmc_m6 1938 ERR Error while decoding frame 3300045 zm_remote_camera_rtsp.cpp 322
2018-02-06 17:18:09.962211 zmc_m3 8870 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:09.930320 zmdc 1765 INF 'zmc -m 3' sending stop to pid 8870 at 18/02/06 17:18:09 zmdc.pl
2018-02-06 17:18:09.788380 zmwatch 1874 INF Restarting capture daemon for M3 svinesti Safehome, time since last capture 9 seconds (1517933889-1517933880) zmwatch.pl
2018-02-06 17:18:09.311704 zmc_m4 1942 ERR 11: 00 00 01 06 e5 01 dd 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-02-06 17:18:09.273573 zmc_m4 1942 ERR Error while decoding frame 3299891 zm_remote_camera_rtsp.cpp 322
2018-02-06 17:18:08.327672 zmc_m6 1938 INF M6 Svinesti mod terrasse: 3300000 - Capturing at 8.00 fps zm_monitor.cpp 3125
2018-02-06 17:18:06.594188 zmc_m6 1938 ERR 11: 00 00 01 06 e5 01 4a 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-02-06 17:18:06.550177 zmc_m6 1938 ERR Error while decoding frame 3299985 zm_remote_camera_rtsp.cpp 322
2018-02-06 17:18:01.800991 zmc_m4 1942 ERR 11: 00 00 01 06 e5 01 db 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-02-06 17:18:01.762414 zmc_m4 1942 ERR Error while decoding frame 3299831 zm_remote_camera_rtsp.cpp 322
2018-02-06 17:18:16.920335 zmc_m5 1940 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1141
2018-02-06 17:18:16.836086 zmc_m8 22542 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1141
2018-02-06 17:18:16.785534 zmc_m5 1940 ERR Unable to read subheader zm_remote_camera_http.cpp 977
2018-02-06 17:18:16.685225 zmc_m8 22542 ERR Unable to read content zm_remote_camera_http.cpp 1026
2018-02-06 17:18:16.637914 zma_m3 8873 INF M3 svinesti Safehome: 126 - Closing event 1182, shutting down zm_monitor.cpp 625
2018-02-06 17:18:16.635743 zmc_m5 1940 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 175
2018-02-06 17:18:16.634814 zmc_m8 22542 ERR Select error: Interrupted system call zm_remote_camera_http.cpp 175
2018-02-06 17:18:16.519476 zma_m8 30212 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.519447 zma_m5 1961 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.519415 zma_m2 28738 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518945 zma_m4 28940 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518835 zma_m1 24808 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518791 zma_m3 8873 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518450 zmc_m8 22542 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518103 zmc_m4 1942 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518072 zmc_m6 1938 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518038 zma_m6 22524 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.518003 zmc_m5 1940 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.517843 zmc_m1 8120 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.517550 zmc_m2 8671 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:16.259910 zmpkg 8877 INF Command: stop zmpkg.pl
2018-02-06 17:18:16.193210 zmpkg 8877 INF Sanity checking States table... zmpkg.pl
2018-02-06 17:18:16.025880 zmdc 1765 INF 'zmc -m 3' exited normally zmdc.pl
2018-02-06 17:18:15.962860 zmdc 1765 WAR 'zmc -m 3' has not stopped at 18/02/06 17:18:15. Sending KILL to pid 8870 zmdc.pl
2018-02-06 17:18:14.113576 zmc_m6 1938 ERR 11: 00 00 01 06 e5 01 4c 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-02-06 17:18:14.079133 zmc_m6 1938 ERR Error while decoding frame 3300045 zm_remote_camera_rtsp.cpp 322
2018-02-06 17:18:09.962211 zmc_m3 8870 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-02-06 17:18:09.930320 zmdc 1765 INF 'zmc -m 3' sending stop to pid 8870 at 18/02/06 17:18:09 zmdc.pl
2018-02-06 17:18:09.788380 zmwatch 1874 INF Restarting capture daemon for M3 svinesti Safehome, time since last capture 9 seconds (1517933889-1517933880) zmwatch.pl
2018-02-06 17:18:09.311704 zmc_m4 1942 ERR 11: 00 00 01 06 e5 01 dd 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-02-06 17:18:09.273573 zmc_m4 1942 ERR Error while decoding frame 3299891 zm_remote_camera_rtsp.cpp 322
2018-02-06 17:18:08.327672 zmc_m6 1938 INF M6 Svinesti mod terrasse: 3300000 - Capturing at 8.00 fps zm_monitor.cpp 3125
2018-02-06 17:18:06.594188 zmc_m6 1938 ERR 11: 00 00 01 06 e5 01 4a 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-02-06 17:18:06.550177 zmc_m6 1938 ERR Error while decoding frame 3299985 zm_remote_camera_rtsp.cpp 322
2018-02-06 17:18:01.800991 zmc_m4 1942 ERR 11: 00 00 01 06 e5 01 db 80 00 00 03 zm_remote_camera_rtsp.cpp 323
2018-02-06 17:18:01.762414 zmc_m4 1942 ERR Error while decoding frame 3299831 zm_remote_camera_rtsp.cpp 322