cameras: Live-Environment-Streams + HLS.js player
All checks were successful
build-and-deploy / build (push) Successful in 3m8s

Ingest ~4.2k direct HLS/YouTube feeds (VDOT, MDSHA, DelDOT, Iowa DOT,
OpenCCTV, etc.) from the public GeoJSON catalog. Popup plays HLS via a
CORS-safe playlist proxy + vendored hls.js, YouTube via embed, with
ffmpeg-MJPEG fallback. ALERTWest rows now use a stable camera id so
hourly scrapes do not duplicate.
This commit is contained in:
Sirius DevOps 2026-08-27 15:54:54 -04:00
commit 0c7f80655e
8 changed files with 263 additions and 14 deletions

View file

@ -177,8 +177,10 @@ async def ffmpeg_mjpeg_stream(url: str):
return
cmd = [
_FFMPEG, "-hide_banner", "-loglevel", "error", "-nostdin",
"-rtsp_transport", "tcp",
"-timeout", "4000000",
]
if url.lower().startswith("rtsp://"):
cmd += ["-rtsp_transport", "tcp", "-timeout", "4000000"]
cmd += [
"-i", url,
"-an", "-c:v", "mjpeg", "-q:v", "8",
"-f", "mpjpeg", "pipe:1",