Realtime Video Streaming from Raspberry Pi (Zero, 3, 4) with Pi Camera using RPI Cam Web Interface

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone this is me origin with a new video and in this video we are going to see how you can do live video streaming using your raspberry pi and raspberry pi camera so as you know there are many tools using which you can do live video streaming from raspberry pi but the problem is the latency in most of the techniques there will be a huge latency and so it will be not in real time but in this video we are going to see a method which will be almost in real time and the latins will be very low and also i'm going to use raspberry pi zero and a pi camera so i'll show you even if you're using a raspberry pi zero which has a very less computing power still the video will be almost in real time and also like the video will be streamed in web so you will be able to access it from any device from a computer from uh like a smartphone or any device and if you want to like stream it over the one that means like your raspberry pi is in your home and you want to access the video footage from somewhere else i will also tell you how you can do that so that like you will be able to access the video over the internet so we are going to discuss about all this thing in this video so stay tuned and let's get started okay guys so let's just talk about the hardware first so in this video i'm going to use this raspberry pi zero and i already have connected a raspberry pi camera with it uh but you can also use a raspberry pi three or four okay the process is totally same uh but the thing is that you cannot use a usb camera this process is not for usb cameras you you have to use a raspberry pi camera and this method will only work with raspberry cameras okay so don't use a usb camera it is not going to work and this is all about hardware but there is nothing else and if you don't know how to connect our raspberry pi camera with raspberry pi zero in that case i have a separate video on this like how you can connect your sbd by camera with raspberry pi zero and how you can check if it is working or not the link of that video will be in the description so uh you please watch that video and then you can just continue in this video so now let's like uh turn on this pie get into the pie and see how we can actually do the video streaming well guys now we have to get into our pie and for that i am going to use putty but you can use like that is demo mechanism pnc whatever you want so here i write my local ip and now i need to write the username and password and now i am inside my pi okay now here before like i begin i have to do two things you don't do this thing actually my one of my python script is using the camera so i need to turn that off so i will use pseudo pickle python but you don't need to do like use this command okay okay so now we are basically ready uh to install the service now here we are going to use a service called rpi cam wave interface so the link will be description so you copy this link and then you just use git clone okay to glue under ready and uh it will take some lighting few seconds or few minutes to download the whole repository and you just wait for this and after it will be downloaded we have to get into the file like folder so cd rpi web interface cam wave interface and then here as you can see there are many files we need to use that install sh file so dot slash install dot sh and this script will basically do everything for you don't need to do anything you just wait and basically it is going to uh it will basically install everything now remember one thing before you do these things you must have to like basically enable your camera from the sudo s5 config and also you must have connected the camera properly so if you don't know how to connect the camera properly or how to turn on the camera or how to check if the camera is working fine or not i have a separate video on this topic the link of that video will be description so you watch that video and then you continue so make sure that your camera is connected properly and your camera is working uh then only you continue else you will get error like camera is not working not getting sensor data from camera and like a lot of errors okay so make sure your camera is working and then you can just uh do this thing so here we need to wait a little bit and as you can see here we got this menu here now here i'm going to change only one thing which is i'm going to like i i don't need auto restart so i'll use no here if you need auto start like in that case like sorry how to restart to start so if you need it in that case it uh you can just left it as yes but i'm going to let make it know and then you can simply press enter and then it will start installing all the things so here it will basically install a php 7.3 so it will take some time so we need to wait here okay now i am showing the installation process because if we get any kind of error i will show you how to fix that up and you may get uh error here because okay remember one thing here i'm using the latest version of raspbian like raspberry raspberry pi os okay so you should also do the same so as you can see here we got a uh error so if you get idle like this if you don't get it it's totally fine if you get error like this in that case like you can use this technique and it may work fine for you so here i will just do this okay and also like even after doing this if you get any kind of error in that case you just do a pseudo update update so do i get upgrade okay most of the times uh after doing these two things maybe like your errors may go on okay so you do that and if still you get error after that like you shouldn't get any error if you're using the latest version of like raspberry pi os and if you have like if you have did update in that case you shouldn't get any error but still if you get an error you can let me know in the comment section okay so and uh here as you can see the update process is going on and uh i think it will take few more seconds to complete the update so let's just wait for it and now as you can see the update is finished now we can actually do the same process so again we will run the install.sh and hopefully this time it will work just fine okay now as you can see the installation has been done successfully and now here i'm not going to start it now i'm going to select no here because i want to just show you how you can start this service manually so here we will basically select uh no and now we are basically now here from here we are going to exit and now we will just start the service manually and now we'll see like how it is working okay so to start the service there is a file in this folder called start.sh so if you do ls you will see there is a file called starters sh using which you can turn this service on and that is top dot sh using which you can turn the service off so now at first we'll use start.sh and after the like this script will get executed uh the camera will be turned on and the service will be turned on and we'll be able to actually use it so now let's see okay now let's check uh how it works so here we need to write the ip offer pi in my in my case it's 192.005 and the port number is 80 so if we don't write this still okay so if you open it you'll see something like this you click in the html and then you will be able to access the camera now here as you can see it's working just fine and as you can see the latency is not all like it's very low and it's almost working real time as you can see i'm talking and as you can see it's working just fine and even if i just stand something like this you can see uh it is working totally fine okay uh now as you can see here there are many options so now let's just explore them so if you see there is a record video record image time slash start motion detection stop camera so if you just click in the record image it will basically capture image so now if you just go to download images you will be able to see the image and also you'll be able to download it and then there is camera settings now here there are many things like the resolution the like image resolution fps uh brightness sharpness saturation iso and many more things so you can play with them but the most important like the thing i like really use is this rotation thing so you can actually rotate the camera so based on your project you will be able to maybe uh uh you have like you have used a camera somehow in your project so that like you need to rotate that you can actually rotate it from here which is a really cool feature so you can even rotate 180 and like as you can see it is working just fine and the thing is there which is uh actually uh flip you can actually horizon you can give it a horizontal vertical flip which is also great okay so there's a lot of things you can actually use them and you can play with them okay and you can see how it's work and this is system where you can actually do shut down do reboot reset settings and things like that so there is a lot of settings and also even if you just click it once something like this you will be able to get you will get a full screen view and then if you click it once again you'll get a like what i can say minimize view something like this so this is how it works and uh like and now if you want to like access this thing over the wand so this video footage about the when uh if you know how to do port forwarding is totally fine you can do port forwarding but we don't know how to do port forwarding in that case uh in my channel i have a video where i have shown you how you can actually like uh access raspberry pi ports over the internet without port forwarding so the link up that will be in description and it's like using this technique you will be able to access this video over the one that's meant from anywhere in the world and you don't need to paint it's a free service so you can watch this video set up the pie and it will take hardly five to ten minutes and then you will be able to access this video over the when too okay so the link will be in the description please go and watch that out okay and i hope you will like it so this is about how you can access it and now to like turn it off you can simply go here and you can simply write uh stop dot h call stop.h and it will be stopped and now as you can see i am still talking but it's not this image is not moving anymore this is because uh the camera has been stopped okay so this is how you can actually use this and uh so uh i think and you can actually explore all the other settings okay and let me know uh if you find any other settings really interesting okay in the comment section let me know and if you have any query regarding like uh regarding anything here you can also let me know okay so this is all about this video guys and i hope you have liked this video and that is please hit the like button and subscribe to our channel many more raspberry pi based projects are coming so stay tuned and i'll see you in the next video you
Info
Channel: SPARKLERS : We Are The Makers
Views: 41,524
Rating: undefined out of 5
Keywords: Realtime Video Streaming, Raspberry Pi, Pi Camera, RPI Cam Web Interface, Raspberry Pi Zero, Raspberry Pi 3, Raspberry Pi 4, DIY Tech, Tech Projects, IoT, Live Streaming, Video Camera, Web Streaming, Raspberry Pi Projects, Tech Innovation, Video Feed, Video Monitoring, Raspberry Pi Camera, DIY Video, Tech DIY, Camera Streaming, IoT Projects, Live Video, Surveillance Camera, DIY Electronics, Raspberry Pi Community, Raspberry Pi Development, Pi Camera Projects
Id: yzpqEw1kEGo
Channel Id: undefined
Length: 10min 53sec (653 seconds)
Published: Mon Jul 12 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.