Page 1 of 1

Camera connection becomes slow, ZM loses connection

Posted: Thu Sep 30, 2010 2:13 pm
by ocgltd
I have ZM running great with a webcam - live view works, events capturing etc. However, after 12 hours or so something goes wrong. I'm new to ZM so I'm not sure where to look...

It appears from the log below that ZM loses the camera conection. I tried to test my camera connection and ZM sees the camera (see second code window below), but it takes almost 30 seconds for ZM to respond to the zmu command - which might be why ZM is giving up on the camera. Normally (after a reboot) this zmu command is instantaneous.

Clues? Help! Thanks


Relevant content from system log:

Code: Select all

Sep 27 02:17:43 zoneminder zmc_dvideo0[32171]: INF [Front_Door: 1930000 - Capturing at 9.80 fps]
Sep 27 08:02:17 zoneminder zma_m1[20823]: INF [Front_Door: 14000 - Processing at 9.80 fps]
Sep 28 02:17:08 zoneminder zma_m1[20823]: INF [Front_Door: 662000 - Processing at 9.90 fps]
Sep 28 02:17:11 zoneminder zmc_dvideo0[32171]: INF [Front_Door: 2782000 - Capturing at 9.90 fps]
Sep 29 02:17:10 zoneminder zmwatch[1549]: INF [Restarting capture daemon for Front_Door, time since last capture 7 seconds (1285741030-1285741023)]
Sep 29 02:17:10 zoneminder zmdc[1502]: INF ['zmc -d /dev/video0' stopping at 10/09/29 02:17:10]
Sep 29 02:17:10 zoneminder zmc_dvideo0[1526]: INF [Got signal 15 (Terminated), exiting]
Sep 29 02:17:17 zoneminder kernel: cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
Sep 29 02:17:18 zoneminder zmdc[1502]: INF ['zmc -d /dev/video0' crashed, signal 8]
Sep 29 02:17:18 zoneminder zmwatch[1549]: INF ['zmc -d /dev/video0' stopping at 10/09/29 02:17:10]
Sep 29 02:17:18 zoneminder zmdc[1502]: INF [Starting pending process, zmc -d /dev/video0]
Sep 29 02:17:18 zoneminder zmdc[1502]: INF ['zmc -d /dev/video0' starting at 10/09/29 02:17:18, pid = 2334]
Sep 29 02:17:18 zoneminder zmdc[2334]: INF ['zmc -d /dev/video0' started at 10/09/29 02:17:18]
Sep 29 02:17:18 zoneminder zmc_dvideo0[2334]: INF [Debug Level = 0, Debug Log = <none>]
Sep 29 02:17:18 zoneminder zmc_dvideo0[2334]: INF [Starting Capture]
Sep 29 02:17:18 zoneminder kernel: cx231xx #0:  setPowerMode::mode = 48, No Change req.
Sep 29 02:17:19 zoneminder kernel: cx231xx #0: UsbInterface::sendCommand, failed with status --110
Sep 29 02:17:20 zoneminder kernel: cx231xx #0: UsbInterface::sendCommand, failed with status --110
Sep 29 02:17:21 zoneminder kernel: cx231xx #0: UsbInterface::sendCommand, failed with status --110
Sep 29 02:17:22 zoneminder kernel: cx231xx #0: UsbInterface::sendCommand, failed with status --110
Sep 29 02:17:23 zoneminder kernel: cx231xx #0: UsbInterface::sendCommand, failed with status --110
Result of "zmu -d /dev/video0 -q -v -U admin -P admin" command

Code: Select all

Video Device: /dev/video0
General Capabilities
  Driver: cx231xx
  Card: Hauppauge USB Live 2
  Bus: usb-0000:02:02.0-1
  Version: 0.0.1
  Type: 0x5020011
    Supports video capture (X)
    Does not support video output
    Does not support frame buffer overlay
    Supports VBI capture
    Does not support VBI output
    Does not support sliced VBI capture
    Does not support sliced VBI output
    Does not support video output overlay
    Does not have tuner
    Has audio in and/or out
    Does not have radio
    Supports read/write i/o (X)
    Does not support async i/o
    Supports streaming i/o (X)
    Standards:
      NTSC
      NTSC-M
      NTSC-M-JP
      NTSC-M-KR
      NTSC-443
      PAL
      PAL-BG
      PAL-H
      PAL-I
      PAL-DK
      PAL-M
      PAL-N
      PAL-Nc
      PAL-60
      SECAM
      SECAM-B
      SECAM-G
      SECAM-H
      SECAM-DK
      SECAM-L
      SECAM-Lc
  Formats:
    16bpp YUY2, 4:2:2, packed (YUYV)
Crop Capabilities
  Bounds: 720 x 480
  Default: 720 x 480
  Current: Cropping is not supported
Inputs: 2
  Input 0
    Name: Composite1
    Type: Camera
    Audioset: 00000000
    Standards: 0xffffff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected 
    Horizontal Lock detected 
  Input 1
    Name: S-Video
    Type: Camera
    Audioset: 00000000
    Standards: 0xffffff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected 
    Horizontal Lock detected 
I think the clue here is that the zmu command takes 30 seconds to get info from the camera, whereas after a fresh reboot its instantaneous. Not sure what to do with that....