After a while, only 100% grey is captured from some but not all cameras
Posted: Tue Mar 15, 2016 12:04 pm
My first post(!)
I have trouble with ZM - after some hours (stretching randomly from a few hours up to more than a whole day) of successful running some cameras start to show a 100% grey image. Hitting the Save button in ZM's settings for that monitor (without making any changes) refreshes the image for some additional hours.
I'm a total beginner with ZM and have the following setup:
- Raspberry PI 2 (4 core) running Debian "Jessie" (latest NOOB)
- External disk for storing of ZM-data (MySQL/images/events)
- ZoneMinder 1.29 built from source (http://zoneminder.readthedocs.org/en/la ... ebian.html)
After some initial struggle with getting ZM and Apache to "marry" (enable site, enable CGI, location of cgi-bin folder, etc.) ZM finally started up!
I've added three cameras (all running latest available firmware):
2 x ACTi D72a (semi-professional outdoor 3MP fixed dome)
1 x AZTech WIPC408HD ("home use" Pan-Tilt thingy)
The AZTech seem to only provide a 1280x720 image while the ACTi can be configured with two independent streams from 640x360 up to 1920x1080 with various settings (H.264, MPEG, etc.).
The trouble is that the capturing from the ACTi cameras (I'm so far using 640x360, 3 fps to preserve CPU in the Raspberry) turn 100% grey after some hours, up to days.
I have experimented some with the bitrates (variable -> fixed) and H.264 settings (Baseline -> Main, but not yet High) to no avail.
When the problem has struck, I still see same amount of network traffic (e.g. with nethogs) and CPU load (top) dissipated by the associated zmc process. By opening the monitor settings for that camera (where RTSP, IP address, etc. details are set) and pressing Save (with no change!) a new period of successful capturing is "bought".
When viewing the cameras, the ACTi image sometimes (rather seldom) briefly flicker to 100% grey and quickly back to normal. I have not managed to find out if this glitch is fed from the camera, or "invented" in the zmc capturing or later.
I do not have any issues with the cheaper "home-use" camera running higher resolution and framerate.
Removing the AZTech monitor does not help (CPU load is reduced by some 30% down to 40%, but 70% is far from the 400% available from the four core processor of the RPi2). No glitches in the "dmesg" output or other logs in the Raspberry (/var/log/daemon,syslog,etc).
The problem often strikes one camera first and the other some time after - the image attached above show one monitor down.
All cameras are wired (no wireless) - no issues with network seen (so far...).
Here is a sample of warnings and errors I get from xmc (zm_remote_camera_rtsp.cpp) capturing one of the ACTi cameras:
Error while decoding frame 318728
Discarding incomplete frame 476810, 0 bytes
Discarding partial frame 476810, 56644 bytes
Packet in sequence, gap 14
Unexpected channel selector 239 in RTSP interleaved data
Unexpected format RTSP interleaved data, resyncing by 9 bytes
Unexpected format RTSP interleaved data, dumping 52 bytes
There are also some errors just containing a hex dump of varying bytes.
I have not been able to connect a "greyout" event to any of these warnings and errors, capture seem to continue even though they are output.
I'd appreciate any help I can get.
- Switch from H.264 to JPEG?
- Adjusting resolution
- Adjusting H.264/JPEG settings in camera?
- Switch from RTSP protocol to another?
- Any events (there are plenty of events recorded in the ZM logs - but I can not tell if they are relevant or not) to examine in more detail?
- Any additional logging I can enable to provide reasons for why zmc start to capture 100% grey after some time?
- Track same cam feed with another device, e.g. VLC Player to see if it also quit when ZM does?
Regards
/f
I have trouble with ZM - after some hours (stretching randomly from a few hours up to more than a whole day) of successful running some cameras start to show a 100% grey image. Hitting the Save button in ZM's settings for that monitor (without making any changes) refreshes the image for some additional hours.
I'm a total beginner with ZM and have the following setup:
- Raspberry PI 2 (4 core) running Debian "Jessie" (latest NOOB)
- External disk for storing of ZM-data (MySQL/images/events)
- ZoneMinder 1.29 built from source (http://zoneminder.readthedocs.org/en/la ... ebian.html)
After some initial struggle with getting ZM and Apache to "marry" (enable site, enable CGI, location of cgi-bin folder, etc.) ZM finally started up!
I've added three cameras (all running latest available firmware):
2 x ACTi D72a (semi-professional outdoor 3MP fixed dome)
1 x AZTech WIPC408HD ("home use" Pan-Tilt thingy)
The AZTech seem to only provide a 1280x720 image while the ACTi can be configured with two independent streams from 640x360 up to 1920x1080 with various settings (H.264, MPEG, etc.).
The trouble is that the capturing from the ACTi cameras (I'm so far using 640x360, 3 fps to preserve CPU in the Raspberry) turn 100% grey after some hours, up to days.
I have experimented some with the bitrates (variable -> fixed) and H.264 settings (Baseline -> Main, but not yet High) to no avail.
When the problem has struck, I still see same amount of network traffic (e.g. with nethogs) and CPU load (top) dissipated by the associated zmc process. By opening the monitor settings for that camera (where RTSP, IP address, etc. details are set) and pressing Save (with no change!) a new period of successful capturing is "bought".
When viewing the cameras, the ACTi image sometimes (rather seldom) briefly flicker to 100% grey and quickly back to normal. I have not managed to find out if this glitch is fed from the camera, or "invented" in the zmc capturing or later.
I do not have any issues with the cheaper "home-use" camera running higher resolution and framerate.
Removing the AZTech monitor does not help (CPU load is reduced by some 30% down to 40%, but 70% is far from the 400% available from the four core processor of the RPi2). No glitches in the "dmesg" output or other logs in the Raspberry (/var/log/daemon,syslog,etc).
The problem often strikes one camera first and the other some time after - the image attached above show one monitor down.
All cameras are wired (no wireless) - no issues with network seen (so far...).
Here is a sample of warnings and errors I get from xmc (zm_remote_camera_rtsp.cpp) capturing one of the ACTi cameras:
Error while decoding frame 318728
Discarding incomplete frame 476810, 0 bytes
Discarding partial frame 476810, 56644 bytes
Packet in sequence, gap 14
Unexpected channel selector 239 in RTSP interleaved data
Unexpected format RTSP interleaved data, resyncing by 9 bytes
Unexpected format RTSP interleaved data, dumping 52 bytes
There are also some errors just containing a hex dump of varying bytes.
I have not been able to connect a "greyout" event to any of these warnings and errors, capture seem to continue even though they are output.
I'd appreciate any help I can get.
- Switch from H.264 to JPEG?
- Adjusting resolution
- Adjusting H.264/JPEG settings in camera?
- Switch from RTSP protocol to another?
- Any events (there are plenty of events recorded in the ZM logs - but I can not tell if they are relevant or not) to examine in more detail?
- Any additional logging I can enable to provide reasons for why zmc start to capture 100% grey after some time?
- Track same cam feed with another device, e.g. VLC Player to see if it also quit when ZM does?
Regards
/f