Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 10 Sep 18:22
· 40 commits to main since this release
9b797fa

XhRec v1.4.0

The first release that ships both sides: XhRec (the recorder) and XhCut (the cutter). Record, pick the material, and cut it losslessly — all on the recording host.

What's in the box

File What it is
XhRec-all.jar The recorder. Guards the room list, records on status changes, cuts files to disk, and serves the WebUI, Prometheus metrics and post-processing (move / transcode / script).
XhCut-all.jar New in this release. Remote lossless rough-cut tool: file access and every ffmpeg computation happen on the recording host, the client only drives the UI.
extension.tar Browser extension XhRec Quick Send (MV3 + userscript): sends the room on the current page to XhRec in one click.
SHA256SUMS SHA-256 checksums for the three artifacts above.

XhCut: new in this release

Remote lossless rough-cutting, built for the recordings XhRec produces. Six-hour originals edit fine over a slow link: the browser only pulls the low-bitrate preview, and the source never leaves the host.

  • Timeline with auxiliary lanes: parses XhRec's .event sidecar and maps platform events (toys / gifts / level-ups …) onto media time
  • Lossless cuts: always -c copy, with -ss aligned to a keyframe first
  • On-demand HLS preview that follows the scrubber; an export queue and .llc JSON5 project files
  • Level and spectrogram images for finding material: from this release the audio is dynamically normalized (a quietly recorded show is no longer a flat line) and the spectrogram uses a log frequency axis
  • Media library: Shift range selection, deleting material you do not want, a cache size cap, and an optional "delete the source after export"

Getting started:

# All three locations are required: media root, output directory, cache directory
java -jar XhCut-all.jar -m /media/nas/out -o /media/nas/cuts -c /mnt/xhcut_cache
# Optional: -p/--port (default 8092), -tz/--timezone, --ffmpeg, --ffprobe, --preview-segment,
#           --preview-concurrency, --cache-limit-gb, --min-free-gb, --skip-dirs

Then open http://<host>:8092/. Container deployment, keyboard shortcuts and the design notes are in cutter/README.md; inside the container XHCUT_MEDIA / XHCUT_OUT / XHCUT_CACHE replace -m/-o/-c.

XhRec: what changed since v1.3.0

Recording correctness

  • The .event sidecar is written again, and the write is gated on the file the writer itself has open — no longer inferred from recording state, so frames landing in the teardown window are no longer dropped silently
  • A room that becomes recordable during a teardown is no longer swallowed, instead of looking live and recording nothing until the next show
  • A stale resume mark no longer stalls a room; it is reported only when it is genuinely ahead of the playlist

Download and platform interaction

  • After the direct path had failed, the proxy was bounded by the 2 ms race window; it now gets the whole attempt budget, so a healthy proxy is no longer written off as a timeout
  • A 404 for an unknown model is a permanent answer: nine requests and eight seconds of backoff became one request
  • A dead playlist connection is recoverable again (connection reuse is no longer given up); a rejected playlist now refreshes the room's status

Metrics and observability

  • Prometheus pipeline metrics (event bus / data channel / actor mailbox depth), CDN attribution, per-room state machines and "why is this room not recording"
  • Refresh latency and the current segment id, a real segment-duration histogram, and session-scoped series that disappear once a room stops recording
  • The per-room byte counter is per session now instead of lifetime

Features

  • In-app live preview with a scrubber, and a ten-minute show-records grid
  • Importing platform favorites from the WebUI, and per-room recording filters
  • Every CLI option is available as an environment variable; new --tls switch
  • A JVM shutdown hook, so docker stop / SIGTERM exits cleanly

Tests

  • Integration tests now run under a wall-clock budget we control (Ktor hardcodes 60 s with no public knob), the duplicated cases are gone, and the root suite went from 41.7 s to 30.8 s — from intermittently failing to reproducibly green

Build

What's Changed

  • chore(deps): bump plugin.serialization from 2.3.20 to 2.4.10 by @dependabot[bot] in #149
  • chore(deps): bump org.junit:junit-bom from 6.0.3 to 6.1.3 by @dependabot[bot] in #148
  • chore(deps): bump ch.qos.logback:logback-classic from 1.5.32 to 1.6.3 by @dependabot[bot] in #146
  • Run workflows on pushes to pr/* branches by @mrahab4t in #162
  • fix(scheduler): stop a stale resume mark from stalling a room by @RikaCelery in #161
  • fix: refresh a room whose playlist is rejected, and keep Recording truthful by @RikaCelery in #163
  • fix(http): make a dead playlist connection recoverable instead of giving up reuse by @RikaCelery in #164
  • fix: harden actor lifecycles, log masking, metrics and the test suite by @RikaCelery in #165
  • chore(deps): bump org.jetbrains.kotlinx:kotlinx-coroutines-test from 1.10.2 to 1.11.0 by @dependabot[bot] in #145
  • chore(deps): bump org.jsoup:jsoup from 1.22.1 to 1.23.2 by @dependabot[bot] in #147
  • fix(session): only report a resume mark left ahead of the playlist by @RikaCelery in #166
  • fix(metrics): feed the refresh-latency gauge and expose recording liveness by @RikaCelery in #167
  • feat(metrics): pipeline, CDN attribution and per-room state for Prometheus by @RikaCelery in #168
  • Added JVM shutdown hook to properly exit on SIGTERM/docker stop by @mrahab4t in #159
  • Change privateRate to spyRate by @mrahab4t in #170
  • feat(metrics): actual CDN segment duration and session-scoped series by @RikaCelery in #169
  • fix(metrics): the room byte counter is per session, not lifetime by @RikaCelery in #172
  • Add CLI opt to enable/disable TLS, default is still true by @mrahab4t in #171
  • feat(preview,schedule): app-served live snapshots with a scrubber, and a ten-minute show-records grid by @RikaCelery in #173
  • fix(events): restore the .event sidecar write path by @RikaCelery in #174
  • refactor(events): gate event writing on the writer's own open file by @RikaCelery in #175
  • Update Readmes to reflect --tls option by @mrahab4t in #176
  • feat(cutter): add XhCut, the remote event-aware lossless cutter by @RikaCelery in #177
  • feat: Support environment variables to configure all exisiting CLI options by @mrahab4t in #178
  • fix: two races, and a test suite that is stable and 26% faster by @RikaCelery in #183
  • fix(scheduler): keep a room status change that arrives mid-teardown by @RikaCelery in #180
  • feat(cutter): normalize the audio lanes, log the spectrogram axis, accept --ffmpeg by @RikaCelery in #184

Full Changelog: v1.3.0...v1.4.0