Skip to content

Saturday, July 25

Git Commits

dash commits 7 ohnsh/dash
  • 1:23 pm — John Sherrell <dev@ohn.sh>

    dash-next: Putting together a skeleton front end that uses the dashd bun server, which mostly proxies MediaMTX GET APIs and provides an SSE endpoint for realtime updates. Simple server-fetched prototype is working. Add `withCors` helper to the backend to allow connections directly from the client.

  • 11:31 am — John Sherrell <dev@ohn.sh>

    next-dash: clean up stream menu now that all are fairly reliable. Keeping the *-patch streams (with clean audio) but mapping them to simple names (wuuk, wyze1).

  • 10:25 am — John Sherrell <dev@ohn.sh>

    refactor(next-dash): extract a custom hook, useHls, that takes an HLS stream URL, passes a RefObject<HTMLVideoElement> back to the user, and handles all the details of using hls.js to play the stream.

  • 7:32 am — John Sherrell <dev@ohn.sh>

    dash-next: greatly improve the reliability of HLS streams, mainly by switching the HLS variant from low-latency to traditional mpegts, but also by changing <Link> to <a> on the front end so that switching streams is accompanied by a full navigation. And by adding a retry timer on hls.js errors (similar to the mediamtx iframe implementation).

  • 4:18 am — John Sherrell <dev@ohn.sh>

    dashd: clean up route handler code, `/mx/status` route now implemented (roughly).

  • 1:35 am — John Sherrell <dev@ohn.sh>

    dashd: per mediamtx docs, changed webook to GET instead of POST. Makes for a much cleaner mediamtx config and is better suited to the minimal event data available.

  • 12:38 am — John Sherrell <dev@ohn.sh>

    dashd: new Bun server with API endpoints for monitoring status of MediaMTX streams. Includes a streaming SSE endpoint. Not yet used by the front end. Also need to implement the MediaMTX hooks that generate events.

dev commits 4 ohnsh/dev
  • 11:24 am — John Sherrell <dev@ohn.sh>

    cam: Detect when RTSP input is h.265 and include `-tag:v hvc1` in recorded mp4 files.

  • 11:05 am — John Sherrell <dev@ohn.sh>

    cam: huge upgrade to MediaMTX HLS config; after switching from the low-latency variant to fmp4, errors in web browsers have mostly disappeared. (`mpegts` variant also performs well but seemingly can't stream h.265 video.) Also added `curl` command to default `runOnRead` hook, to call my dashd webhook.

  • 6:13 am — John Sherrell <dev@ohn.sh>

    cam: Checking if removing audio delay helps with HLS streaming in Safari.

  • 3:50 am — John Sherrell <dev@ohn.sh>

    cron: Remove progress output from rclone command (badly needed), create variables at the top of daily.sh for ssh_user, ssh_host, ssh_script, clean up comments.

YouTube