Live camera
Raspberry Pi 4 + OV5647 · 1296×972 at 30fps, full sensor field of view
Checking for a live stream…
The feed comes off an OV5647 camera module wired to the CSI bus
of the same Raspberry Pi 4 that runs my
Pi-Hole DNS server.
rpicam-vid encodes H.264 on the Pi's hardware
encoder, so the CPU cost is close to nothing and the DNS server
it shares a box with never notices. ffmpeg then
copies that stream straight into an RTMP push to YouTube
without re-encoding, adding only the silent audio track that
YouTube requires before it will accept an ingest.
It runs as a systemd unit with Restart=always, so a
dropped connection reconnects on its own. YouTube carries the
bandwidth, which matters more than it sounds: self-hosting the
stream would mean every viewer pulling 3 Mbps off my home
upload, and ten viewers would saturate it.
Expect roughly 15–30 seconds of latency. That is the price of letting a CDN handle distribution, and it is the reason this approach would be wrong for anything resembling a security camera.