Beginner Tutorial: How to Stream Video from Raspberry Pi Camera to Local Computer using Python (P1)

preview_player
Показать описание
Learn how to set up a Flask App on your Raspberry Pi and create a live video feed that you can access on your local network, creating a real-time security camera. You will be able to view the video stream over the internet on your local network by the end of this video! All you will need is a Raspberry Pi (I used a 4b), a camera, and a power supply.

Where to buy a camera:

Donate or Book a Consulting Slot:

Join this channel to get access to the perks:

Link to Blog Post:

Link to Medium Article:

TIMESTAMPS:
00:00 Intro
01:49 Package Installation
05:26 Code Walkthrough
Рекомендации по теме
Комментарии
Автор

If this video saved you time or you learned something, please Subscribe to the channel. Every subscription means I can continue making more informative and better videos for the community, thank you all!

mmshilleh
Автор

Dawg, this is EXACTLY what I have been looking for for SO LONG!!!

The code is mad simple and self explanatory, I really appreciate this man... I'm a bit of a newbie when it comes to coding systems like this that directly interface with IO on a non-windows based machine, is there a means of using a USB camera on this to stream from the Pi, like a Logitech WebCam or similar as the "PiCamera" in question, or does the "PiCamera" package allow this code to be so small with the ease of "camera.resolution" "camera.framerate" and "capture.continous"?

OverAndOverAndOver
Автор

Great video thanks for giving information about the code being used in it, most videos dont explain what the code is actually doing but you do a great job !

joethehoe
Автор

Good video! At what resolution and fps do you stream? What version of Raspberry Pi are you using? Thank you

klauslomas
Автор

Great video, thanks a lot!! Could you give advice what to change when using the latest picamera2 library? Especially how to replace the capture.continuous attribute?

NatureCam
Автор

Great video. im wondering if you could tell me what os of raspberry are you using in this video? im having trouble finding turning on legacy camera option in my OS, it doesnt have any. Should i install legacy OS system? or something elses. aslo there are many error in the code which said that there is no such file or directory for the picamera, so from there i figure that it might have something to do with OS differences.

If you could reply to this quick i would greatly appreciate it because i need it for my final university project which is due soon

denigajah
Автор

Hello, thanks for the video guide. I faced some errors, which is, when I am typing the ip address followed by port number and video feed, my local computer shows me INTERNAL SERVER Error, and the raspberry pi display also show some different type of exception.

swastikdey
Автор

Great video! I just have one issue. When I enter the inet address into my computer, it starts a download instead of a stream. When I stop/cancel the download, it automatically restarts in a couple of minutes.

haroldbarner
Автор

I'm going to use that idea for a parking camera.

mattkojetin
Автор

hello what version of os do you use pls ?

Brahim-hxvr
Автор

Hey man I have got. A problem .My raspi pi zero 2w doesn't have any option to enable the raspi camera but if I use open cv to stream on the pi itself sometimes it works (mostly) but I am unable to get this code running

skd
Автор

Can you do a setup that does video and 2 way audio ?

LaserGrunt
Автор

Hi Shilleh
solved the problem with line5.
The other problem i have is when i put the ip address of the pi into a web browser it says cannot connect.
The pi and pc are on the same network.

STMONDEO
Автор

Hello, I'm trying to do this same thing with a USB Camera module, is there any edits you suggest to this prcess?

ikponmwosai.k.evbayiro
Автор

i am facing an issue over here @2:54. i am not able see any inteface for camera (but, it does show other interfaces like SSH, I2C, Raspberry pi connect, SPI, etc), i use raspberry pi 4B.

yadumohandnair
Автор

What is that software that you used to create in the Python script?

AngelaLaCreatrice
Автор

Can this be done with the new Camera-Streamer (libcamera) instead of the legacy camera, which is going to be removed soon?

EsotericArctos
Автор

Do we need internet connection? Both devices just have on be on the same network, right?

vikramgogoi
Автор

Hi Sir, I am doing the exact same project at school, I notice errors when importing picamera in the python file, it was related to my RaspbianOS build being 64-bit instead of 32-bit, I just want to know if your RaspbianOS is 32-bit ?

tiennguyen
Автор

Hi, Tried this on bullseye and worked perfectly, but when I tried with bookworm I couldnt get it to work at all. The pip commands dont work btw, but the script doesnt work with stating theres no module.

highroyds
visit shbcf.ru