Saturday, October 15, 2011

DVR Geovision GV-800 Zoneminder Linux

GV-800
Hardware version 3.5
16 ch video and 4 ch audio,120/100fps


Specification
==========
$ lspci -n
...
04:00.0 0400: 109e:036e (rev 11)
04:00.1 0480: 109e:0878 (rev 11)
04:04.0 0400: 109e:036e (rev 11)
04:04.1 0480: 109e:0878 (rev 11)
04:08.0 0400: 109e:036e (rev 11)
04:08.1 0480: 109e:0878 (rev 11)
04:0c.0 0400: 109e:036e (rev 11)
04:0c.1 0480: 109e:0878 (rev 11)
...

$ lspci -k
04:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
    Subsystem: Device 800a:763d
    Kernel driver in use: bttv
04:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
    Subsystem: Device 800a:763d
04:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
    Subsystem: Device 800b:763d
    Kernel driver in use: bttv
04:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
    Subsystem: Device 800b:763d
04:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
    Subsystem: Device 800c:763d
    Kernel driver in use: bttv
04:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
    Subsystem: Device 800c:763d
04:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
    Subsystem: Device 800d:763d
    Kernel driver in use: bttv
04:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
    Subsystem: Device 800d:763d

$ ls -ls /dev/video*
0 crw-rw----+ 1 root video 81, 0 Oct 14 06:41 /dev/video0
0 crw-rw----+ 1 root video 81, 2 Oct 14 06:41 /dev/video1
0 crw-rw----+ 1 root video 81, 4 Oct 14 06:41 /dev/video2
0 crw-rw----+ 1 root video 81, 6 Oct 14 06:41 /dev/video3

$ uname -r
3.0.0-1-amd64


Installation
============
only http://www.zoneminder.com/wiki/index.php/Debian_Squeeze
then http://www.zoneminder.com/wiki/index.php/Ubuntu_9.04_%28Jaunty%29_desktop_with_graphical_interface
For adding cameras
*NOT require /etc/modprob.d/bttv.conf configuration

Camera 1 -> /dev/video0 channel 0
Camera 2 -> /dev/video1 channel 0
Camera 3 -> /dev/video2 channel 0
Camera 4 -> /dev/video3 channel 0

Camera 5 -> /dev/video0 channel 1
Camera 6 -> /dev/video1 channel 1
Camera 7 -> /dev/video2 channel 1
Camera 8 -> /dev/video3 channel 1

Camera 9 -> /dev/video0 channel 2
Camera 10 -> /dev/video1 channel 2
Camera 11 -> /dev/video2 channel 2
Camera 12 -> /dev/video3 channel 2

Camera 13 -> /dev/video0 channel 3
Camera 14 -> /dev/video1 channel 3
Camera 15 -> /dev/video2 channel 3
Camera 16 -> /dev/video3 channel 3


Useful Commands
===============
$ v4l-info /dev/video0
$ sudo /etc/init.d/apache2 force-reload
$ sudo service zoneminder restart
$ dmesg | grep bttv
$ sudo tail -f /var/log/syslog
$ ffmpeg -f video4linux2 -s 320x240 -r 30000/1001 -i /dev/video0 -y webcam.avi



