Can't see camera picture

Support and queries relating to all previous versions of ZoneMinder
Post Reply
oc666
Posts: 19
Joined: Thu May 04, 2006 5:03 pm
Contact:

Can't see camera picture

Post by oc666 » Fri May 12, 2006 2:43 pm

Hello.
I'm using zoneminder 1.22.0 (inside gentoo OS) & I can't see camera picture in the zoneminder, but i can see in the xawtv.
This what i see in zoneminder:
Image

I can't run the zoneminder with the command:
/etc/init.d/zoneminder start
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Starting zoneminder ... [ !! ]
My /var/log/everything/current:
May 12 17:22:40 [zmwatch] INF [Restarting capture daemon for Camera, shared memory not valid]_
May 12 17:22:40 [zmdc] INF ['zmc -d /dev/video' started at 06/05/12 17:22:40]_
May 12 17:22:40 [zmdc] INF ['zmc -d /dev/video' starting at 06/05/12 17:22:40, pid = 29136]_
May 12 17:22:40 [zmwatch] INF ['zmc -d /dev/video' started at 06/05/12 17:22:40]_
May 12 17:22:40 [zmwatch] ERR [Can't get shared memory id '7a6d2002', 2: No such file or directory]_
May 12 17:22:40 [zmwatch] INF [Restarting capture daemon for Camera2, shared memory not valid]_
May 12 17:22:40 [zmc_dvideo] INF [Debug Level = 0, Debug Log = <none>]
May 12 17:22:40 [zmc_dvideo] ERR [Failed to open video device /dev/video: Permission denied]
May 12 17:22:40 [zmdc] ERR ['zmc -d /dev/video' crashed, exit status 255]_
May 12 17:22:40 [zmdc] INF ['zmc -d /dev/video' started at 06/05/12 17:22:40]_
May 12 17:22:40 [zmdc] INF ['zmc -d /dev/video' starting at 06/05/12 17:22:40, pid = 29140]_
May 12 17:22:40 [zmc_dvideo] INF [Debug Level = 0, Debug Log = <none>]
May 12 17:22:40 [zmc_dvideo] ERR [Failed to open video device /dev/video: Permission denied]
May 12 17:22:40 [zmdc] ERR ['zmc -d /dev/video' crashed, exit status 255]_
May 12 17:22:40 [zmwatch] INF ['zmc -d /dev/video' started at 06/05/12 17:22:40]_
My /tmp/zmdc.log:
05/12/06 17:22:40.682203 zmdc[29136].INF ['zmc -d /dev/video' started at 06/05/12 17:22:40]
05/12/06 17:22:40.685577 zmdc[10131].INF ['zmc -d /dev/video' starting at 06/05/12 17:22:40, pid = 29136]
05/12/06 17:22:40.776815 zmdc[10131].ERR ['zmc -d /dev/video' crashed, exit status 255]
05/12/06 17:22:40.930046 zmdc[29140].INF ['zmc -d /dev/video' started at 06/05/12 17:22:40]
05/12/06 17:22:40.934518 zmdc[10131].INF ['zmc -d /dev/video' starting at 06/05/12 17:22:40, pid = 29140]
05/12/06 17:22:40.965761 zmdc[10131].ERR ['zmc -d /dev/video' crashed, exit status 255]
Thanks for some help...

User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle
Contact:

Re: Can't see camera picture

Post by cordel » Fri May 12, 2006 4:20 pm

oc666 wrote: My /var/log/everything/current:
May 12 17:22:40 [zmc_dvideo] ERR [Failed to open video device /dev/video: Permission denied]
There is why you have no picture. Shouldn't be /dev/video but /dev/video0.

Regards,
Corey

oc666
Posts: 19
Joined: Thu May 04, 2006 5:03 pm
Contact:

Re: Can't see camera picture

Post by oc666 » Fri May 12, 2006 4:47 pm

Its OK. Look at this:
ls -l /dev/video
lrwxrwxrwx 1 root root 6 2006-05-11 19:26 /dev/video -> video0

User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle
Contact:

Post by cordel » Fri May 12, 2006 5:00 pm

But it's still owned as root so the processes can access the device. It may be having an issue with the link.

oc666
Posts: 19
Joined: Thu May 04, 2006 5:03 pm
Contact:

Post by oc666 » Fri May 12, 2006 5:19 pm

cordel wrote:But it's still owned as root so the processes can access the device. It may be having an issue with the link.
but xawtv works fine & look at this(this is from non-root user):
zmu -d /dev/video -q -v
Video Capabilities
Name: Logitech QuickCam USB
Type: 513
Can capture
Can capture subareas of the image
Video Channels: 1
Audio Channels: 0
Maximum Width: 352
Maximum Height: 292
Minimum Width: 32
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 352
Height: 292
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 32768
Colour :32768
Contrast: 32768
Whiteness: 32768
Channel 0 Attributes
Name: Camera
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL

oc666
Posts: 19
Joined: Thu May 04, 2006 5:03 pm
Contact:

Post by oc666 » Fri May 12, 2006 5:46 pm

OK. I kill some processes, rerun the zoneminder job & its work, but sometimes the picture crash.
This is the log (/var/log/everything/current):
May 12 20:43:45 [zmc_dvideo] ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
May 12 20:43:45 [zmdc] ERR ['zmc -d /dev/video' crashed, exit status 255]_

Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ » Sat May 13, 2006 8:35 am

Have you read the FAQ about increasing shared memory?

oc666
Posts: 19
Joined: Thu May 04, 2006 5:03 pm
Contact:

Post by oc666 » Sat May 13, 2006 9:15 am

I read about it but now the old prbolem return after I reboot my computer.
I resolved the old problem by killing some processes, but now i forgot what exactly processes I killed & all my guesses was wrong.
Here is my /var/log/everything/current:
May 13 12:04:46 [zmpkg] INF [Command: start]_
May 13 12:04:46 [su] Successful su for apache by root
May 13 12:04:46 [su] + pts/1 root:apache
May 13 12:04:46 [su(pam_unix)] session opened for user apache by (uid=0)
May 13 12:04:46 [nologin] Attempted login by oc on /dev/pts/1
May 13 12:04:46 [su(pam_unix)] session closed for user apache
May 13 12:04:46 [su] Successful su for apache by root
May 13 12:04:46 [su] + pts/1 root:apache
May 13 12:04:46 [su(pam_unix)] session opened for user apache by (uid=0)
May 13 12:04:46 [nologin] Attempted login by oc on /dev/pts/1
May 13 12:04:46 [su(pam_unix)] session closed for user apache
May 13 12:04:46 [zmpkg] ERR [Unable to find valid 'su' syntax]_
My /tmp/zmpkg.log:
13/05/06 12:04:46.350550 zmpkg[13925].INF [Command: start]
13/05/06 12:04:46.533686 zmpkg[13925].ERR [Unable to find valid 'su' syntax]
This the output on the command line:
# /etc/init.d/zoneminder restart
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Re-caching dependency info (mtimes differ)...
* Starting zoneminder ... [ !! ]

oc666
Posts: 19
Joined: Thu May 04, 2006 5:03 pm
Contact:

Post by oc666 » Wed May 17, 2006 1:34 pm

Can anybody help me with this??? please...

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests