CCTV: Build your own video surveillance system with ZoneMinder

Sdílet
Vložit
  • čas přidán 4. 07. 2024
  • 00:00 Intro
    00:47 PC Components
    01:14 ZoneMinder Setup Options
    01:36 Downloading the Software
    03:01 Copying ZoneMinder (TurnKey Linux) on to a USB Stick
    03:46 Booting from a USB Stick
    06:27 Installing ZoneMinder (TurnKey Linux)
    08:07 Creating Accounts
    09:24 Logging in as root
    09:36 Setting a Static IP Address for ZoneMinder
    11:07 TurnKey Linux Configuration Console
    12:14 TurnKey ZoneMinder Control Panel
    13:08 Web Shell
    13:46 Webmin
    14:41 ZoneMinder
    15:14 Adding a USB Webcam
    20:18 Adding an IP (Internet Protocol) Camera
    30:27 Adding a Raspberry Pi Network Camera
    56:07 Adding an Android IP Camera
    1:02:35 Capturing Audio
    1:03:18 ZoneMinder Web Interface
    1:12:22 Zones
    1:14:31 Accessing ZoneMinder Over the Internet
    1:17:45 Email Alerts
    1:22:55 Backing up ZoneMinder
    1:29:59 Restoring a Backup
    1:33:09 The End
    Would you like to turn a standard PC into a versatile surveillance hub? In this video we'll do precisely that by installing TurnKey Linux's ZoneMinder Appliance.
    We'll then add and configure four different types of camera (including sound, if required/supported):
    * USB webcam
    * IP (network) camera
    * Raspberry Pi camera
    * Android smartphone camera
    After familiarising ourselves with ZoneMinder's web interface, we'll look at remotely accessing the system. Then finish by setting up email notifications, and performing a system backup/restore.
    Website links:
    ZoneMinder
    zoneminder.com/
    TurnKey Linux
    www.turnkeylinux.org/
    Debian
    www.debian.org/
    Etcher
    www.balena.io/etcher/
    Static IP: Beginner's guide to setting up static (and reserved) IP addresses on a home network
    • Static IP: Beginner's ...
    VLC Media Player
    www.videolan.org/
    TP-link Tapo RTSP
    www.tp-link.com/support/faq/2...
    ZoneMinder Camera Control
    zoneminder.readthedocs.io/en/...
    Raspberry Pi official website
    www.raspberrypi.org/
    Setting up a Raspberry Pi headless (example wpa_supplicant.conf file)
    www.raspberrypi.org/documenta...
    Country codes
    en.wikipedia.org/wiki/ISO_316...
    Angry IP Scanner
    angryip.org/
    ZoneMinder Defining Zones
    zoneminder.readthedocs.io/en/...
    Remote Access: Securely connect your devices over the internet with ZeroTier
    • Remote Access: Securel...
    TurnKey Hub
    hub.turnkeylinux.org/
    TurnKey Hub API key
    hub.turnkeylinux.org/profile
    FileZilla
    filezilla-project.org/
    Additional credits:
    Thanks to www.1001fonts.com/ for the following fonts
    BlueSakura made by selawe
    CAT Altgotisch made by Peter Wiegel
    Fat Finger made by Matthew Welch
    Amazon AWS logo courtesy of Amazon.com Inc. (Apache License 2.0 www.apache.org/licenses/LICENS...) via Wikimedia Commons
    Heavy Interlude music by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 licence (creativecommons.org/licenses/.... Thanks to incompetech.com/
    Snare Drum Roll courtesy of www.freesfx.co.uk/
    (Original) images sourced from the superb pixabay.com/
  • Věda a technologie

Komentáře • 98

  • @jim7smith
    @jim7smith Před 2 lety +7

    I cannot refrain from praising you for the absolute best zoneminder tutorial I have ever seen. I can hardly wait to set it up. Thank you so very much!

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      Thanks for such positive feedback. Glad you enjoyed the video :)

  • @jpblcm
    @jpblcm Před rokem +1

    Really good and right to the point. As Jim Smith Sr, just said "absolute best zm tutorial".

  • @kennethodhiambo1803
    @kennethodhiambo1803 Před rokem +4

    Of all the video tutorials I have ever watched, the is the best I have watched yet! Very well structured, very simple and easy to follow. Thank you very much

    • @bytemypi2918
      @bytemypi2918  Před rokem

      You're welcome. Thanks for your kind words :)

  • @SirBennyMiles
    @SirBennyMiles Před 3 měsíci

    What a great video. Thank you for that. There's more knowledge in this single video than in the whole chanel of some other guys 👍🏽👍🏽

  • @mrsylvester666
    @mrsylvester666 Před 3 lety +3

    Thanks for another very in depth and informative video. Was going to set up either motioneye or zonealarm on a stand alone old pc. looks like it going to be zonealarm now!
    Also enjoyed your airsonic guide, keep up the good work.

    • @bytemypi2918
      @bytemypi2918  Před 3 lety

      Thanks for the feedback, much appreciated. Have fun creating your video surveillance system :)

  • @DisasterousRDX
    @DisasterousRDX Před 3 lety +1

    Thank you for the efforts. This is what I was looking for. Learnt a lot of stuff, will soon implement the complete system. Thanks a lot!

    • @bytemypi2918
      @bytemypi2918  Před 3 lety +1

      You're welcome. Thanks for your feedback and have fun setting up your new system :)

  • @rpatros
    @rpatros Před 2 lety +1

    This is a top notch tutorial...keep up the great work.

  • @muzguz7276
    @muzguz7276 Před 5 měsíci

    Excellent tutorial, thanks so much for your efforts.

  • @TheClembo
    @TheClembo Před 11 měsíci

    It's been only what I expected from you! Thanks so much. Everyone that's already commented have a tick against them from me so I won't bore you here with any thing else. I can't add anymore. Just the best! ATB and cheers. Only to say it's been a bit quiet from you lately, hope all is well with you and yours. Thanks.

  • @LeeSurber
    @LeeSurber Před 3 lety

    One word! Fantastic!

  • @nagoredeen
    @nagoredeen Před 2 lety +1

    Amazing tutorial

  • @MarioLopez-xw8ju
    @MarioLopez-xw8ju Před 3 lety

    Thanks ... Excelent tutorials ...

    • @bytemypi2918
      @bytemypi2918  Před 3 lety

      You're welcome. Thanks for your feedback.

  • @danielo9408
    @danielo9408 Před 8 měsíci

    great! I love the mole :-)

  • @aizenmills8222
    @aizenmills8222 Před 2 lety

    Would love love to see a in-depth video on Shinobi cctv.

  • @carlosdantenicolasdelafuen1293

    Thank you 👋👋👋👍

  • @garrysingh4484
    @garrysingh4484 Před 2 lety

    Best !!! 📷 Video

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      Thanks for your feedback :)

    • @garrysingh4484
      @garrysingh4484 Před 2 lety

      @@bytemypi2918 Can You Please Make Videos On Following Topics Because There Are No Good Videos On This Topics On CZcams :
      Topics
      - Xrdp Linux - (To Access Linux From Mac or Windows)
      - X11vnc Linux - (To Access Linux From Mac or Windows)
      - Net Speed Meter App For Linux
      - How To Properly Remove Linux From Dual Boot On Macbook Pro (Same Like You Make Video For Windows - Because Every Time I Try This I Ended Up Messing The Whole MacOS & Have To Reinstall From Scratch)

  • @cctvinstaller5292
    @cctvinstaller5292 Před 3 lety

    Great video about Zoneminder and very practical. Do you plan to review CCTV lens calculators or something like JVSG design tool in your future videos?

    • @bytemypi2918
      @bytemypi2918  Před 3 lety +1

      I think you'd need a dedicated CCTV channel to go into that kind of depth. Thanks for your feedback, much appreciated.

  • @mechrekt
    @mechrekt Před 2 lety +1

    Hi, can you tell how to use another harddrive to store data for zoneminder? Thank you for this in depth guide!

  • @daytrader66
    @daytrader66 Před 3 lety +1

    First class tutorial. Just what I was looking for. I see Zoneminder 1.36.0 has just released. Any idea how far behind turnkey builds are behind the product releases?

    • @bytemypi2918
      @bytemypi2918  Před 3 lety +1

      I think the TurnKey version of ZoneMinder is currently 1.34.23. It obviously takes some work to get it all integrated into an easy to use package. Thank you for your feedback :)

    • @chrissullivan8556
      @chrissullivan8556 Před 2 lety +1

      I have just installed ZM 1.36.12 docker image on Debian 11 - works very well. Something to consider when it comes to applying ZM updates (but at the discretion of the image maintainer)

  • @1powelrainbow2
    @1powelrainbow2 Před 2 lety +2

    Absolutely wonderful! I have tried different tutorials out there (all way too advanced for me) but none has explained it as well as you! I'm so happy that I have actually gotten this far. One problem though, I have set up two cameras (usb and IP) and though they're capturing according to the zoneminder UI, I can't see any live feed (broken image symbol) when I check the feed. Any idea what causes this? Some online said i need to check the zm config file but have no idea how to find it (i don't know how to navigate in the terminal). Once again, thank you for your effort!

    • @bytemypi2918
      @bytemypi2918  Před 2 lety +1

      You're welcome. I'm glad you found it helpful.
      I initially thought that the problem you're experiencing could be an authentication issue between the cameras and ZoneMinder, but the fact you mention even the USB camera having trouble suggests something else is at fault. Have you tried using a different web browser, say Firefox for example?
      With regards to the ZoneMinder config file, it's located in the /etc/zm directory. From the Terminal, type "cd /etc/zm" (without the quotes). Before going any further it's a good idea to make a backup of the config. You can do this by typing:
      cp zm.conf zm.bak
      Now you can open the file with the nano text editor:
      nano zm.conf
      After making any changes you can press Ctrl + X to exit. Finally, type "y" (again without the quotes) and press Enter to save them.
      Hope that helps :)

    • @1powelrainbow2
      @1powelrainbow2 Před 2 lety +1

      @@bytemypi2918 thank you for your reply! I searched a lot and found out exactly what you said, zoneminder gave me error due to some authorization. After searching I found a button controlling it, turned it off and now it works. I know it's not a permanent solution but it'll do for now. And great thanks for the terminal tutorial, really need to learn it...

    • @bytemypi2918
      @bytemypi2918  Před 2 lety +1

      @@1powelrainbow2 No problem. I would have pointed you in the direction of the Auth-Relay setting, but I wasn't sure if it was that when you said the USB camera didn't work either. It sounds like you found it anyway :) I'm thinking of doing my next video about the Linux Terminal.

    • @1powelrainbow2
      @1powelrainbow2 Před 2 lety

      @@bytemypi2918 ooohh i would love that! The terminal is my Achilles heel being a UI guy. Despite surrounding myself at home with so much raspberry pi, Ubuntu and now zoneminder, I absolutely s*ck at it

    • @bytemypi2918
      @bytemypi2918  Před 2 lety +1

      @@1powelrainbow2 Sounds like you're on the right track, surrounding yourself with Raspberry Pis! Watch this space :)

  • @hamzafekkak6321
    @hamzafekkak6321 Před rokem

    hello everyone , I have a question, is it possible to browse the recording that is in the hard drive of the DVR hikvision or Dahua via Zoneminder?
    Thanks soo much!

  • @sergeyabramov6606
    @sergeyabramov6606 Před rokem

    Can you show connect zmninja?

  • @tonystark1300
    @tonystark1300 Před 2 lety +1

    Thanks for the video mate, but please mind your audio levels. Your voice is super quite so I cranked the volume and then your intro music almost blew my speakers it was so loud.

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      Sorry about that. I've adjusted the audio levels on my newer videos. Thanks for your feedback.

  • @leoncryp8182
    @leoncryp8182 Před 2 lety +1

    FYI your intro video sound is a bit too loud when compared to your voice.
    Maybe reduce sound of intro vid by 20-30% to normalize it with your voice.
    Great tutorials by the way, ive been watching a bunch of them already

    • @bytemypi2918
      @bytemypi2918  Před 2 lety +1

      I've corrected the volume levels on the more recent videos, but unfortunately there's no way to do this on already published content. Thanks for your support :)

    • @leoncryp8182
      @leoncryp8182 Před 2 lety

      @@bytemypi2918 oh forgot to mention your out-tro has the same problem. but you probably had it fixed too.

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      @@leoncryp8182 Yes, I sorted that too :)

  • @gregn267
    @gregn267 Před rokem

    is there an app for old iphones?

  • @MarcoCanever
    @MarcoCanever Před 3 lety +1

    Hi. Tks for this great video. I installed in a 500Gb Hd (487Gb ext4 and 12Gb swap). So, could you explain how do I manage dedicated space to store videos without getting full? Does ZM control free space dedicated to store vídeos? Does ZM auto delete oldest vídeos?

    • @bytemypi2918
      @bytemypi2918  Před 3 lety +3

      You're welcome. I've not used a dedicated disk with ZoneMinder for storing the captured footage, but since the TurnKey Linux version is based on Debian, if you find the folder where the CCTV videos are stored, you could mount the second disk to this location so that the videos are saved to that drive. Be aware that you'd also need to make sure the file permissions are correct. As for auto deleting the oldest videos, yes, this functionality should already be turned on by default. You can check by looking in the "Filters" tab and selecting the "Purge when disk is full" option from the drop down list. Hope that helps.

    • @MarcoCanever
      @MarcoCanever Před 3 lety

      @@bytemypi2918 thank you very much. I’ll try the way you said. Greetings from Brazil!

    • @bytemypi2918
      @bytemypi2918  Před 3 lety

      @@MarcoCanever No problem. Hope it goes well. Hello from the UK!

  • @andresenriquegomezalba9728

    Hi, thanks for your video, is there any way to enable motion alarms other than email?

    • @bytemypi2918
      @bytemypi2918  Před 2 lety +1

      You're welcome. I don't think ZoneMinder natively supports any other type of alert system, but you could use a third party email to SMS gateway service which would then send you a text message when an alert is triggered. Hope that helps :)

  • @hectorsilva9071
    @hectorsilva9071 Před 3 lety

    Hi, all good, but when I add more than 7 cameras and go to the Montage tab, one camera always goes blank, that happens with any camera, always one of the 7 remains blank, does not show image.

    • @bytemypi2918
      @bytemypi2918  Před 3 lety

      I've not tried that many cameras before. I wonder if its using all of the available hardware resources. Might be worth checking how much RAM you have, or try lowering some of the camera resolutions.

  • @danielo9408
    @danielo9408 Před 4 měsíci

    Hi just wanted to clarify, as it's been some time since your video, 3 years, I have just been on the zoneminder site, it says free, as per your content here, but it also shows paid services on the site, can you confirm these are not necessary please?

  • @bubuluke
    @bubuluke Před 3 lety +1

    Wonderful. I learned a lot Where are events stored? Are they on the database?

    • @bytemypi2918
      @bytemypi2918  Před 3 lety +2

      The events can be downloaded from within the web interface, but if you need to find them on the actual disk, according to ZoneMinder's website they should be located in /var/cache/zoneminder/events
      Thanks for your feedback.

    • @bubuluke
      @bubuluke Před 3 lety

      @@bytemypi2918 Thank you! For the sake of automation, I need to know which specific zone was triggered. I have a Python application that also needs to run based on an event.

    • @bubuluke
      @bubuluke Před 3 lety

      @@bytemypi2918 I am looking at this: The only way ZoneMinder sends out event notifications via event filters - this is too slow zmeventnotification.readthedocs.io/en/latest/guides/es_faq.html I wonder if and why this is so much faster than reading the logs.

    • @bytemypi2918
      @bytemypi2918  Před 3 lety

      @@bubuluke It looks as if that's a separate server that can be set up alongside ZoneMinder for notifications. When I tried notifications of ZoneMinder events for the video (using the built in system) it seemed to respond quite quickly, although this would depend a lot on your email provider.

    • @bubuluke
      @bubuluke Před 3 lety

      @@bytemypi2918 I need ZM to talk to other applications that aim a PTZ camera. I am looking at the PYZM now. I need to know when a uniquely identified zone has been breached.

  • @DaveGregson
    @DaveGregson Před 2 lety

    Help nneded please! I go to login at Zoneminder and enter the correct details but it just sits there? Any Ideas plase?

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      If you haven't already, first restart Zoneminder. If that doesn't work, try using a different web browser. Hope that helps :)

  • @guldgossen30
    @guldgossen30 Před 3 lety

    I tried to install zoneminder on a raspberry pi 4. I think I got it working for the most part but I can only get the /stream2 to work not /stream1. I have the same tapo c100 as you have. Bought two of them today. And I get the same on both. Not sure how to troubleshoot this. It works fine in vlc.

    • @bytemypi2918
      @bytemypi2918  Před 3 lety

      I've not tried running Zoneminder on a Raspberry Pi. I'm wondering if a 1080p RTSP stream is a little too much for it. I know that hardware acceleration is currently unavailable on the Pi 4 when using certain video codecs in Kodi media centre. I'm not sure if something like this may be the case when it comes to processing video streams in Zoneminder. Your best bet is probably to have a nose around in the Zoneminder forums and see if anyone there has any experience of this issue:
      forums.zoneminder.com/
      Hope that helps.

    • @guldgossen30
      @guldgossen30 Před 3 lety

      @@bytemypi2918 Thank you I will check in the forums. Meanwhile I have tried Shinobi and the 1080p stream works just fine with that so it doesn't seem to be a hardware limitation. But I would really prefer Zoneminder.

    • @bytemypi2918
      @bytemypi2918  Před 3 lety

      @@guldgossen30 Yes, that would certainly suggest that the Pi can handle the video stream. I hope you manage to get it working with Zoneminder.

  • @winston_nn
    @winston_nn Před rokem

    how to doing raid in zonminder

  • @mucip_ilbuga
    @mucip_ilbuga Před rokem

    Hi,
    Thanks for the valuable tutorial.
    Can we use ESP8266 Webcam with ZoneMinder?

    • @bytemypi2918
      @bytemypi2918  Před rokem

      Providing the webcam supports the RTSP protocol it should work fine. A quick Google search seems to suggest that it does :)

    • @mucip_ilbuga
      @mucip_ilbuga Před rokem

      @@bytemypi2918 ,
      Infact I checked and could't see any video tutorial like yours or document if I can use esp8266 CAM with ZoneMinder?!
      Ok. Thanks. I will try than. ;)

  • @ouzonat9937
    @ouzonat9937 Před 2 lety

    Thank you very much, do you think it is possible to add 180+ ip cam on a server? or two servers?

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      No problem. So long as the IP camera supports RTSP, you should be able to link to its video stream the same as any other security camera. Being able to control the camera rotation from within ZoneMinder is another matter, and will depend on whether the model is supported or not. Hope that helps :)

    • @ouzonat9937
      @ouzonat9937 Před 2 lety

      @@bytemypi2918 thank you, it does. Two of the cameras have ptz others are stationary. All of them support rstp
      We have more than 180 ip cams and two Windows Servers that control and record them. I'd like to set up linux and zoneminder to those Servers but i am gonna need a lot of courage for that :)

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      @@ouzonat9937 Sorry I misunderstood the question. I thought you meant you were using a 180 degree rotating camera, not that you had 180 cameras! Wow that is an ambitious project. I've never tried anywhere near that number of cameras. I'd try adding maybe ten at a time and see how it goes. Good luck.

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      @@ouzonat9937 I had another thought. I don't know what Zoneminder's camera limit is (or if there even is one), but with that many connections I could see the biggest issue being network bandwidth. If you were to use virtualisation (you mentioned they are Microsoft servers so they'll have Hyper-V), you could potentially install multiple Linux virtual machines on each server, and set up ZoneMinder on each one. That way (if required) you could install extra network adapters into each server and assign them to certain virtual machines. You could also have the different instances of ZoneMinder looking after particular physical groups (areas) of cameras. By the way, your original question makes far more sense now (I wondered why you mentioned two servers)!

    • @ouzonat9937
      @ouzonat9937 Před 2 lety

      @@bytemypi2918 np. Afaik there is no limit for camera number. We do have cisco virtualization however our network structure as follows. We keep our data network and camera network seperate. Their switches and cables are seperate. Thus no virtualization on camera side since that would put strain over data network and disk size would be costly Our cam Servers have Windows Server 12 installed and runs an old version of luxeriot software. Each Server has over 90 cams recording with around 150 tb disk. I dont know May be using cluster approach would work. Or using docker containers. İ am hesitant Windows machines are a pain in the ass...

  • @dhxbcmd
    @dhxbcmd Před 3 lety

    Your video is very interesting
    You are wonderful
    I'm sorry, but is it okay to ask a question?
    I want to link the zoneminder video source to my personal webpage (wordpress)
    In other words, I want to open my camera.
    Anyone can see
    Videos have links like CZcams
    But zoneminder is hard to get video link
    How can I open my video (zoneminder) on my personal webpage?

    • @bytemypi2918
      @bytemypi2918  Před 3 lety +1

      When you say a personal webpage on Wordpress, are you running this on a server inside you own network? If so, embedding the video feed from one of the Zoneminder cameras should be relatively straight forward.
      First, login to Zoneminder's web interface and open the camera monitor that you wish to view on your web page. Then right click on the video feed and choose "Copy image address".
      Next enter the following code into the web page you want the camera feed to appear on (changing the relevant parts), it needs to go in between the "" and "" entries:
      Enter a name for your camera stream here
      Save and refresh the web page and your camera should now be displaying in it.
      I wouldn't advise using this code on the internet, as it reveals the connection key to your Zoneminder user account. I suppose you could create a separate (non-admin) Zoneminder account specifically for this purpose, but you may still be opening yourself up to potential hacks, and you'd also have to do some port opening/forwarding on your router to access the camera feed - which, again, is an added security risk.
      Basically, I'd only suggest doing the above if its on your own private network. I believe there are commercial services out there that will do what you want (on the internet), but you'd still have to trust them with your live feed, and also pay for the privilege. Having not used any of them, unfortunately I can't really comment on their offerings.
      Thanks for your kind feedback, and I hope you manage to safely achieve what you're trying to accomplish.

    • @dhxbcmd
      @dhxbcmd Před 3 lety

      @@bytemypi2918 Thank you very much.
      I am impressed with your detailed guidance
      But I still haven't solved the problem
      Cannot insert in my wordpress html page
      If it's okay
      Give me your e-mail address, and I can send you an open camera address.
      Can you tell me the html?
      Of course I'm sorry if only you are okay

    • @bytemypi2918
      @bytemypi2918  Před 3 lety

      @@dhxbcmd You're welcome. If you'd like to send me another CZcams private message (like you did last time) containing further information, I'll take a look. If you're concerned about security, just make some of the camera details more generic. Kind regards, BMP.

  • @blaichan5689
    @blaichan5689 Před 2 lety

    How can i connect with wifi if i don't want to use from lan port ZoneMinder

    • @bytemypi2918
      @bytemypi2918  Před 2 lety +1

      I don't think TurnKey Linux supports wireless out of the box, but I believe it can be installed by running the following two commands as root:
      apt update
      apt install wireless-tools wpasupplicant
      I've not tried it myself but I hope that helps :)

    • @blaichan5689
      @blaichan5689 Před 2 lety

      @@bytemypi2918 thank i will try it

    • @bytemypi2918
      @bytemypi2918  Před 2 lety +1

      @@blaichan5689 You're welcome :)

  • @akissot1402
    @akissot1402 Před 2 lety

    that british accent must be staight out from a harry potter movie or sm

  • @serhii_rs
    @serhii_rs Před 2 lety

    Please remove loud sound from your videos.

    • @bytemypi2918
      @bytemypi2918  Před 2 lety

      The audio has been corrected on the newer videos, but unfortunately CZcams's editor doesn't support adjusting already published content.

  • @SayWhaaaaaaaaaaaaaaaaaaaaaaat

    geezus you have probably the worst cameras i've seen..looks line not security cameras but spying cameras.