Page 1 of 1

ok in xawtv, not in zoneminder

Posted: Sat Feb 03, 2007 10:30 pm
by ixtow
I can see the video from my camera when I:

Code: Select all

xawtv -c /dev/video0
But I get a broken image, where there should be video, when I set it up in zoneminder.

Where do I start? No errors in any of the relevant logs.

Posted: Sun Feb 04, 2007 6:26 am
by cordel
If there are no errors then try switching zms<->nph-zms.

Posted: Sun Feb 04, 2007 6:11 pm
by ixtow
cordel wrote:If there are no errors then try switching zms<->nph-zms.
Got frustrated, so did the ol' reboot.

Getting useful logged errors now, along with this at startup:

Code: Select all

# /etc/init.d/zoneminder start
 * Starting zoneminder ...                                                                [ !! ]
#
I'm guessing the capture daemons aren't working for some reason?

Wasn't sure what user needed to be added to the 'video' group, so I just made the device world readable.

Code: Select all

# ls /dev
lrwxrwxrwx  1 root root         10 Feb  3 17:05 video0 -> v4l/video0

Code: Select all

# ls /dev/l4v
crw-rw-r-x  1 root video 81, 0 Feb  3 17:05 video0
Here are some excerpts from the shiny new error logs it finally started making:
/var/log/zoneminder/zmdc.log wrote:02/04/07 13:05:06.297177 zmdc[18321].INF ['zmc -d /dev/video0' starting at 07/02/04 13:05:06, pid = 1442]
02/04/07 13:05:06.396373 zmdc[18321].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
02/04/07 13:05:16.720694 zmdc[18321].INF ['zmc -d /dev/video0' starting at 07/02/04 13:05:16, pid = 1446]
02/04/07 13:05:16.733324 zmdc[18321].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
02/04/07 13:05:27.080770 zmdc[18321].INF ['zmc -d /dev/video0' starting at 07/02/04 13:05:27, pid = 1450]
02/04/07 13:05:27.104106 zmdc[18321].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
02/04/07 13:05:37.397918 zmdc[18321].INF ['zmc -d /dev/video0' starting at 07/02/04 13:05:37, pid = 1455]
02/04/07 13:05:37.422525 zmdc[18321].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
/var/log/zoneminder/zmwatch.log wrote:02/04/07 13:07:10.500678 zmwatch[18359].INF [Restarting capture daemon for QuickCam, shared memory not valid]
02/04/07 13:07:10.903844 zmwatch[18359].INF ['zmc -d /dev/video0' starting at 07/02/04 13:07:10, pid = 1493]
02/04/07 13:07:20.917517 zmwatch[18359].INF [Restarting capture daemon for QuickCam, shared memory not valid]
02/04/07 13:07:21.289840 zmwatch[18359].INF ['zmc -d /dev/video0' starting at 07/02/04 13:07:21, pid = 1497]
02/04/07 13:07:31.301021 zmwatch[18359].INF [Restarting capture daemon for QuickCam, shared memory not valid]
02/04/07 13:07:31.711743 zmwatch[18359].INF ['zmc -d /dev/video0' starting at 07/02/04 13:07:31, pid = 1501]
02/04/07 13:07:41.720139 zmwatch[18359].INF [Restarting capture daemon for QuickCam, shared memory not valid]
02/04/07 13:07:42.108566 zmwatch[18359].INF ['zmc -d /dev/video0' starting at 07/02/04 13:07:42, pid = 1506]
02/04/07 13:07:52.121169 zmwatch[18359].INF [Restarting capture daemon for QuickCam, shared memory not valid]
02/04/07 13:07:52.495934 zmwatch[18359].INF ['zmc -d /dev/video0' starting at 07/02/04 13:07:52, pid = 1511]
02/04/07 13:08:02.500614 zmwatch[18359].INF [Restarting capture daemon for QuickCam, shared memory not valid]
02/04/07 13:08:02.894973 zmwatch[18359].INF ['zmc -d /dev/video0' starting at 07/02/04 13:08:02, pid = 1516]
That seems to be about it. Sorry if this has been covered before, I really don't know what to search for. Camera works perfectly fine in kopete and xawtv. No, I don't try to run them simultaneously... ;-)

Aw Crap

Posted: Sun Feb 04, 2007 7:15 pm
by ixtow
Apparently I can't read.... I posted this in the wrong version.... I'm Version 1.22.3

Posted: Sun Feb 04, 2007 9:32 pm
by cordel
[Moved to correct topic]
Is there any errors showing in messages?
What Distro are you using?

Posted: Sun Feb 04, 2007 11:40 pm
by ixtow
cordel wrote:Is there any errors showing in messages?
/var/log/messages wrote: # cat /var/log/messages

