[SOLVED]No PICTURE

Support and queries relating to all previous versions of ZoneMinder
Locked
Vitoriung
Posts: 7
Joined: Sun Nov 04, 2007 10:31 pm
Contact:

[SOLVED]No PICTURE

Post by Vitoriung »

installed, added monitor (USB logitech quickcam via v4l)
and have no picture in the watch pop-up window

these errors in the log are repeating aprox. every 10 sec-

zmdc.log -

Code: Select all

11/05/07 21:20:23.865193 zmdc[31971].INF ['zmc -d /dev/video' starting at 07/11/05 21:20:23, pid = 7891]
11/05/07 21:20:23.902945 zmdc[31971].ERR ['zmc -d /dev/video' exited abnormally, exit status 255]
zmwatch.log

Code: Select all

11/05/07 21:21:51.130127 zmwatch[32362].INF [Restarting capture daemon for logitech, shared memory not valid]
11/05/07 21:21:51.511121 zmwatch[32362].INF ['zmc -d /dev/video' starting at 07/11/05 21:21:51, pid = 7978]
/dev/video works fine -

Code: Select all

#zmu -d /dev/video -q -v
Video Capabilities
  Name: Logitech QuickCam EC
  Type: 1
    Can capture
  Video Channels: 1
  Audio Channels: 0
  Maximum Width: 352
  Maximum Height: 288
  Minimum Width: 160
  Minimum Height: 120
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 320
  Height: 240
Picture Attributes
  Palette: 4 - 24bit RGB
  Colour Depth: 24
  Brightness: 27136
  Hue: 0
  Colour :0
  Contrast: 11264
  Whiteness: 0
Channel 0 Attributes
  Name: SPCA561
  Channel: 0
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL


Any possible wrong application settings?

THX
Last edited by Vitoriung on Tue Nov 06, 2007 2:19 am, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

/dev/video is a link to /dev/video0 and ZM can not set the permissions through the link.
Change your device to /dev/video0 in ZM monitor page.
Vitoriung
Posts: 7
Joined: Sun Nov 04, 2007 10:31 pm
Contact:

Post by Vitoriung »

thanks for quick reply,

I changed as you advised, but same result -

Code: Select all

11/05/07 22:04:10.465434 zmdc[6900].INF ['zmc -d /dev/video0' starting at 07/11/05 22:04:10, pid = 7080]
11/05/07 22:04:10.492883 zmdc[6900].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]


11/05/07 22:03:18.700797 zmwatch[6939].INF [Restarting capture daemon for cam1, shared memory not valid]
11/05/07 22:03:18.992659 zmwatch[6939].INF ['zmc -d /dev/video0' starting at 07/11/05 22:03:18, pid = 7027]
THX[/code]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Did you restart ZM after the change?
Also check for errors with zmfix (zmfix needs the sticky bit set) and make sure your using the V4L1 driver and not V4L2. ZM is not yet compatable with the new V4L2 driver.
Vitoriung
Posts: 7
Joined: Sun Nov 04, 2007 10:31 pm
Contact:

Post by Vitoriung »

yes I restarted ZM after changes.

I am not sure what v4l driver I am using, do you know some trick how to find-out? I've just compiled kernel support for v4l
and I found ZMFIX as a command, tried to browse around Internet, but don't know how to configure it, I run it but nothing happened, can you advice how to set up?

THX
Vitoriung
Posts: 7
Joined: Sun Nov 04, 2007 10:31 pm
Contact:

Post by Vitoriung »

eureka!

I read previous topic and tried to set prermision 666 to /dev/video0 and it works!
But only in resolution 160x120
When I try to set 320x240 it doesnt work again with these errors -

/var/log/messages -

Code: Select all

