Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 3ba931c042ce5360ec1c6725207d8a984188b635
parent 456c582e0134571a76d79b257b13a3bbb0855631
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 23 Oct 2026 11:11:50 -0400

Merge lane/rumble-tar-segments: record-live reads Rumble's .tar-packed HLS segments

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mcommon/lib/liveCapture.test.ts | 9+++++++++
Mcommon/lib/liveCapture.ts | 10++++++++++
Meditor/CHANGELOG.md | 1+
3 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/common/lib/liveCapture.test.ts b/common/lib/liveCapture.test.ts @@ -159,6 +159,15 @@ test("the ffmpeg argv: from the first listed segment, stream copy, retries", () assert.ok(!ffmpegLiveArgs({ url: "u", output: "o", fromStart: false }).includes("-live_start_index")); }); +test("the ffmpeg argv: Rumble's .tar-packed segments are allowed, nothing looser", () => { + const args = ffmpegLiveArgs({ url: "https://cdn/x.m3u8", output: "/o.ts", fromStart: true }); + const i = args.indexOf("-allowed_segment_extensions"); + assert.ok(i >= 0 && i < args.indexOf("-i")); + assert.ok(args[i + 1].split(",").includes("tar")); + assert.ok(args[i + 1].split(",").includes("ts")); + assert.ok(!args.includes("-extension_picky")); +}); + test("yt-dlp's two answers a recording acts on", () => { assert.ok( liveFromStartUnsupported( diff --git a/common/lib/liveCapture.ts b/common/lib/liveCapture.ts @@ -252,6 +252,14 @@ export function ytdlpLiveArgs(opts: { ]; } +// The HLS demuxer refuses a segment whose URL does not end in a listed media +// extension. Rumble's CDN (seen 2026-10-23) serves a stream's segments as byte +// ranges of one `.tar` (`…/81j9A.gaa.tar?r_file=media-0.ts&r_range=…`), so the +// default list plus `tar` -- not `-extension_picky 0`, which would let a playlist +// name any file at all. +export const HLS_SEGMENT_EXTENSIONS = + "3gp,aac,avi,ac3,eac3,flac,mkv,m3u8,m4a,m4s,m4v,mpg,mov,mp2,mp3,mp4,mpeg,mpegts,ogg,ogv,oga,ts,vob,vtt,wav,webvtt,cmfv,cmfa,ec3,fmp4,html,tar"; + // THE ffmpeg RECORDING (path B): a playlist URL found by the browser, // recorded from its first listed segment (`-live_start_index 0` when // `fromStart`), stream-copied into MPEG-TS. Segment and playlist retries keep @@ -288,6 +296,8 @@ export function ffmpegLiveArgs(opts: { "10", "-m3u8_hold_counters", "60", + "-allowed_segment_extensions", + HLS_SEGMENT_EXTENSIONS, ...(opts.fromStart ? ["-live_start_index", "0"] : []), "-i", opts.url, diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **Record live reads Rumble's new segment packaging.** Rumble's CDN now serves a stream's pieces as byte ranges of one `.tar` file, which ffmpeg refused by its name ("not in allowed_segment_extensions"), so a recording through the browser path ended with nothing recorded. The recorder now also allows `tar` segments, and nothing looser. Needs a rebuild of the editor. - **A clip in a fact-check video can stamp and count more than once.** The clip editor's **Count & stamp** box is now **Marks**, on every clip: a list of the clip's marks, each its own stamp and its own step of the tally at its own second — its verdict picked by this cut's words (Episodes, Grift…), when it lands (**Set at playhead**, Shift+S for the selected mark), how long it stays, whether it is drawn, how much it counts, what it says, **Remove**. **Add mark at playhead** (Shift+M) adds one under a new id; **Clear** removes them all. Two stamps on one clip that would sit on each other are refused, saying where the second may land. From a terminal: `umtool set <project> <clip> mark.add=Episodes@190.2`, `mark.remove=<id>`, `mark.verdict=…`, `marks=<json>`; `umtool show` lists them. A clip with one mark is written as before, so an existing video renders the same. - **Walk a report video's clips in umtool's clip editor with the on-screen chrome drawn over them, no build.** Under the clip editor's player, **Live preview** draws the cut's deck over the playing clip, in step with the playhead: the clip's date title and subtitle, the timeline with its pip and flags, the tally as it stands at that moment (stepping when a stamp lands), the stamp, the posts, the QR, and the finale's page on the last clip. A trimmed edge, a moved stamp or new words show about a second after they are saved; an unsaved nudge moves the picture at once. **Title** and **Subtitle** under the picture edit the clip's on-screen words, shown as they are typed. A line under the picture says what the preview does not do (the build snaps each edge to a silence and crossfades the clips). **Render this clip** makes the clip with its chrome exactly as the build would, in a minute or two, and plays it in place (`node umtool/report-to-video/build-video.mjs <manifest> --skip-fetch --clip-preview <id>`). The On-screen preview now draws the finale too. Needs a restart of umtool. - **A long report video with on-screen chrome is no longer stopped partway through its build.** umtool gave a build two minutes per clip (a whole-cut take one minute), which a 36-clip, 25-minute cut with its panel, posts column and stamps outruns: drawing those alone takes over half an hour. A build or take of a cut with on-screen chrome now gets five times the cut's length when that is longer. Needs a restart of umtool.