A bunch of stuff that polls the NYC Department of Transportation cameras once per second, and generates a seekable livestream from it.
The NYC DOT traffic cameras are useful, but you can’t seek backwards in time, making it difficult to see previous frames unless you’ve saved it.
This repo contains a Docker image that glues together:
- Go daemon that polls for images
- ffmpeg RTSP stream
- ffmpeg stream to m3u8’s
- nginx HLS server
- absurdly barebones website that let’s you pick the camera(s)
who knows lol
- Database
- Search
- Long term archival to blob storage
- Everything beyond the barebones
TBD
See LICENSE file.
/nginxcontains the relevant nginx configuration/sitecontains the html site to serve/pollercontains the go code that scrapes the images/scriptscontain a variety of scripts that manage ffmpeg