Nov  6 00:59:00 localhost zmdc[10579]: INF ['zmc -d /dev/video0' stopping at 07/11/06 00:59:00]
Nov  6 00:59:00 localhost zmc_dvideo0[16353]: INF [Got signal (Terminated), exiting]
Nov  6 00:59:00 localhost zmc_dvideo0[16353]: ERR [Sync failure for frame 1 buffer 0(1): Interrupted system call]
Nov  6 00:59:00 localhost zmdc[10579]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Nov  6 00:59:00 localhost zma_m3[16505]: WAR [Signal: Lost]
Nov  6 00:59:00 localhost zma_m3[16505]: INF [cam1: 11473 - Gone into alarm state]
Nov  6 00:59:01 localhost zmdc[10579]: INF ['zmc -d /dev/video0' starting at 07/11/06 00:59:01, pid = 16640]
Nov  6 00:59:01 localhost zmdc[16640]: INF ['zmc -d /dev/video0' started at 07/11/06 00:59:01]
Nov  6 00:59:01 localhost zmc_dvideo0[16640]: INF [Debug Level = 0, Debug Log = <none>]
Nov  6 00:59:01 localhost /var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508/Sunplus/spca561.h: [spca561_init:497] Find spca561 USB Product ID 92e
Nov  6 00:59:01 localhost /var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508/gspca_core.c: [spca5xx_set_light_freq:1889] Sensor currently not support light frequency banding filters.
Nov  6 00:59:01 localhost /var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:903] ISO EndPoint found 0x81 AlternateSet 7
Nov  6 00:59:01 localhost /var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:903] ISO EndPoint found 0x81 AlternateSet 7
Nov  6 00:59:01 localhost zmc_dvideo0[16640]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Nov  6 00:59:01 localhost zmdc[10579]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Nov  6 00:59:01 localhost zmdc[10579]: INF [Starting pending process, zmc -d /dev/video0]
Nov  6 00:59:01 localhost zmdc[10579]: INF ['zmc -d /dev/video0' starting at 07/11/06 00:59:01, pid = 16650]
Nov  6 00:59:01 localhost zmdc[16650]: INF ['zmc -d /dev/video0' started at 07/11/06 00:59:01]
Nov  6 00:59:01 localhost zmc_dvideo0[16650]: INF [Debug Level = 0, Debug Log = <none>]
Nov  6 00:59:01 localhost /var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508/Sunplus/spca561.h: [spca561_init:497] Find spca561 USB Product ID 92e
Nov  6 00:59:01 localhost /var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508/gspca_core.c: [spca5xx_set_light_freq:1889] Sensor currently not support light frequency banding filters.
Nov  6 00:59:01 localhost /var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:903] ISO EndPoint found 0x81 AlternateSet 7
Nov  6 00:59:01 localhost zmc_dvideo0[16650]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Nov  6 00:59:01 localhost zmdc[10579]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Nov  6 00:59:01 localhost zmdc[10579]: INF ['zma -m 3' stopping at 07/11/06 00:59:01]
Nov  6 00:59:01 localhost zma_m3[16505]: INF [Got signal (Terminated), exiting]
Nov  6 00:59:01 localhost zmdc[10579]: INF ['zma -m 3' exited normally]
Nov  6 00:59:02 localhost zmdc[10579]: INF ['zma -m 3' starting at 07/11/06 00:59:02, pid = 16662]
Nov  6 00:59:02 localhost zmdc[16662]: INF ['zma -m 3' started at 07/11/06 00:59:02]
Nov  6 00:59:02 localhost zma_m3[16662]: INF [Debug Level = 0, Debug Log = <none>]
Nov  6 00:59:02 localhost zma_m3[16662]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Nov  6 00:59:02 localhost zmdc[10579]: ERR ['zma -m 3' exited abnormally, exit status 255]
Nov  6 00:59:02 localhost zmdc[10579]: INF [Starting pending process, zma -m 3]
Nov  6 00:59:02 localhost zmdc[10579]: INF ['zma -m 3' starting at 07/11/06 00:59:02, pid = 16664]
Nov  6 00:59:02 localhost zmdc[16664]: INF ['zma -m 3' started at 07/11/06 00:59:02]
Nov  6 00:59:02 localhost zma_m3[16664]: INF [Debug Level = 0, Debug Log = <none>]
Nov  6 00:59:02 localhost zma_m3[16664]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Nov  6 00:59:02 localhost zmdc[10579]: ERR ['zma -m 3' exited abnormally, exit status 255]
I am using driver gspca for my Logitech WebCam, maybe I should use some another allowing me to support 640x480...
Vitoriung
Posts: 7
Joined: Sun Nov 04, 2007 10:31 pm
Contact:

Post by Vitoriung »

my webcam support only 352x288, setup restarted service and woks ;)

Thanks a lot for help
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Glad you got it sorted mate.
If you chmod 4755 zmfix
zmfix will then be able to set the permissions on the device every time zm starts.
Locked