Latest Posts
- Notes 6/11
- iCloud Shared Album 4/7
- Firebase Quotas and Cloudflare Workers 3/20
- j.ohn.sh back in business. 3/16
- Posts are back. 3/13
3:32 am — John Sherrell <dev@ohn.sh>
cron: Launching Ghostty.app instead of script directly, to run in a context where we can resolve mDNS names. (In other words, we need "Find devices on local network" enabled in macOS privacy settings, which Ghostty.app has.)
3:01 am — John Sherrell <dev@ohn.sh>
cron: Document switch to using rclone with the OpenSSH sftp backend.
8:40 pm — John Sherrell <dev@ohn.sh>
cam: Change recorded segment name format to `${date}_${camera_name}` so that lexical order is always chronoligical order, even when camera switches. Made `seg_name` a static variable instead of a function.
8:17 pm — John Sherrell <dev@ohn.sh>
stream-utils: document the use of traps in bash scripts to perform clean-up on SIGINT or SIGTERM.
7:53 pm — John Sherrell <dev@ohn.sh>
cron: Supporting logic on the remote side.
7:52 pm — John Sherrell <dev@ohn.sh>
cam: comment documenting env.sh
7:51 pm — John Sherrell <dev@ohn.sh>
cron: Most of the supporting logic now in place to run remote jobs. Archival of bug output is almost automated.
6:46 pm — John Sherrell <dev@ohn.sh>
cron: new package for cron-like automation using a launchd service.
7:11 pm — John Sherrell <dev@ohn.sh>
cam: Added loop to wait for folder to contain at least two videos (that aren't open for writing) on stream_folder startup. This will make the script more automatable, although it still exits when it runs out of videos.
5:42 pm — John Sherrell <dev@ohn.sh>
stream-utils: Since paths in ffmpeg concat demuxer playlists are relative to the playlist file, I'm starting to prefer generating temp files in the current directory instead of using process substitution (which makes paths relative to /dev/fd). Added a new function in mkff.sh to that effect and changed most of the script to use it.
5:15 pm — John Sherrell <dev@ohn.sh>
stream-utils: Some old work I forgot about. strobe_multi function that takes a playlist input.
11:52 pm — John Sherrell <dev@ohn.sh>
sh: fix script dir detection when wyze_timelapse.sh is being sourced (${BASH_SOURCE[0]} instead of $0). In timelapse.sh, use `-qp 28` for timelapse_vaapi variant, for slightly smaller output (default `qp` is 25).
10:21 pm — John Sherrell <dev@ohn.sh>
cam: Convert container management to use compose.yml.
10:15 pm — John Sherrell <dev@ohn.sh>
cam: For now, quit stream_folder.sh when we run out of files. If I restart the stream after a delay, the broadcast is already over and YouTube just throws the stream away. A new broadcast could be created programatically with `youtube-client`, which is what stream_folder.sh already does on start-up, but I'm reluctant to put that in a loop and leave it on autopilot.
9:53 pm — John Sherrell <dev@ohn.sh>
bug: Now starting container with docker compose.