Zoneminder Help

download Zoneminder Help

of 28

Transcript of Zoneminder Help

  • 8/12/2019 Zoneminder Help

    1/28

    Zoneminder install on UBUNTU 9.10Desktop Draft1

    Disclaimer:

    The author of

    this documenthas puttogether thisinformationpurpose onlyfor hispersonalreference andguide to installpersonalsystem. Allinformation

    publishedherein isgathered fromsources whichare thought tobe reliable, butthe readershould notassume thattheinformation isofficial or

    final. Thelogos andpictures usedin thedocument arealso gatheredfrom sourcesand are foridentification

  • 8/12/2019 Zoneminder Help

    2/28

  • 8/12/2019 Zoneminder Help

    3/28

    Table of Contents

    1 INTRODUCTION ....................................................................................................................................... 5

    1.1 REFERENCES ..................................................................................................................................... 5 1.2 GLOSSARY, TERMS & ABBREVIATIONS ....................................................................................... 5

    2 ASSUMPTIONS.......................................................................................................................................... 6

    3 SYSTEM INSTALL .................................................................................................................................... 7

    3.1 INSTALL UBUNTU 9.10 DESKTOP ................ ................. .................. ................. .................. ............. 7 3.2 INSTALL LAMP ( LINUX, APACHE, MYSQL, PHP ) SERVER ON UBUNTU.................. ................ 7 3.3 SSH SERVER AND CLIENT OPTIONAL TO ENABLE REMOTE SHELL ................ .................. ....... 7 3.4 INSTALL ZONEMINDER ................................................................................................................... 7 3.5 INSTALL CAMBOZOLA .................................................................................................................... 8 3.6 CONFIGURE VIDEO CAPTURE CARD ............................................................................................. 8

    3.6.1 To test video lets install XAWTV ................ ................. .................. ................. .................. ................ 8

    3.6.2 Iden tify and configure card options ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 8 4 PERFORMANCE TUNING ..................................................................................................................... 10

    4.1 SHM FINE TUNING (KERNEL SETTINGS) .................. .................. .................. ................. .............. 10 4.2 MYSQL PERFORMANCE TUINING ................................................................................................ 11

    5 TROUBLESHOOTING ............................................................................................................................ 13

    6 APPENDIX ............................................................................................................................................... 14

    6.1 BT8X8 CARDS BY NUMBER ........................................................................................................... 14

  • 8/12/2019 Zoneminder Help

    4/28

    6.2 4 CHANNEL (4 CHIP) SAA7134 CHIP CARD USING 4X SAA7130 CHIPS ...................... .............. 16 6.3 CCTV CAMERA VIEWING ANGLE COMPARISON ................ ................. .................. .................. .. 19 6.4 DYNDNS SETTINGS ........................................................................................................................ 25 6.5 UPGRADE ZONEMINDER TO NEWER VERSION 1.24.2-2 (ADVANCED USERS) ..................... .. 26

  • 8/12/2019 Zoneminder Help

    5/28

    1 Introduction

    This document is provided to help you install Linux (UBUNTU) along with Zoneminder for videosurveillance.

    1.1 References

    No. Link Document Location Author

    1. Ubuntu.com

    2. Zoneminder.com

    3.

    4.

    1.2 Glossary, Terms & Abbreviations

    Term Explanation

    zm Zoneminder

    sudo Root user

    Terminal Command prompt window

  • 8/12/2019 Zoneminder Help

    6/28

    2 Assumptions

    The user would have basic knowledge of Linux and terminal window.

    Preferred P4 machine with 1 GB ram and available free PCI slot.

  • 8/12/2019 Zoneminder Help

    7/28

    3 System Install

    3.1 Install UBUNTU 9.10 Desktop

    You have to download ISO image, burn a bootable CD and follow the instructions on screenwhen u boot your computer from this CD.

    Make sure you write down all the passwords you use.

    3.2 Install LAMP ( Linux, Apache, MySql, Php ) Server on UbuntuOpen the terminal window and issue following commands.

    Install mysql

    $ sudo apt-get install mysql-server

    Install Apache2

    $ sudo apt-get install apache2

    Install php and the apache module for it (select apache option in php install when prompted)

    $ sudo apt-get install php5 libapache2-mod-php5

    Reboot apache (very important)

    $ sudo /etc/init.d/apache2 restart

    PhpMyAdmin, if you need it

    $ sudo apt-get install phpmyadmin

    TEST http://localhost it should work and give u a webpage saying IT WORKS!

    3.3 SSH server and client optional to enable remote shell# sudo apt-get install openssh-server openssh-client

    3.4 Install Zoneminder$ sudo apt-get install zoneminder

    Installation should go on with no complications. If needed, fix broken dependencies with

    $ sudo apt-get -f install

    Instruct apache what to do with Zoneminder a force a reload:

    $ sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

    $ sudo /etc/init.d/apache2 force-reload

    For zm you need to run

    $ sudo mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql

    $mysql -u root -p

    >grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';

    >flush privileges;

    http://localhost/http://localhost/http://localhost/
  • 8/12/2019 Zoneminder Help

    8/28

    >quit

    $ sudo chmod 4755 /usr/bin/zmfix

    $ zmfix -a

    $ sudo adduser www-data video

    $ sudo nano /etc/sysctl.conf# Shared memory settings changed for ZoneMinder (ZM) add this at bottom (128 MB)kernel.shmall = 134217728kernel.shmmax = 134217728

    TEST http://localhost/zm should open Zoneminder screen. Default user=adminpassword=admin

    Main screen *options* (right upper corner)(Images tab)

    Is the (optional) cambozola java streaming client installed (?) check this

    Under config also make sure to uncheck the flag for V4L using multiple buffers.

    3.5 Install Cambozola$ cd /tmp$ wget http://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gz $ tar xvfz cambozola-latest.tar.gz$ sudo cp cambozola-0.76/dist/* /usr/share/zoneminder/

    3.6 Configure Video capture card

    3.6.1 To test video lets install XAWTV

    $ sudo apt-get install xawtv

    3.6.2 Identify and configure card options

    Look for the video devices and type of card installed on system. (could be saa7134 or bttv,bt878)

    $ lspci

    $ nano /etc/modprobe.d/options (create one if you dont have one already)

    In options file add the following linesFor SA878 card single chip with 4 ports (verify your card number from list)

    alias char-major-81 bttv

    options bttv gbuffers=16 card=77 tuner=4 radio=-1

    For 4 chip saa7134 card with saa7130 video encoder chip add the line(verify your card numberfrom list)

    alias char-major-81 saa7134

    http://localhost/zmhttp://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gzhttp://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gzhttp://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gzhttp://www.charliemouse.com/code/cambozola/cambozola-latest.tar.gzhttp://localhost/zm
  • 8/12/2019 Zoneminder Help

    9/28

    options saa7134 gbuffers=16 card=1,1,1,1

    The number 77 is not applicable for all but depends on the chip on the video card. The number of timesyou put the chip id depends on how many chips you have on board. Could be

    after that REBOOT machine

    $ ls /dev - verify what video devices are loaded for your card.

    $ dmesg |grep 713 or 878 depending on card to see if its loaded properly.

    First make sure zoneminder is stopped for XATV to be able to capture video

    # /etc/init.d/zoneminder stop

    $ sudo xawtv -c /dev/video0 -q v (or video1 depending in your loaded devices)

    For bt878 4 ports will appear under video0 as port 0,1,2,3

    For 4 chip saa7134 cards it shows 4 ports as video0, video1, video2 and video3

    Select format as NTSC-M and select ports and you can test camera.

    ONCE TESTED start zoneminder and verify the card capabilities from

    # /etc/init.d/zoneminder start

    $ sudo zmu -d /dev/video0 -q v

    $ sudo zmu -U usr -P pass -d /dev/video0 -q v (if you configure zm for users)

    now open the ZM screen http://localhost/zm and configure monitors.

  • 8/12/2019 Zoneminder Help

    10/28

    4 Performance tuning

    4.1 SHM fine tuning (Kernel Settings)The following information can be used to determine if there are any necessary changes requiredfor your system.

    The following is the output from the ipcs -l command. Comments have been added following the// to show what the parameter names are.

    # ipcs -l

    ------ Shared Memory Limits --------

    max number of segments = 4096 // SHMMNI

    max seg size (kbytes) = 32768 // SHMMAX

    max total shared memory (kbytes) = 8388608 // SHMALL

    min seg size (bytes) = 1

    ------ Semaphore Limits --------

    max number of arrays = 1024 // SEMMNI

    max semaphores per array = 250 // SEMMSL

    max semaphores system wide = 256000 // SEMMNS

    max ops per semop call = 32 // SEMOPM

    semaphore max value = 32767

    ------ Messages: Limits --------

    max queues system wide = 1024 // MSGMNI

    max size of message (bytes) = 65536 // MSGMAX

    default max size of queue (bytes) = 65536 // MSGMNB

    Beginning with the first section on Shared Memory Limits, SHMMAX and SHMALL are theparameters that need to be looked at. SHMMAX is the maximum size of a shared memorysegment on a Linux system whereas SHMALL is the maximum allocation of shared memorypages on a system.

    For SHMMAX, the minimum required on x86 systems would be 268435456 (256 MB) and for 64 -bit systems, it would be 1073741824 (1 GB).

    SHMALL is set to 8 GB by default (8388608 KB = 8 GB). If you have more physical memory thanthis, and it is to be used for DB2, then this parameter should be increased to approximately 90%of the physical memory as specified for your computer. For instance, if you have a computersystem with 16 GB of memory to be used primarily for DB2, then 90% of 16 GB is 14.4 GBdivided by 4 KB (the base page size) is 3774873. The ipcs output has converted SHMALL intokilobytes. The kernel requires this value as a number of pages.

  • 8/12/2019 Zoneminder Help

    11/28

    The next section covers the amount of semaphores available to the operating system. Thekernel parameter sem consists of 4 tokens, SEMMSL, SEMMNS, SEMOPM and SEMMNI.SEMMNS is the result of SEMMSL multiplied by SEMMNI. The database manager requires thatthe number of arrays (SEMMNI) be increased as necessary. Typically, SEMMNI should be twicethe maximum number of connections allowed (MAXAGENTS) multiplied by the number of logicalpartitions on the database server computer plus the number of local application connections onthe database server computer.

    The third section covers messages on the system.

    MSGMNI affects the number of agents that can be started, MSGMAX affects the size of themessage that can be sent in a queue, and MSGMNB affects the size of the queue.

    MSGMAX should be change to 64 KB (that is, 65535 bytes), and MSGMNB should be increasedto 65535 on Server systems.

    To modify these kernel parameters, we need to edit the /etc/sysctl.conf file. If this file does notexist, it should be created. The following lines are examples of what should be placed into thefile:

    kernel.sem=250 256000 32 1024

    #Example shmmax for a 64-bit system

    kernel.shmmax=1073741824

    #Example shmall for 90 percent of 16 GB memory

    kernel.shmall=3774873

    kernel.msgmax=65535

    kernel.msgmnb=65535

    Run sysctl with -p parameter to load in sysctl settings from the default file /etc/sysctl.conf.

    sysctl -p

    To make the changes effective after every reboot, boot.sysctl needs to be active on SUSE Linux.On Red Hat, the rc.sysinit initialization script will read the /etc/sysctl.conf file automatically.

    4.2 MySQL performance tuiningCONFIGURE MYSQL FOR BETTER PERFORMANCE

    nano /etc/mysql/my.cnf

    CHANGE THE FOLLOWING PARAMETERS UNDER THE SECTION [mysqld]:max_allowed_packet = 32M

    thread_stack = 128K

    query_cache_size = 24M

    ADD THE FOLLOWING PARAMETERS UNDER THE SECTION [mysqld]:

  • 8/12/2019 Zoneminder Help

    12/28

    skip-innodb

    tmp_table_size = 32M

    max_heap_table_size = 16M

  • 8/12/2019 Zoneminder Help

    13/28

  • 8/12/2019 Zoneminder Help

    14/28

    6 Appendix

    6.1 Bt8x8 Cards by Number

    B. Bt8x8 Cards by Number (30fps aggregated 4 channels MAX) Approx $10 on ebay.

    Connexient BT878 single chip card

    These are the option numbers for cards for use with modprobe .This does not boast to be a completelist by any means; it is copied nearly verbatim from the kernel source documentation for bttv. If yourcard is not listed it may or may not be supported depending on the chipset and accompanyingcomponents with which it is constructed.

    card= n card type -------------------------------------------------------

    card=0 UNKNOWN/GENERICcard=1 MIRO PCTVcard=2 Hauppauge (bt848)card=3 STB, Gateway P/N 6000699 (bt848)card=4 Intel Create and Share PCI/ Smart Video Recorder IIIcard=5 Diamond DTV2000card=6 AVerMedia TVPhonecard=7 MATRIX-Vision MV-Deltacard=8 Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26card=9 IMS/IXmicro TurboTVcard=10 Hauppauge (bt878)card=11 MIRO PCTV pro

    card=12 ADS Technologies Channel Surfer TV (bt848)card=13 AVerMedia TVCapture 98card=14 Aimslab Video Highway Xtreme (VHX)card=15 Zoltrix TV-Maxcard=16 Prolink Pixelview PlayTV (bt878)card=17 Leadtek WinView 601card=18 AVEC Intercapturecard=19 Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)card=20 CEI Raffles Cardcard=21 Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50card=22 Askey CPH050/ Phoebe Tv Master + FMcard=23 Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878

  • 8/12/2019 Zoneminder Help

    15/28

    card=24 Askey CPH05X/06X (bt878) [many vendors]card=25 Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostarcard=26 Hauppauge WinCam newer (bt878)card=27 Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50card=28 Terratec TerraTV+ Version 1.1 (bt878)card=29 Imagenation PXC200card=30 Lifeview FlyVideo 98 LR50card=31 Formac iProTV, Formac ProTV I (bt848)

    card=32 Intel Create and Share PCI/ Smart Video Recorder IIIcard=33 Terratec TerraTValue Version Bt878card=34 Leadtek WinFast 2000/ WinFast 2000 XPcard=35 Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle IIcard=36 Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tunercard=37 Prolink PixelView PlayTV procard=38 Askey CPH06X TView99card=39 Pinnacle PCTV Studio/Ravecard=40 STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100card=41 AVerMedia TVPhone 98card=42 ProVideo PV951card=43 Little OnAir TVcard=44 Sigma TVII-FMcard=45 MATRIX-Vision MV-Delta 2card=46 Zoltrix Genie TV/FMcard=47 Terratec TV/Radio+card=48 Askey CPH03x/ Dynalink Magic TViewcard=49 IODATA GV-BCTV3/PCIcard=50 Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CPcard=51 Eagle Wireless Capricorn2 (bt878A)card=52 Pinnacle PCTV Studio Procard=53 Typhoon TView RDS + FM Stereo / KNC1 TV Station RDScard=54 Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]card=55 Askey CPH031/ BESTBUY Easy TVcard=56 Lifeview FlyVideo 98FM LR50card=57 GrandTec 'Grand Video Capture' (Bt848)card=58 Askey CPH060/ Phoebe TV Master Only (No FM)card=59 Askey CPH03x TV Capturercard=60 Modular Technology MM100PCTVcard=61 AG Electronics GMV1card=62 Askey CPH061/ BESTBUY Easy TV (bt878)card=63 ATI TV-Wondercard=64 ATI TV-Wonder VEcard=65 Lifeview FlyVideo 2000S LR90card=66 Terratec TValueRadiocard=67 IODATA GV-BCTV4/PCIcard=68 3Dfx VoodooTV FM (Euro), VoodooTV 200 (USA)card=69 Active Imaging AIMMScard=70 Prolink Pixelview PV-BT878P+ (Rev.4C,8E)card=71 Lifeview FlyVideo 98EZ (capture only) LR51card=72 Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)card=73 Sensoray 311card=74 RemoteVision MX (RV605)card=75 Powercolor MTV878/ MTV878R/ MTV878Fcard=76 Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)card=77 GrandTec Multi Capture Card (Bt878)card=78 Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RFcard=79 DSP Design TCVIDEOcard=80 Hauppauge WinTV PVRcard=81 IODATA GV-BCTV5/PCI

    card=82 Osprey 100/150 (878)card=83 Osprey 100/150 (848)card=84 Osprey 101 (848)card=85 Osprey 101/151card=86 Osprey 101/151 w/ svidcard=87 Osprey 200/201/250/251card=88 Osprey 200/250card=89 Osprey 210/220card=90 Osprey 500card=91 Osprey 540card=92 Osprey 2000card=93 IDS Eagle

  • 8/12/2019 Zoneminder Help

    16/28

  • 8/12/2019 Zoneminder Help

    17/28

    7 6 -> Tevion MD 97178 7 -> KNC One TV-Station RDS / Typhoon TV Tuner RDS [1131:fe01,1894:fe01]9 8 -> Terratec Cinergy 400 TV [153b:1142]10 9 -> Medion 504411 10 -> Kworld/KuroutoShikou SAA7130-TVPCI12 11 -> Terratec Cinergy 600 TV [153b:1143]13 12 -> Medion 7134 [16be:0003,16be:5000]

    14 13 -> Typhoon TV+Radio 9003115 14 -> ELSA EX-VISION 300TV [1048:226b]16 15 -> ELSA EX-VISION 500TV [1048:226a]17 16 -> ASUS TV-FM 7134 [1043:4842,1043:4830,1043:4840]18 17 -> AOPEN VA1000 POWER [1131:7133]19 18 -> BMK MPEX No Tuner20 19 -> Compro VideoMate TV [185b:c100]21 20 -> Matrox CronosPlus [102B:48d0]22 21 -> 10MOONS PCI TV CAPTURE CARD [1131:2001]23 22 -> AverMedia M156 / Medion 2819 [1461:a70b]24 23 -> BMK MPEX Tuner25 24 -> KNC One TV-Station DVR [1894:a006]26 25 -> ASUS TV-FM 7133 [1043:4843]27 26 -> Pinnacle PCTV Stereo (saa7134) [11bd:002b]28 27 -> Manli MuchTV M-TV002

    29 28 -> Manli MuchTV M-TV00130 29 -> Nagase Sangyo TransGear 3000TV [1461:050c]31 30 -> Elitegroup ECS TVP3XP FM1216 Tuner Card(PAL-BG,FM) [1019:4cb4]32 31 -> Elitegroup ECS TVP3XP FM1236 Tuner Card (NTSC,FM) [1019:4cb5]33 32 -> AVACS SmartTV34 33 -> AVerMedia DVD EZMaker [1461:10ff]35 34 -> Noval Prime TV 713336 35 -> AverMedia AverTV Studio 305 [1461:2115]37 36 -> UPMOST PURPLE TV [12ab:0800]38 37 -> Items MuchTV Plus / IT-00539 38 -> Terratec Cinergy 200 TV [153b:1152]40 39 -> LifeView FlyTV Platinum Mini [5168:0212,4e42:0212,5169:1502]41 40 -> Compro VideoMate TV PVR/FM [185b:c100]42 41 -> Compro VideoMate TV Gold+ [185b:c100]43 42 -> Sabrent SBT-TVFM (saa7130)44 43 -> :Zolid Xpert TV713445 44 -> Empire PCI TV-Radio LE46 45 -> Avermedia AVerTV Studio 307 [1461:9715]47 46 -> AVerMedia Cardbus TV/Radio (E500) [1461:d6ee]48 47 -> Terratec Cinergy 400 mobile [153b:1162]49 48 -> Terratec Cinergy 600 TV MK3 [153b:1158]50 49 -> Compro VideoMate Gold+ Pal [185b:c200]51 50 -> Pinnacle PCTV 300i DVB-T + PAL [11bd:002d]52 51 -> ProVideo PV952 [1540:9524]53 52 -> AverMedia AverTV/305 [1461:2108]54 53 -> ASUS TV-FM 7135 [1043:4845]55 54 -> LifeView FlyTV Platinum FM / Gold [5168:0214,5168:5214,1489:0214,5168:0304]56 55 -> LifeView FlyDVB-T DUO / MSI TV@nywhere Duo [5168:0306,4E42:0306]57 56 -> Avermedia AVerTV 307 [1461:a70a]58 57 -> Avermedia AVerTV GO 007 FM [1461:f31f]59 58 -> ADS Tech Instant TV (saa7135) [1421:0350,1421:0351,1421:0370,1421:1370]60 59 -> Kworld/Tevion V-Stream Xpert TV PVR713461 60 -> LifeView/Typhoon/Genius FlyDVB-T Duo Cardbus [5168:0502,4e42:0502,1489:0502]62 61 -> Philips TOUGH DVB-T reference design [1131:2004]63 62 -> Compro VideoMate TV Gold+II64 63 -> Kworld Xpert TV PVR713465 64 -> FlyTV mini Asus Digimatrix [1043:0210]66 65 -> V-Stream Studio TV Terminator67 66 -> Yuan TUN-900 (saa7135)68 67 -> Beholder BeholdTV 409 FM [0000:4091]

  • 8/12/2019 Zoneminder Help

    18/28

    69 68 -> GoTView 7135 PCI [5456:7135]70 69 -> Philips EUROPA V3 reference design [1131:2004]71 70 -> Compro Videomate DVB-T300 [185b:c900]72 71 -> Compro Videomate DVB-T200 [185b:c901]73 72 -> RTD Embedded Technologies VFG7350 [1435:7350]74 73 -> RTD Embedded Technologies VFG7330 [1435:7330]75 74 -> LifeView FlyTV Platinum Mini2 [14c0:1212]

    76 75 -> AVerMedia AVerTVHD MCE A180 [1461:1044]77 76 -> SKNet MonsterTV Mobile [1131:4ee9]78 77 -> Pinnacle PCTV 40i/50i/110i (saa7133) [11bd:002e]79 78 -> ASUSTeK P7131 Dual [1043:4862]80 79 -> Sedna/MuchTV PC TV Cardbus TV/Radio (ITO25 Rev:2B)81 80 -> ASUS Digimatrix TV [1043:0210]82 81 -> Philips Tiger reference design [1131:2018]83 82 -> MSI TV@Anywhere plus [1462:6231,1462:8624]84 83 -> Terratec Cinergy 250 PCI TV [153b:1160]85 84 -> LifeView FlyDVB Trio [5168:0319]86 85 -> AverTV DVB-T 777 [1461:2c05,1461:2c05]87 86 -> LifeView FlyDVB-T / Genius VideoWonder DVB-T [5168:0301,1489:0301]88 87 -> ADS Instant TV Duo Cardbus PTV331 [0331:1421]89 88 -> Tevion/KWorld DVB-T 220RF [17de:7201]90 89 -> ELSA EX-VISION 700TV [1048:226c]

    91 90 -> Kworld ATSC110/115 [17de:7350,17de:7352]92 91 -> AVerMedia A169 B [1461:7360]93 92 -> AVerMedia A169 B1 [1461:6360]94 93 -> Medion 7134 Bridge #2 [16be:0005]95 94 -> LifeView FlyDVB-T Hybrid Cardbus/MSI TV @nywhere A/D NB[5168:3306,5168:3502,5168:3307,4e42:3502]96 95 -> LifeView FlyVIDEO3000 (NTSC) [5169:0138]97 96 -> Medion Md8800 Quadro [16be:0007,16be:0008,16be:000d]98 97 -> LifeView FlyDVB-S /Acorp TV134DS [5168:0300,4e42:0300]99 98 -> Proteus Pro 2309 [0919:2003]100 99 -> AVerMedia TV Hybrid A16AR [1461:2c00]101 100 -> Asus Europa2 OEM [1043:4860]102 101 -> Pinnacle PCTV 310i [11bd:002f]103 102 -> Avermedia AVerTV Studio 507 [1461:9715]104 103 -> Compro Videomate DVB-T200A105 104 -> Hauppauge WinTV-HVR1110 DVB-T/Hybrid[0070:6700,0070:6701,0070:6702,0070:6703,0070:6704,0070:6705]106 105 -> Terratec Cinergy HT PCMCIA [153b:1172]107 106 -> Encore ENLTV [1131:2342,1131:2341,3016:2344]108 107 -> Encore ENLTV-FM [1131:230f]109 108 -> Terratec Cinergy HT PCI [153b:1175]110 109 -> Philips Tiger - S Reference design111 110 -> Avermedia M102 [1461:f31e]112 111 -> ASUS P7131 4871 [1043:4871]113 112 -> ASUSTeK P7131 Hybrid [1043:4876]114 113 -> Elitegroup ECS TVP3XP FM1246 Tuner Card (PAL,FM) [1019:4cb6]115 114 -> KWorld DVB-T 210 [17de:7250]116 115 -> Sabrent PCMCIA TV-PCB05 [0919:2003]117 116 -> 10MOONS TM300 TV Card [1131:2304]118 117 -> Avermedia Super 007 [1461:f01d]119 118 -> Beholder BeholdTV 401 [0000:4016]120 119 -> Beholder BeholdTV 403 [0000:4036]121 120 -> Beholder BeholdTV 403 FM [0000:4037]122 121 -> Beholder BeholdTV 405 [0000:4050]123 122 -> Beholder BeholdTV 405 FM [0000:4051]124 123 -> Beholder BeholdTV 407 [0000:4070]125 124 -> Beholder BeholdTV 407 FM [0000:4071]126 125 -> Beholder BeholdTV 409 [0000:4090]127 126 -> Beholder BeholdTV 505 FM [5ace:5050]128 127 -> Beholder BeholdTV 507 FM / BeholdTV 509 FM [5ace:5070,5ace:5090]

  • 8/12/2019 Zoneminder Help

    19/28

    129 128 -> Beholder BeholdTV Columbus TVFM [0000:5201]130 129 -> Beholder BeholdTV 607 FM [5ace:6070]131 130 -> Beholder BeholdTV M6 [5ace:6190]132 131 -> Twinhan Hybrid DTV-DVB 3056 PCI [1822:0022]133 132 -> Genius TVGO AM11MCE134 133 -> NXP Snake DVB-S reference design135 134 -> Medion/Creatix CTX953 Hybrid [16be:0010]

    136 135 -> MSI TV[AT]nywhere A/D v1[DOT]1 [1462:8625]137 136 -> AVerMedia Cardbus TV/Radio (E506R) [1461:f436]138 137 -> AVerMedia Hybrid TV/Radio (A16D) [1461:f936]139 138 -> Avermedia M115 [1461:a836]140 139 -> Compro VideoMate T750 [185b:c900]141 140 -> Avermedia DVB-S Pro A700 [1461:a7a1]142 141 -> Avermedia DVB-S Hybrid+FM A700 [1461:a7a2]143 142 -> Beholder BeholdTV H6 [5ace:6290]144 143 -> Beholder BeholdTV M63 [5ace:6191]145 144 -> Beholder BeholdTV M6 Extra [5ace:6193]146 145 -> AVerMedia MiniPCI DVB-T Hybrid M103 [1461:f636,1461:f736]147 146 -> ASUSTeK P7131 Analog148 147 -> Asus Tiger 3in1 [1043:4878]149 148 -> Encore ENLTV-FM v5.3 [1a7f:2008]150 149 -> Avermedia PCI pure analog (M135A) [1461:f11d]

    151 150 -> Zogis Real Angel 220152 151 -> ADS Tech Instant HDTV [1421:0380]153 152 -> Asus Tiger Rev:1.00 [1043:4857]154 153 -> Kworld Plus TV Analog Lite PCI [17de:7128]155 154 -> Avermedia AVerTV GO 007 FM Plus [1461:f31d]156 155 -> Hauppauge WinTV-HVR1150 ATSC/QAM-Hybrid [0070:6706,0070:6708]157 156 -> Hauppauge WinTV-HVR1120 DVB-T/Hybrid [0070:6707,0070:6709,0070:670a]158 157 -> Avermedia AVerTV Studio 507UA [1461:a11b]159 158 -> AVerMedia Cardbus TV/Radio (E501R) [1461:b7e9]160 159 -> Beholder BeholdTV 505 RDS [0000:505B]161 160 -> Beholder BeholdTV 507 RDS [0000:5071]162 161 -> Beholder BeholdTV 507 RDS [0000:507B]163 162 -> Beholder BeholdTV 607 FM [5ace:6071]164 163 -> Beholder BeholdTV 609 FM [5ace:6090]165 164 -> Beholder BeholdTV 609 FM [5ace:6091]166 165 -> Beholder BeholdTV 607 RDS [5ace:6072]167 166 -> Beholder BeholdTV 607 RDS [5ace:6073]168 167 -> Beholder BeholdTV 609 RDS [5ace:6092]169 168 -> Beholder BeholdTV 609 RDS [5ace:6093]

    6.3 CCTV Camera Viewing angle comparison

    CCTV Camera Viewing angle comparison

  • 8/12/2019 Zoneminder Help

    20/28

  • 8/12/2019 Zoneminder Help

    21/28

    CCTV Visual Lens Comparison Chart

    The following chart displays the comparision of CCTV lens with the regular 135mm filmcamera lens.

    CCTVlens

    135mmlens

    l

    Focal L

    ength

  • 8/12/2019 Zoneminder Help

    22/28

  • 8/12/2019 Zoneminder Help

    23/28

    or 135

    ca

    er a

    egular angle of our eyes vision

    100

  • 8/12/2019 Zoneminder Help

    24/28

    13

    5

    CCTV Technical Lens Comparison Chart

    Indicates total viewable area (WxH) at a given distance based on focal length used

    FocalLength

    5'(WxH)

    10'(WxH)

    20'(WxH)

    2.5mm

    9.4x7.1 19x14 38x28

    2.9mm

    8.6x6.4 17x13 34x26

    3.6mm

    6.9x5.1 14x10 27x21

    4.0mm

    6.0x4.5 12x9 24x18

    4.3mm

    5.7x4.3 11x8.6 23x17

    5.5mm

    4.5x3.4 9x6.8 18x14

    6.0mm 2.0x1.5 4x3 8x6

    8.0mm

    1.5x1.1 3x2.3 6x4.5

    12.0mm

    1.0x0.7 2x1.4 3.8x3

  • 8/12/2019 Zoneminder Help

    25/28

    6.4 DynDNS settings

    DynDNS service configuration

    First I just created a free login in DynDns and created free host names as below. If younotice I created a second one for test as a webhop, that was just so that I could useone short web address to define the final path of zoneminder. Assuming you haveconfigured static IP in your server and have the port forwarding at NAT level setup atrouter.

    DynDNS

    Host Services

    Hostname

    Ser vice

    Details

    Last Updated

    home.homeip.net

    Host

    71.39.156.908

    Nov.24,2009 7:40 PM

    zm.selfip.ne

    We

    http://home.homeip.net/z

    No

    https://www.dyndns.com/account/services/hosts/?field=fqdn&sort=dhttps://www.dyndns.com/account/services/hosts/?field=fqdn&sort=dhttps://www.dyndns.com/account/services/hosts/?field=fqdn&sort=dhttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=ip&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttp://home.homeip.net/http://home.homeip.net/http://home.homeip.net/http://home.homeip.net/https://www.dyndns.com/account/services/hosts/tina.selfip.nethttps://www.dyndns.com/account/services/hosts/tina.selfip.nethttps://www.dyndns.com/https://www.dyndns.com/account/services/hosts/tina.selfip.nethttps://www.dyndns.com/account/services/hosts/tina.selfip.nethttp://home.homeip.net/http://home.homeip.net/http://home.homeip.net/https://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=delta&sort=ahttps://www.dyndns.com/account/services/hosts/?field=ip&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=redir&sort=ahttps://www.dyndns.com/account/services/hosts/?field=fqdn&sort=dhttps://www.dyndns.com/account/services/hosts/?field=fqdn&sort=d
  • 8/12/2019 Zoneminder Help

    26/28

    t bHop

    m/ v.14,2

    009 5:52

    AM

    After thats done, now we need a client on home end to update the server as and whenthe static IP is changed. There are two ways to do it. Most of the routers have theDDNS tab which can be configured to update DynDnd.org site with your host name, so

    just populate your user name, password and host name to update, some routers canbe configured the interval to send the updates even of static IP is not changed.

    Secondly if your router doesnt have the option to update DDNS, you can install a cl ientfrom DynDns site on any of the computers in your home network. You can downloadthose for all different OS at https://www.dyndns.com/support/clients/

    Since our intent is to just send the WAN stat ic IP do it doesnt matter which machinewe install that on behind the router as for inbound router will forward ports asconfigured.

    6.5 Upgrade Zoneminder to newer version 1.24.2-2 (advanced users)root@ubuntu:/tmp# cd /tmp

    root@ubuntu:/tmp# wget http://ftp.us.debian.org/debian/pool/main/z/zoneminder/zoneminder_1.24.2-2_i386.deb

    root@ubuntu:/tmp# wget http://ftp.us.debian.org/debian/pool/main/d/dirac/libdirac-encoder0_1.0.2-2_i386.deb

    root@ubuntu:/tmp# dpkg -i libdirac-encoder0_1.0.2-2_i386.deb

    Selecting previously deselected package libdirac-encoder0.

    (Reading database ... 117100 files and directories currently installed.)

    Unpacking libdirac-encoder0 (from libdirac-encoder0_1.0.2-2_i386.deb) ...Setting up libdirac-encoder0 (1.0.2-2) ...

    Processing triggers for libc-bin ...

    ldconfig deferred processing now taking place

    root@ubuntu:/tmp# dpkg -i zoneminder_1.24.2-2_i386.deb

    (Reading database ... 117106 files and directories currently installed.)

    https://www.dyndns.com/account/services/hosts/tina.selfip.nethttps://www.dyndns.com/account/services/hosts/tina.selfip.nethttps://www.dyndns.com/support/clients/https://www.dyndns.com/support/clients/https://www.dyndns.com/support/clients/https://www.dyndns.com/support/clients/https://www.dyndns.com/account/services/hosts/tina.selfip.net
  • 8/12/2019 Zoneminder Help

    27/28

    Preparing to replace zoneminder 1.24.1-1ubuntu2 (using zoneminder_1.24.2-2_i386.deb) ...

    Stopping ZoneMinder: Zoneminder already stopped

    Unpacking replacement zoneminder ...

    Setting up zoneminder (1.24.2-2) ...

    Installing new version of config file /etc/zm/zm.conf ...Update agent starting at 09/11/28 01:12:14

    Initiating database upgrade to version 1.24.2

    Please ensure that ZoneMinder is stopped on your system prior to upgrading the database.

    Press enter to continue or ctrl-C to stop :

    Do you wish to take a backup of your database prior to upgrading?

    This may result in a large file in /tmp if you have a lot of events.

    Press 'y' for a backup or 'n' to continue : n

    Upgrading database to version 1.24.2

    Loading config from DBSaving config to DB

    Database successfully upgraded from version 1.24.1.

    Database upgrade to version 1.24.2 successful.

    Update agent exiting at 09/11/28 01:12:28

    Starting ZoneMinder: success

    Processing triggers for man-db ...

    Processing triggers for sreadahead ...

    sreadahead will be reprofiled on next reboot

    there is a bug in the debian repo,

    Bug fix you have to modify the file:

    /usr/share/zoneminder/skins/classic/views/timeline.php at line 811

    Code:

    To Code:

    http://www.zoneminder.com/forums/viewtopic.php?t=14694

    INSTALL JSCALENDAR As ROOT (Optional)

    cd /usr/src

    wget http://prdownloads.sourceforge.net/jscalendar/jscalendar-1.0.zip?download

    unzip jscalendar-1.0.zip

  • 8/12/2019 Zoneminder Help

    28/28

    mkdir /usr/share/zoneminder/tools/jscalendar

    cp -R jscalendar-1.0/* /usr/share/zoneminder/tools/jscalendar