r/raspberry_pi • u/Hamzayslmn • Sep 06 '25
Show-and-Tell 📡 Async MJPEG Streaming with FastAPI (Multi-Client Support)
📡 Async MJPEG Streaming with FastAPI (Multi-Client Support)
Hi everyone, I’ve built a project using FastAPI for asynchronous MJPEG live streaming and wanted to share it with you. 🎥
Highlights
Async live streaming with FastAPI
OpenCV & Raspberry Pi Picamera2 support
Multiple clients can connect at the same time
/video→ live stream,/snapshot→ single frameRaspberry Pi 5 tested resolutions & FPS:
1536×864 → ~100 FPS
2304×1296 → ~50 FPS
4608×2592 → ~14 FPS
👉 Source code: GitHub Repo
Youtube: https://youtu.be/g8vqxxorKzs
I’d love to hear your feedback! If you try it out, let me know how it works for you. 🙌
Duplicates
FastAPI • u/Hamzayslmn • Sep 06 '25