basketcase wrote:How do I add it for one cam only?
Is this the option in config?
LOG_DEBUG Switch debugging on (?)
LOG_DEBUG_TARGET What components should have extra debug enabled (?)
OK, so you need to turn on debugging for zmc (zoneminder capture), for monitor 4 only...
From the web, click on options, then on logging.
Make sure "log level database" is NOT set to debug. We're going to be cranking through a lot of debug info, no need to give mysql a heart attack here; a flat file will be just fine.
Turn on LOG_DEBUG (....duuuhhh.
)
LOG_DEBUG_TARGET ... here's where the magic happens. If you put in just "_zmc" into there, it'd log capture info for
all your monitors. Don't want that, since only one is misbehaving. So instead put in "_zmc_m4" to only do debug info for monitor 4.
Set LOG_DEBUG_LEVEL to 9. (everything plus kitchen sink)
Restart zoneminder.
Go to the directory pointed at by LOG_DEBUG_FILE. On my system, that's /tmp/zm/ , and I had to su before I could get there.
Once there, list the files and it should be obvious which one you want to look at. (It'll have "debug" in the name.
)
I've not used it before, the standard logging isn't really telling, it just floods the logs with unable to read packet.
Code: Select all
2014-01-20 07:55:51.206866 zmc_m4 28373 ERR Unable to read packet from stream 0: error -1 /home/abauer/rpmbuild/BUILD/ZoneMinder-1.26.5/src/zm_ffmpeg_camera.cpp 215
[/quote]
Yeah, sometimes you get lucky and there's a nugget of goodness in the regular log files. Not this time, so time to turn on debugging.