Zoneminder install

Forum for questions and support relating to the 1.24.x releases only.
Locked
bmw325is89
Posts: 6
Joined: Sat May 21, 2011 12:22 am

Zoneminder install

Post by bmw325is89 »

Alright so i just bought the zoneminder pico2000 capture card and got zonminder all setup.

Problem is the sources are staying red and i can't get any video. I however can see the picture in xawtv.

UPDATE FOUND THIS IN THE VAR LOGS
May 20 18:11:58 tempe-Dimension-4700 zmc_dvideo0[2728]: FAT [Failed to open video devic e /dev/video0: Permission denied]

Permissions issue i am thinking, just no sure how to fix it...




Here's the output of the following command while i have 2 cameras connected. Any ideas on how to get this to work?
zmu -d /dev/video0 -q -v

Code: Select all

tempe@tempe-Dimension-4700:~$ zmu -d /dev/video0 -q -v
Video Device: /dev/video0
General Capabilities
  Driver: bttv
  Card: BT878 video (GrandTec Multi Cap
  Bus: PCI:0000:03:00.0
  Version: 0.9.18
  Type: 0x5000015
    Supports video capture (X)
    Does not support video output
    Supports 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
    Does not have 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
      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:
    8 bpp, gray (GREY)
    8 bpp, dithered color (HI24)
    15 bpp RGB, le (RGBO)
    15 bpp RGB, be (RGBQ)
    16 bpp RGB, le (RGBP)
    16 bpp RGB, be (RGBR)
    24 bpp RGB, le (BGR3)
    32 bpp RGB, le (BGR4)
    32 bpp RGB, be (RGB4)
    4:2:2, packed, YUYV (YUYV)
    4:2:2, packed, YUYV (YUYV)
    4:2:2, packed, UYVY (UYVY)
    4:2:2, planar, Y-Cb-Cr (422P)
    4:2:0, planar, Y-Cb-Cr (YU12)
    4:2:0, planar, Y-Cr-Cb (YV12)
    4:1:1, planar, Y-Cb-Cr (411P)
    4:1:0, planar, Y-Cb-Cr (YUV9)
    4:1:0, planar, Y-Cr-Cb (YVU9)
Crop Capabilities
  Bounds: 1063 x 608
  Default: 924 x 576
  Current: 924 x 576
Inputs: 4
  Input 0
    Name: Composite0
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
  Input 1
    Name: Composite1
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
  Input 2
    Name: Composite2
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
  Input 3
    Name: Composite3
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal detected  (X)
    Colour Signal detected
    Horizontal Lock detected
tempe@tempe-Dimension-4700:~$
A few more outputs
dmesg | grep bttv

Code: Select all

tempe@tempe-Dimension-4700:/usr/bin$ dmesg | grep bttv
[   20.087967] bttv: driver version 0.9.18 loaded
[   20.087974] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   20.088147] bttv: Bt8xx card found (0).
[   20.088173] bttv 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   20.088191] bttv0: Bt878 (rev 17) at 0000:03:00.0, irq: 16, latency: 64, mmio: 0xd0101000
[   20.088444] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[   20.088503] bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
[   20.088618] bttv0: tuner absent
[   20.088622] bttv0: the autoload option is obsolete.
[   20.088625] bttv0: use option msp3400, tda7432 or tvaudio to
[   20.088629] bttv0: override which audio module should be used.
[   20.088768] bttv0: registered device video0
[   20.088853] bttv0: registered device vbi0
[   20.088876] bttv0: PLL: 28636363 => 35468950 .
tempe@tempe-Dimension-4700:/usr/bin$
/var/log/zm$ lspci

Code: Select all

tempe@tempe-Dimension-4700:/var/log/zm$ lspci
00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 04)
00:01.0 PCI bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL PCI Express Root Port (rev 04)
00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller (rev 04)
00:02.1 Display controller: Intel Corporation 82915G Integrated Graphics Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
02:00.0 Network controller: Broadcom Corporation BCM4321 802.11a/b/g/n (rev 03)
03:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
03:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
03:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller (rev 03)
tempe@tempe-Dimension-4700:/var/log/zm$
Last edited by bmw325is89 on Sat May 21, 2011 1:37 am, edited 2 times in total.
bmw325is89
Posts: 6
Joined: Sat May 21, 2011 12:22 am

Re: Zoneminder install

Post by bmw325is89 »

Also all camera info is set to default information

/dev/video0
linux version 1

ntsc
rgb24
320x240

using one swann and one lorex camera.

And lastly a few of the errors i am getting about zm in the apache log (seems to happen whenever i try to view cameras)

Code: Select all

ludes/functions.php on line 808, referer: 192.168.1.116/zm/
[Fri May 20 17:53:15 2011] [error] [client 192.168.1.111] PHP Deprecated:  Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 813, referer: //192.168.1.116/zm/
[Fri May 20 17:53:15 2011] [error] [client 192.168.1.111] PHP Deprecated:  Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 818, referer: //192.168.1.116/zm/
[Fri May 20 17:53:15 2011] [error] [client 192.168.1.111] PHP Deprecated:  Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 823, referer: //192.168.1.116/zm/
[Fri May 20 17:53:15 2011] [error] [client 192.168.1.111] PHP Deprecated:  Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 828, referer: //192.168.1.116/zm/
tempe@tempe-Dimension-4700:/var/log/apache2$ PHP Deprecated

bmw325is89
Posts: 6
Joined: Sat May 21, 2011 12:22 am

Re: Zoneminder install

Post by bmw325is89 »

After fixing what i perceived to be the permissions issue (ran sudo chmod 777 /dev/video0
) i am now getting these errors

Code: Select all

 20 18:44:58 tempe-Dimension-4700 zmdc[1725]: INF [Starting pending process, zmc -d /dev/video0]
May 20 18:44:58 tempe-Dimension-4700 zmdc[1725]: INF ['zmc -d /dev/video0' starting at 11/05/20 18:44:58, pid = 2180]
May 20 18:44:58 tempe-Dimension-4700 zmdc[2180]: INF ['zmc -d /dev/video0' started at 11/05/20 18:44:58]
May 20 18:44:58 tempe-Dimension-4700 zmc_dvideo0[2180]: INF [Debug Level = 0, Debug Log = <none>]
May 20 18:44:58 tempe-Dimension-4700 zmc_dvideo0[2180]: INF [Starting Capture]
May 20 18:44:58 tempe-Dimension-4700 zmc_dvideo0[2180]: FAT [Failed to get picture attributes: Invalid argument]
May 20 18:44:58 tempe-Dimension-4700 zmc_dvideo0[2180]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
May 20 18:44:58 tempe-Dimension-4700 zmdc[1725]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
tempe@tempe-Dimension-4700:/var/log$
any ideas?
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Zoneminder install

Post by mastertheknife »

Try V4L2

mastertheknife
Kfir Itzhak.
bmw325is89
Posts: 6
Joined: Sat May 21, 2011 12:22 am

Re: Zoneminder install

Post by bmw325is89 »

I read about that, but wasn't sure how to try it out. I will of course look myself, but are there any walk throughs out there off the top of your head? Also is it necessary since i am able to see the video when not using ZM?
bmw325is89
Posts: 6
Joined: Sat May 21, 2011 12:22 am

Re: Zoneminder install

Post by bmw325is89 »

well i figured it out-- cameras had to be set to bgr and it started working fine.
Locked