Feb 4 18:05:54 nx7010 zmpkg[11136]: INF [Command: start]
Feb 4 18:05:54 nx7010 sudo: root : TTY=pts/4 ; PWD=/var/www/localhost/htdocs/zoneminder ; USER=apache ; COMMAND=/bin/true
Feb 4 18:05:54 nx7010 sudo: root : TTY=pts/4 ; PWD=/var/www/localhost/htdocs/zoneminder ; USER=apache ; COMMAND=/usr/bin/zmdc.pl check
Feb 4 18:05:54 nx7010 sudo: root : TTY=pts/4 ; PWD=/var/www/localhost/htdocs/zoneminder ; USER=apache ; COMMAND=/usr/bin/zmfix
Feb 4 18:05:54 nx7010 zmfix[11146]: ERR [Can't chmod /dev/video0 to 20666: Operation not permitted]
Feb 4 18:05:54 nx7010 sudo: root : TTY=pts/4 ; PWD=/var/www/localhost/htdocs/zoneminder ; USER=apache ; COMMAND=/usr/bin/zmdc.pl startup
Feb 4 18:05:54 nx7010 zmdc[11150]: INF [Server starting at 07/02/04 18:05:54]
Feb 4 18:05:57 nx7010 sudo: root : TTY=pts/4 ; PWD=/var/www/localhost/htdocs/zoneminder ; USER=apache ; COMMAND=/usr/bin/zmdc.pl start zmc -d /dev/video0
Feb 4 18:05:57 nx7010 zmdc[11150]: INF ['zmc -d /dev/video0' starting at 07/02/04 18:05:57, pid = 12464]
Feb 4 18:05:57 nx7010 zmdc[12464]: INF ['zmc -d /dev/video0' started at 07/02/04 18:05:57]
Feb 4 18:05:57 nx7010 zmc_dvideo0[12464]: INF [Debug Level = 0, Debug Log = <none>]
Feb 4 18:05:57 nx7010 sudo: root : TTY=pts/4 ; PWD=/var/www/localhost/htdocs/zoneminder ; USER=apache ; COMMAND=/usr/bin/zmdc.pl start zmfilter.pl
Feb 4 18:05:57 nx7010 zmc_dvideo0[12464]: INF [Starting Capture]
Feb 4 18:05:58 nx7010 zmdc[11150]: INF ['zmfilter.pl' starting at 07/02/04 18:05:58, pid = 12482]
Feb 4 18:05:58 nx7010 zmdc[12482]: INF ['zmfilter.pl' started at 07/02/04 18:05:58]
Revelation: user is apache.

Added apache to video group. :roll: :oops: (shouldn't have mattered since permissions are 777 on both /dev/video0 and /dev/v4l/video0)

'Stills' view works! But 'stream' just shows me the icon for 'waiting for image to arrive' framed out by the proper 320x240 dimension that the image will be if it ever arrives. And it never does. Note, this never becomes a 'broken image' icon.

If I switch to stills, then back to stream, the stream view shows me the last image captured in stills, but it never updates or changes.

Seems to record in mocord (events appear and cpu usage goes up a lot during events), But since the playback for events is streaming method, I can't see it. Don't think it's browser related, as the same thing happens in Firefox on both Winblows and Linux/KDE, Konqueror in Linux/KDE, and IE in Winblows.

Perfect 30fps output in xawtv, kopete, etc....
cordel wrote:What Distro are you using?
Gentoo

Posted: Mon Feb 05, 2007 1:52 am
by cordel
So now try changing zms<-->nph-zms (apache runs cgi that start with nph so that it will not parse the headers). This whould be the only situation where you might not see any errors in the apahe or other ogs.

Posted: Mon Feb 05, 2007 4:14 am
by ixtow
cordel wrote:So now try changing zms<-->nph-zms (apache runs cgi that start with nph so that it will not parse the headers). This whould be the only situation where you might not see any errors in the apahe or other ogs.
I tried it upon your first suggestion, with no effect. I have changed it back and forth 4 times, restarting the zoneminder daemons after each change. No effect.

Posted: Mon Feb 05, 2007 11:15 am
by cordel
What browser are you using?
The stream will ot work in IE without cambozola.jar installed.
If you check the properties of the frame the image should be in, what does it show for a path?
Have you checked the apache error log to make sure nothing funny going on there?

Posted: Mon Feb 05, 2007 12:22 pm
by occhiostanco
> 'Stills' view works! But 'stream' just shows me the icon for 'waiting for > image to arrive' framed out by the proper 320x240 dimension that the
> image will be if it ever arrives. And it never does. Note, this never
> becomes a 'broken image' icon.

> Then I suggest to try both with I tried it upon your first suggestion, with
> no effect. I have changed it back and forth 4 times, restarting the
>zoneminder daemons after each change. No effect.[/quote]

If stills view works, check that (Options/paths/ZM_PATH_ZMS) the path to zm cgibinaries directory be correct. You switched between zms and nph-zms, BUT are they really where zm is looking for them ?

Roberto