Can't see camera picture

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

Can't see camera picture

Post by oc666 »

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

Re: Can't see camera picture

Post by cordel »

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 »

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

Post by cordel »

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 »

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 »

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_ »

Have you read the FAQ about increasing shared memory?
oc666
Posts: 19
Joined: Thu May 04, 2006 5:03 pm
Contact:

Post by oc666 »

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 »

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