High quality video security with Ubuntu server 10.10,Zoneminder 1.24.x,cheap DVR card

Discussion in 'HOWTO-Related Questions' started by letsharehowto, Oct 26, 2010.

  1. letsharehowto

    letsharehowto New Member

    Today I will tell you how to build video security system with Ubuntu server 10.10, Zoneminder 1.24.x, cheap DVR card, high quality video output.

    My box:
    -Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHz, 2 cores
    -Memory: 2G
    -Dvr card: http://picasaweb.google.com/letsharehowto/DvrCard#

    We have 4 step:

    -Install Ubuntu server.
    -Install bttv driver.
    -Install Zoneminder.
    -Config Zoneminder.

    1/-Install Ubuntu server:

    Set up new box Ubuntu server 10.10. If you don't know, you can google.
    -When box get dhcp IP address, press Cancel, then input IP manual. In my case, my IP is: Netmask: Gateway: Name server address:
    -When box ask software to install, only choose OpenSSH.
    Finish install, reboot box.

    Logon and enable root account.

    sudo passwd root
    Exit then logon with root and latter do everything with root too.

    Update box:

    apt-get update && apt-get upgrade -y
    2/-Install bttv driver:

    I have one dvr card and my card look like this card: http://www.zoneminder.com/wiki/index.php/Kodicom_8800.
    Install bttv driver:

    nano /etc/modprobe.d/bttv.conf
    Cut and paste this quote into file then save and exit:

    Reboot box:

    Logon with root. Make sure dvr card work:

    ls /dev/video*
    If it works, the quote like this:

    3/-Install zoneminder:

    Make Pada scrip:

    nano pada.sh
    Cut and paste this quote into file then save and exit:

    Make pada.sh can execute:

    chmod 744 pada.sh
    Install Zoneminder:

    Add www-data user:

    adduser www-data video
    Reboot box:

    4/-Config Zoneminder:

    On client open Mozzilla web browser. At address type:

    If Zoneminder works, the picture like this. (Make sure in the first line, at middle line like this: "ZoneMinder Console - Running - v1.24.2").

    ( http://picasaweb.google.com/letsharehowto/Running# )

    Click Options.

    Then click Paths tab.

    Check USE_DEEP_STORAGE like this. Click Save button. You will see popup windows, don't worry, click OK button.

    ( http://picasaweb.google.com/letsharehowto/ConfigZoneminder#5531872769608858962 )

    Then click Images tab. Default JPEG_FILE_QUALITY is 70 , change to 100.

    Delete everything at FFMPEG_OUTPUT_OPTIONS and replace with:

    Delete everything at FFMPEG_FORMATS and replace with:

    When you done, click Save button. Then click Cancel.

    ( http://picasaweb.google.com/letsharehowto/ConfigZoneminder#5531872787070731730 )

    Restart Zoneminder: click Running -> choose Restart -> click Apply.

    ( http://picasaweb.google.com/letsharehowto/RestartZoneminder# )

    Add new monitor: click Add New Monitor button then follow my pictures, when finish click save button.

    ( http://picasaweb.google.com/letsharehowto/AddNewMonitor# )

    Download "HQ" movies: follow these pictures - look at mouse point.

    ( http://picasaweb.google.com/letsharehowto/Download_HQ_Movies# )

    You can download mysqltuner.pl from http://blog.mysqltuner.com/download to make mysql work smooth.


    Chris "Pada" Kistner

    Attached Files:

  2. jayoungh

    jayoungh New Member

    How about mpeg streaming instead of jpeg

    In your instructions you use jpeg as the streaming method instead of mpeg. jpeg uses far more bandwidth than mpeg (I have seen it take about 10 times more bandwidth for jpeg). Do you or anyone have any working instructions for mpeg using swf?

    I can get one camera to work using swf but no more than one. asf works a little better but it likes to stop updating after a few seconds.

    jpeg streaming seems to be the most reliable and it doesn't have the tiling/blotchy/fuzzy effects that mpeg does but it uses such a high bandwidth. Would love to use mpeg reliably.

  3. letsharehowto

    letsharehowto New Member

    Thank you for your share. You're right.

    But I want to keep everything simple, default and easiest for somebody who want to setup zoneminder.

    If you want to watch camera smooth and you don't mind about bandwidth via intranet, set:

    - configured for High Bandwidth (Second line at midle).
    - STREAM_METHOD: jpeg

    If you want to watch camera smooth via internet, set:

    - configured for High Bandwidth (Second line at midle).
    - STREAM_METHOD: mpeg

    Somebody knows better can share here.
  4. nausser

    nausser New Member

    Email via Gmail

    Thank you very much for these instructions.
    I would like to ask though, with this install, can you use the perl emailing funtions ZoneMinder has for gmail ssl? If so, can your provide full instructions like you have on this thread as well as detailed examples of email filters to send alarm frames and/or events?

    Thank you in advance for any light you may be able to shed.

Share This Page