Debug Level

Support and queries relating to all previous versions of ZoneMinder
Locked
maximum
Posts: 19
Joined: Wed Aug 17, 2005 8:17 pm

Debug Level

Post by maximum »

Hi all,

Sorry for a question so stupid, but...
how to elevate te debug level?

I have a Cpia camera that works perfectly under xawtv and gqcam but don't do the same under ZM

so i think that elevating the debug level from 0 to 1 or 2 can help me to understand

best,
MaX
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If you have a process that is running then the easiest way to increase the debug level is to send a USR1 signal, using

Code: Select all

kill -USR1 <pid>
which will increase debug by one per signal. Use USR2 to put it back down.

If your process is crashing then try shuitting down zm and running the binary directly from the command line. In this case if you set the ZM_DBG_LEVEL to a value from -3 to 9 and then run your binary you will get more output.

By the way have you checked that you can do frame grabs to capture images from xawtv? Xatv uses a different mode to show continuous video, using frame grabs more closely simulates the way ZM works.

Phil
maximum
Posts: 19
Joined: Wed Aug 17, 2005 8:17 pm

Post by maximum »

zoneminder wrote:If you have a process that is running then the easiest way to increase the debug level is to send a USR1 signal, using

Code: Select all

kill -USR1 <pid>
which will increase debug by one per signal. Use USR2 to put it back down.

If your process is crashing then try shuitting down zm and running the binary directly from the command line. In this case if you set the ZM_DBG_LEVEL to a value from -3 to 9 and then run your binary you will get more output.
tnx, i'll try it.

zoneminder wrote: By the way have you checked that you can do frame grabs to capture images from xawtv? Xatv uses a different mode to show continuous video, using frame grabs more closely simulates the way ZM works.
Phil
...errr.. :-) feature request: i think that if a camera works in xawtv or gqcam, it need to works just fine in ZM.

that's possible?

best,
MaX
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

In 'TV' mode xawtv etc have no means of knowing what is in the video as the capture card memory is just being mapped to the screen. This at least initially allows you to confirm that your camera etc are powered on and connected correctly. However as ZM needs to examine the contents of the image it needs to grab each frame and not just pass it through. Xawtv etc let you do this also but you have to ask for it to do so. This tets then allows you to confirm that your driver etc is working correctly and if both tests work then you can be fairly certain that you will be ok with ZM.

Phil
Locked