Closed mmgoodnow closed 4 years ago
We should take a look at Motion.
@bochola I'm assigning this to you so you can get a little bit more familiar with what we're doing here.
Basically we think that using a raspberry pi as a surveillance camera or some other sort of live streaming thing is probably already a solved problem, and we want to figure out what is the best solution.
So just do some googling around, looking for software that does live streaming on a raspberry pi from a camera, and you can report back what you found in a comment here.
https://electronicsforu.com/electronics-projects/make-video-streaming-camera-with-raspberry-pi
This one's interesting, uses a vlc command or motion
this is the one that Ben found I think, also uses a vlc command
this one's old but it seems like this guy knows what he's talking about https://blog.miguelgrinberg.com/post/stream-video-from-the-raspberry-pi-camera-to-web-browsers-even-on-ios-and-android
actually its bs, it uses jpeg for compression instead of a reasonable codec such as h264
https://dantheiotman.com/2017/08/23/using-raspivid-for-low-latency-pi-zero-w-video-streaming/
this one says low latency
don't think this one is supported in a browser
So i think we're seeing three main options:
raspivid
piped to something@bochola The other thing here that would be great is a way to mock our streaming setup for development and debug purposes. Ideally we can work on the front end and just have it get streams from our computers rather than from the raspberry pi
Here's all the ones I found that seem mostly applicable. The technical details are still fuzzy for me so I'm not sure which ones will be the most useful or not.
https://randomnerdtutorials.com/video-streaming-with-raspberry-pi-camera/
https://www.instructables.com/id/How-to-Make-Raspberry-Pi-Webcam-Server-and-Stream-/
https://www.hackster.io/sushree-subhasmita-jena/live-cam-with-raspberry-pi-e9f43d
https://opensource.com/life/15/9/turning-raspberry-pi-portable-streaming-camera
https://maker.pro/raspberry-pi/projects/raspberry-pi-webcam-robot
Here's a good read. https://mux.com/blog/the-low-latency-live-streaming-landscape-in-2019/ Looking into WebRTC now.
We may not need to roll our own here. It might be as easy as setting up a config file for an already established video streamer.