Git commits 12 commits
ohnsh/dash (GitHub)11
- dash: bump dependencies
3f51eaf - mkoverlay: Added rudimentary "watching" to video.sh to automate runs. For now, it just sleeps for a half hour after each run (typical recordings are 15-20 min). FS watching will differ between macOS, Alpine, and Debian, so for now I'm keeping it simple.
5b820e1 - mkoverlay: New wrappers for rclone and video.ts that set up environment and `exec` into the commands. When running a bun script, .env is (apparently) loaded from the working directory, not the script directory, unless an option is passed on the command line.
f9a7e24 - dashd: Use lax wildcard fallback for CORS Access-Control-Allow-Origin. Now that the client isn't sending credentials (cookies), this is enough for web browsers to allow JavaScript access to dashd responses.
6fbac28 - dash-next: Now showing timestamps on VOD thumbnails and beneath the main player.
e87d1e4 - dash-next: switch from <img> to next/image component for thumbnail strips, but pass `unoptimized` so no processing takes place. Add useEffect logic to thumbnail strips to scroll the active (playing) thumbnail into view, or else scroll to the most recent clips in strips that are not currently playing.
ebbd916 - dash-next: fixed titles above thumbnail strips.
013cc1e - dash-next: Delete defunct file so that build/deploy works.
a704bad - dash-next: Now controlling sidebar state with context and a provider. I resisted but it is a much cleaner way to allow components throughout the layout to close the sidebar, especially links nested in sidebar menu components.
ba1280d - dash-next: Layout refactor; Sidebar is now a client component that renders <aside> and receives React state directly. Fixed bug with positioned content in main (VOD <video> element) appearing above the sidebar and backdrop on mobile.
aa24a88 - dash-next: New InventoryProvider that works via context to provide a filtered map of date -> inventory.json paths. The map is used by the sidebar menu and the man VOD content area. This allows interactive filtering. Note that useContext runs *on the server* when a client component is prerendered, so there shouldn't be any issues with grabbing the value from context instead of a server-side async query.
ace2338
ohnsh/dev (GitHub)1
Git commits 7 commits
ohnsh/dash (GitHub)6
ohnsh/dev (GitHub)1
Git commits 5 commits
ohnsh/dash (GitHub)2
ohnsh/dev (GitHub)3
Git commits 10 commits
ohnsh/dash (GitHub)9
- dash-next: bump Next, hls.js, biome.
5d087c2 - dash-next: A saner VOD implementation is emerging. Now using a Turso hosted libsql database to track inventory.json files in R2. (The root.txt file in R2 would scale terribly, though it could work with a Next route handler or Cloudflare worker in front of it). Re-organized random colocated helpers into @/lib and @/components.
d054fca - mkoverlay: remove a few tags from exiftool output, along with the corresponding schema properties.
a749744 - mkoverlay: Log pipeline steps to stderr in video.sh; don't log db result in db.ts.
db4653c - mkoverlay: prevent errors by explicitly telling libsql to do nothing when we attempt to insert an existing row. Also attempt to insert the inventory record once per run of video.sh, instead of inside the loop.
dc9ec9a - mkoverlay: added turso/libsql database to index inventory JSON files on R2. Also reorganized a bit.
fb8e535 - mkoverlay: sync to r2 on every remux/asset generation.
8ca2600 - mkoverlay: New shell script, video.sh, that will process "camera dirs", or daily directories where OBS or mediaMTX save recordings. Processing involves remuxing the fragmented mp4 files, generating assets (just a thumbnail for now), and saving the metadata in an inventory.json file that can be fetched from R2.
e02a964 - mkoverlay: Re-thinking the whole overlay thing. Extracted typescript logic that isn't coupled to the days/overlay tree structure and made a new executable, meant to be called from scripts, that works on a single video and confines writes to the tree where the video lives.
6b26afb
ohnsh/dev (GitHub)1
Git commits 3 commits
ohnsh/dash (GitHub)2
ohnsh/dev (GitHub)1