Output in dmesg
============
$ dmesg | grep bttv
[    5.805510] bttv: driver version 0.9.18 loaded
[    5.805512] bttv: using 8 buffers with 2080k (520 pages) each for capture
[    5.805720] bttv: Bt8xx card found (0).
[    5.805740] bttv 0000:04:00.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
[    5.805750] bttv0: Bt878 (rev 17) at 0000:04:00.0, irq: 21, latency: 64, mmio: 0xfdeff000
[    5.805770] bttv0: detected: GeoVision GV-800(S) (master) [card=157], PCI subsystem ID is 800a:763d
[    5.805772] bttv0: using: Geovision GV-800(S) (master) [card=157,autodetected]
[    5.805807] bttv0: gpio: en=00000000, out=00000000 in=00ff28ff [init]
[    5.806572] bttv0: tuner absent
[    5.806604] bttv0: registered device video0
[    5.806624] bttv0: registered device vbi0
[    5.806650] bttv0: PLL: 28636363 => 35468950 .. ok
[    5.839533] bttv: Bt8xx card found (1).
[    5.839544] bttv 0000:04:04.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
[    5.839552] bttv1: Bt878 (rev 17) at 0000:04:04.0, irq: 21, latency: 64, mmio: 0xfdefd000
[    5.839573] bttv1: detected: GeoVision GV-800(S) (slave) [card=158], PCI subsystem ID is 800b:763d
[    5.839575] bttv1: using: Geovision GV-800(S) (slave) [card=158,autodetected]
[    5.839602] bttv1: gpio: en=00000000, out=00000000 in=00ff7cff [init]
[    5.839639] bttv1: tuner absent
[    5.839667] bttv1: registered device video1
[    5.839690] bttv1: registered device vbi1
[    5.839717] bttv1: PLL: 28636363 => 35468950 .. ok
[    5.871530] bttv: Bt8xx card found (2).
[    5.871540] bttv 0000:04:08.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
[    5.871548] bttv2: Bt878 (rev 17) at 0000:04:08.0, irq: 21, latency: 64, mmio: 0xfdefb000
[    5.871568] bttv2: detected: GeoVision GV-800(S) (slave) [card=158], PCI subsystem ID is 800c:763d
[    5.871570] bttv2: using: Geovision GV-800(S) (slave) [card=158,autodetected]
[    5.871596] bttv2: gpio: en=00000000, out=00000000 in=00ffbeff [init]
[    5.871632] bttv2: tuner absent
[    5.871659] bttv2: registered device video2
[    5.871682] bttv2: registered device vbi2
[    5.871708] bttv2: PLL: 28636363 => 35468950 .. ok
[    5.903525] bttv: Bt8xx card found (3).
[    5.903534] bttv 0000:04:0c.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
[    5.903542] bttv3: Bt878 (rev 17) at 0000:04:0c.0, irq: 21, latency: 64, mmio: 0xfdef9000
[    5.903557] bttv3: detected: GeoVision GV-800(S) (slave) [card=158], PCI subsystem ID is 800d:763d
[    5.903559] bttv3: using: Geovision GV-800(S) (slave) [card=158,autodetected]
[    5.903584] bttv3: gpio: en=00000000, out=00000000 in=00fffcff [init]
[    5.903621] bttv3: tuner absent
[    5.903650] bttv3: registered device video3
[    5.903671] bttv3: registered device vbi3
[    5.903697] bttv3: PLL: 28636363 => 35468950 .. ok

3 comments:

  1. I like geovision GV-series......very much. Thanks for this informative post.

    Geovision

    ReplyDelete
  2. Thank you.
    With ubuntu desktop 13.10, i want to use my geovision gv800 with vlc for testing before using zm.
    My problem is when i watch dev/video0 on vlc or zm i see à blue screen.
    Please héla me to résolve my problem.
    Samquad

    ReplyDelete
  3. I tried using a Geovision gv800 with ubuntu 14.04 but it gets stuck loading the driver.
    [....]
    [ 27.544794] bttv: driver version 0.9.19 loaded
    [ 27.544858] bttv: using 8 buffers with 2080k (520 pages) each for capture
    [ 27.544940] bttv: Bt8xx card found (0).
    [ 27.545137] bttv: 0: Bt878 (rev 17) at 0000:06:00.0, irq: 16, latency: 32, mmio: 0xf2107000
    [ 27.545223] bttv: 0: detected: GeoVision GV-800(S) (master) [card=157], PCI subsystem ID is 800a:763d
    [ 27.545302] bttv: 0: using: Geovision GV-800(S) (master) [card=157,autodetected]
    then nothing happens, even after several minutes.
    can someone please help me?

    ReplyDelete