Archilyzer · Source

archilyzer

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

commit 9b59972e54a19d57a39739476e399ce9670f972e
parent bc28e871882309a06c8ffea646449abae4b385bc
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 16 Oct 2026 20:14:26 -0400

editor: the stored-URL route test's fake ffmpeg performs (and logs) the cut — the cut moved from yt-dlp to ffmpeg

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

Diffstat:
Meditor/app/channels/[slug]/videos/fetchWindowsStoredUrl.test.ts | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/editor/app/channels/[slug]/videos/fetchWindowsStoredUrl.test.ts b/editor/app/channels/[slug]/videos/fetchWindowsStoredUrl.test.ts @@ -29,7 +29,20 @@ if (url.startsWith("https://odysee.com/")) { process.stderr.write("ERROR: [lbry] writeFileSync(args[args.indexOf("-o") + 1], "mp4"); `, ); -await writeFile(FFMPEG, "#!/usr/bin/env node\nprocess.exit(0);\n"); +// ffmpeg: a cut from a stored URL (an http input) writes the window; a probe (a local input) passes. +await writeFile( + FFMPEG, + `#!/usr/bin/env node +import { appendFileSync, writeFileSync } from "node:fs"; +const args = process.argv.slice(2); +const input = args[args.indexOf("-i") + 1] ?? ""; +if (input.startsWith("http")) { + appendFileSync(${JSON.stringify(ARGS_LOG)}, JSON.stringify([...args, input]) + "\\n"); + writeFileSync(args[args.length - 1], "mp4"); +} +process.exit(0); +`, +); await chmod(YTDLP, 0o755); await chmod(FFMPEG, 0o755); process.env.TRANSCRIPTS_DIR = ROOT;