How to live-stream from a webcam to a local URL on a Raspberry Pi? (Raspbian)
I'm currently using a program called mjpg_streamer on a Raspberry Pi 3B+ to
accomplish this, but it doesn't include a good way to also record the
webcam footage to a local file the way that ffmpeg does.
Currently mjpg_streamer is set up to output a camera feed to
localhost:8085/?action=stream, which makes it pretty easy to design
webpages to hook into the feed and display it to an outward facing user
(all still on the Pi, via Apache).