DIY Raspberry PI Surveillance System with MotionEyeOS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys what's going on it's don here from nova spur tech and welcome back to the channel and today we are going to be building ourselves a video surveillance system using the raspberry pi so let's get started [Music] before we begin i do want to talk about the hardware before we talk about the software this way you know what i'm going to be using for this entire setup and everything we talk about will be linked down in the description below but first a word for my sponsor private internet access if you guys are not using vpns please do so because that is the best way to mash yourself from your isps or wherever you are if you're in like a public cafeteria or starbucks or something like that you want to be able to encrypt your data so nobody can see what you're doing and one of the best ways is to get a vpn and what i use is private internet access now if you've been a long time viewer of this channel you probably know i've been using it for about eight years i have no issues with it and with the recent updates that they have and the ability to use wireguard i'm getting four times the speed as i was before yeah it's just free improvement basically and having that amount of bandwidth allows me to stream high quality content now private internet access is basically worldwide they have almost 10 000 servers and 70 different countries and i'm not even saying this with like some prompt or something like that i just know this because i've been using them for so long if you've seen my previous video way back when i think a year ago they were only allowing five devices for one account and now they upped that they put 10 devices per account so you could actually get more devices they also support every operating system that's out there which is windows mac os ios android linux raspberry pi anything that you can think of it will work on it so you don't have to worry about that they also have 24-hour support so if you run into any issues and i actually have almost zero downtime i mean there are times where it's down and i know that they're doing upgrades but it'll switch the server and i have no issue and if you're using the desktop app there's the ability to disconnect your antenna if the vpn does go down another big thing about this company why i chose to use it is because they have no logs if i don't want the cafeteria or the cafe or any my isp to know what i'm doing i wouldn't want them to know either so they have no logs whatsoever it also allows for p2p and if you guys don't know what that is don't worry about it my main uses scenario for this sometimes is to move to another country so i could watch stuff that's available in different places that's not available in the states but yeah you could do that with this as well and best of all if you're using the link down in the description below you get three free months of private internet access so not only do they have a 30 day money back guarantee you also get three free months so really you have nothing to lose so what i'm going to be using today as the command center you would say is the raspberry pi 4 4 gigabyte version now i do recommend using anything above 2 gigabytes that's because the motion i software that we're going to be using does require a little bit more ram if you're planning to start transferring files at ftp and all that other stuff so two gigs would be recommended i would say i'm also going to be attaching the raspberry pi 4 to the raspberry pi hq camera module so i would have better video footage and you could also interchange the lens to a wide angle or a focus or whatever you want to use so i'm going to be using this high quality lens on that next up we have the raspberry pi zero as another location and i'm gonna be using the old camera module for this but it's on a raspberry pi zero and this doesn't require much so i'm gonna be using a four gigabyte sd card on this as well and last but not least we're also going to be attaching an ip camera stuff that you could buy from any retail store so we're going to be attaching three different modules onto this guy and i'm going to show you how to get the storage working and everything so we would have everything to one central location so let's jump to the software now now as far as the software we're going to be using is called motion ios and this has been around for quite some time now it's only been a lot better actually recently because of the raspberry pi 4 with more ram to be used back then when it was using raspberry pi 3 or the raspberry pi zero we would struggle because there was lack there of ram and when you start to do anything intensive it would kind of like crash but now it's gotten a lot better because of that next up this also supports more than not just the raspberry pi you could actually use a bunch of boards for this and if you go to their main website it will have it on their github or you just follow these links which will also lead to their github so this is their github page and there's not much to see here but you do need to notice the release version over here and i will leave a link down to all this stuff down in the description below this is the installation process and you can actually just write the image using your own thing or i'm going to be using raspberry pi imager for this but you can see if i go to supported devices you have banana pie nanopi odroid a bunch of boards that you could do this on not just the raspberry pi now if you are using the raspberry pi zero you will need this particular image because this works for the compute module zero and all the other ones while raspberry pi 4 needs its own image here now heading over to the release page they do have the dev version which came out like i think about two months ago which is not too bad but i actually opted out to use the standard release version right over here and again just download the regular raspberry pi for your xero and the raspberry pi 4 for your 4 image and you can see it's only like 50 megabytes it's not big first of all i'm going to be flashing the raspberry pi 4 and i have a 32 gigabyte sd card um i would recommend actually going higher if you can because that's where you're going to be storing all the footage so i am gonna do [Music] where is it raspberry pi imager i have not tested this on hard drive um i'm probably i'm pretty sure you could hook up a hard drive to it but don't quote me on that because i didn't try it on a hard drive but it would make sense too now you see i have already the two files this doesn't have a four in it so i'm going to be clicking on this one and this one has the raspberry pi 4. okay choose the sd card 32 gigabyte and write and this will erase everything on that pop in my password and you see how it's quick because it's only a very small file it's actually based off build root so it's really fast when it boots up it has barely nothing only the operating system and the functions that it needs so within what 20 30 seconds i already flashed the image over to here and that is it now i'm going to remove the sd card from this and pop it into my raspberry pi 4 for now but while we have the screen up we are also going to flash raspberry pi zero now raspberry pi zero does have a little bit of a configuration to set up because we have to pre-configure the wireless so i'm gonna pop in the sd card which is the four gigabyte change this image no don't need to read that change this image over to this one which doesn't have the four open choose sd card four gigabyte right yes this will take a little bit longer because it's a slower sd card you could tell the writing speed already it's it's a little bit slower which doesn't matter it's it's going to be fine it runs just as well all right we are done what i do need to do is unplug this and pop it back in so i can see the partitions now if you don't do this step before you first boot you're going to have to re-flash it because it only happens once so i'm gonna go to this wi-fi pre-configure under github and i'm gonna need to copy this okay so let me open up the image and i should be able to see this there you go this is the boot volume for the raspberry pi zero and in here i would have to create a new file called wpa supplicant dot config and i'm going to edit this and pop in that information now this you would have to change to your password your wi-fi and the file gets deleted after you boot it up the first time it actually gets moved to the correct location where it's supposed to be so you just have to pop in here and change all your wi-fi information all right once everything is saved and you have everything you need we are ready to boot up the raspberry pi 0 as well as the raspberry pi 4. so i'm going to hook this up onto my pi kvm this way you guys could see the console mode on what happens when it boots up from scratch all right here we go so it's booting up and this is the first time it's booting up on the raspberry pi 4. i didn't hook up the raspberry pi zero yet i will do that in a minute there we have it now if you take a look at this it'll actually give you your private ip over here so i don't have to search my router for the ip address it just prints it on the main screen and if i hop over there it will bring me over to all right so here we go it basically starts up this way the password is admin blank and i kind of have it as much as focus as i can because it's kind of hard to adjust when i'm sitting so far away but yeah this is the first camera that is on the raspberry pi 4. now before i attach the other cameras what i do want to do is change one setting onto this now you pop in over here and you can see there's nothing i could do um let me log in so admin and there's no password and i could go over here and configure all the settings i want first what i want to do is obviously change the password you should do that but i am going to change services and in here it has samba server and right support is disabled i am going to enable that because that's going to allow us to write the files from the other locations to this central command center that i'm talking about so while this is rebooting i am going to plug in my raspberry pi zero and let that configure itself in the beginning all right now that it's rebooted and i've plugged in my raspberry pi zero i'm going to pop in over here make sure everything is working again and switch over to my raspberry pi zero now at this rate uh you could actually plug the raspberry pi zero to a monitor so you can see what ip addresses or you could go into your router and find out what the raspberry pi zero ip is for me i have an idea what it is already because i use this for something else and i do have it mapped to a certain ip which is 130 on this raspberry pi zero so i'm going to pop over here and you can see that it's literally right in front of me that's that's a good sign now in here while i am here i'm going to keep this open but i am going to change the name of this camera so it doesn't conflict with the other camera because they're both named camera one so i'm gonna pop in and say admin let me move this a little bit over here i am gonna change the camera name which i believe is this here and i'm going to call this zero click off of that hit apply that's going to change name and now we could attach this over to our central hub i'm going to keep calling the central hub even though i don't know what i should call it so i'm going to pop over here and get back into the settings and as soon as you see the settings there's not much i could see here for adding a camera it actually took me a little bit just to remember how to do this and to add a camera you click this little drop down and click add camera now i'm not going to add a local camera which i can i can actually add another webcam or whatever i want but i am going to add a remote motion i camera and in here we have the ip address that we need to put in 105.130 and the password is admin admin and as soon as you click off of it not https sorry about that http and as soon as you click off of it it already knows what camera it's gonna be on which is cam camera zero and that's the one we named it hit okay and it's gonna add that camera onto this central base you see now i have two cameras going on now for the third camera which is this ip camera that we're going to be adding i have one hooked up upstairs and we're going to add that as well now so i'm going to go to add camera and this is going to be a network camera now most cameras support this protocol called rtsp and make sure if you're going to buy a camera like this it does have that protocol in most cases it does so what i'm going to be using is r t s p colon slash the ip address of that camera and then it's 554 for that port and we have the username and then the password and in here it should be able to just pick it up let's see and there we have it this is going to be my third camera and it should be pointed into my living room the only downside to using these type of cameras which is the 360 motion type thing you can't control it through this system you would have to actually log in manually to this guy and then you could change the angles and stuff like that but it does keep an eye on what's going on so my living room this raspberry pi zero camera and that raspberry pi 4 with the camera module is now all hooked up now to get the storage working we would have to go over to our main zero device to attach the storage now if i was to go into the network location network that location and it should be called well it's not called anything it's just 192.168.105.122. and you see how there's sd card and storage you got to make a note of this called sd card and in here i can i'm going to connect with the password now that i'm able to get into this you see there's a camera 1 and camera three and because this is using a rtsp this will automatically save everything to my raspberry pi so i don't really have to configure the camera three anymore but the raspberry pi zero is the one that i have to configure which is the other motion i device now i can't just go in here and configure the camera too even though if i could click on camera zero and set up some settings i can't activate this option through here i would have to manually go back to the 130 which is my camera my raspberry pi zero camera and set it up through here instead so basically what i'm going to do is go over to file storage and instead of custom path i'm going to change this to network share network server will be my ip address of the raspberry pi 4. and smb protocol you do not want to use one so you can use three and the share name is sd card remember we were looking at that before which is right over here sd card username is admin and you do need to set up a password for this while you have to set up the password for the main guide just to get this to work what you have to do as far as the root directory goes it says data then output then camera 0. this is relevant i'm going to show you why we needed to put data output so now that i tested the share and it works i'm just going to hit apply and anything that i set over here will be sent over to my raspberry pi 4. so yeah i know i'm bouncing a little bit back and forth but this is the only way to do it so now that i'm i just switch back over to the raspberry pi 4 as you can see there's three cameras over here the reason why i had to call that data output because that's how they named their root folder data output and then slash camera and then in here i would be able to reach over to that camera zero popping back into the settings and camera one i'm just going to take a look at the motion detection now it is enabled by default and you can set the sensitivity on here and how you want it to play how long the gap is all this stuff remember to take a look at their instructions because it gives you a little bit more detail on how to configure and what you want but you do have to also enable movies now once you enable this it will save the motion detection into that folder over here in the camera so you see how it's motion triggered that's the recording mode or you could do it like continuous it'll continuously record maximum length how long you want to preserve it and that all depends on how much space you got now if you only have 32 gigs of space then you might want to only preserve it for about a week and if you have more space than that then you can preserve it for a little bit longer and keep in mind if you're doing three cameras it's gonna be more so there's also a frame rate to account for now the frame rate is slow on this one it's about five frames per second which you can adjust but again if you adjust that that means the file sizes are going to be a little bit bigger and that all depends on how you want to play around with it i'm going to hit apply over here and it should just take effect on camera one because i didn't set the other ones yet but the idea is the same you just have to go through each camera on how you want to set it up what how sensitive you want the motion detection to be yeah and then if you pop over to the sd card again with the network address and you can do this on windows or any other operating system um when you head over to camera one i'm not gonna see anything now because i'm not triggering anything and maybe i should have just set it to instead of motion trigger continuous recording let me hit apply on that and you should see files start spawning over here on camera one because my camera one should just continuously record and there we have it so now it makes a date of today's date and it has one recording we can't watch it yet but it splits it up into a couple of minutes so every few minutes it would have a file every few minutes it would have a file so it has that continuous recording and it gives you the date but that's basically about it i mean setting it up wasn't too hard but it gives you a full surveillance solution and you can add as much cameras as you want especially if you're gonna build it off the raspberry pi zero they're actually very very affordable i mean the raspberry pi zero w is ten dollars then you get the camera module on top of that then an sd card of the smallest you can find because you really don't need much space on there and you have yourself a little camera module you could hook it up to a power bank and then charge that power bank so this way even if you lose power the cameras will be still be going on anyway that's it for me guys if you guys enjoyed this video please hit that like button if you guys have any questions about this i will try my best to answer them and if you guys are new to this channel consider subscribing also hitting that bell notification icon so you know when the next video is going to be out and as i say my nerd cave hack till it hurts
Info
Channel: Novaspirit Tech
Views: 19,261
Rating: 4.8914728 out of 5
Keywords: novaspirit, tech, motioneyeos, raspberry pi motioneyeos, raspberry pi surveillance, raspberry pi home surveillance mult-cam, motioneye raspberry pi, motioneye, raspberry pi home security, raspberry pi security system, raspberry pi camera, raspberry pi projects, how to setup raspberry pi camera, raspberry pi surveillance camera with motion capture, motion eye os, raspberry pi 4, motioneye setup, cheap surveillance system, camera
Id: Lr2dOBRVqec
Channel Id: undefined
Length: 17min 30sec (1050 seconds)
Published: Fri Dec 04 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.