Repository navigation
docs(engineering): Editor Studio's render helper, measured - #678
Merged
Merged
Conversation
What the helper #599 downloads on first use is made of, measured rather than estimated: the edit engine compiled to one Bun binary renders the same video as Node; forced alignment runs without PyTorch (ONNX Runtime for the model, a numpy port of the CTC alignment) and lands every word of an 18.5-minute take on the same millisecond as torch; and int8 on the transformer alone halves the model while keeping the cuts. It also records what is still open before phase 1 builds on it: the engine's licence, loading the ONNX library on macOS, and alignment memory on long recordings. Refs #599 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbipzM9LzsqoXb6jEem
5hirish
marked this pull request as ready for review
December 5, 2026 12:54
5hirish
pushed a commit
that referenced
this pull request
Dec 5, 2026
#653 was squash-merged and main's tree is this branch's merged base plus #678's spike doc, so the conflicts resolve to this branch's side and the doc comes in unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbipzM9LzsqoXb6jEem
5hirish
pushed a commit
that referenced
this pull request
Dec 5, 2026
#655 was squash-merged and main's tree is this branch's merged base plus #678's spike doc, so the conflicts resolve to this branch's side and the doc comes in unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbipzM9LzsqoXb6jEem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
What Editor Studio's render helper (#599) is made of, measured rather than estimated. #599 guessed the first-use download at 100–170 MB and had no plan for forced alignment, which today needs PyTorch. This spike ran the Ship with AI engine and its aligner the way the desktop helper would run them.
timeline.otioand same decoded frames as NodeThe first download comes to about 180–210 MB. The doc's last table lists what is still open: the engine's licence, ONNX library loading on macOS, alignment memory on long recordings (1.4 GB at 18.5 min, about 15 GB at an hour), ffmpeg's licence and size, and speed on laptops.
Docs only: no code in Duct changes.
Refs #599
Area
backend/— FastAPI / Pythonapp/— Next.jsdesktop/— Tauri shell / sidecarsite/— static marketing siteVerification
The measurements, all in a 4-core Linux container:
Engine:
bun build --compileofscripts/edit/cli.mjsfor darwin-arm64/x64, linux-x64 and windows-x64; the engine's integration fixture rendered bynodeand by the linux binary, compared bycmpon the timeline and md5 of the decoded video.Aligner: 146 LibriSpeech utterances (CC BY 4.0) joined into one 18.5-min take, with word times smeared by up to 0.5 s. Reference: the engine's
align.py, unchanged. Compared word by word with an ONNX export (fp32, int8 on every layer, int8 on MatMul only) plus a numpy CTC Viterbi, which matchedtorchaudio.functional.forced_align's path exactly.onnxruntime-nodeunder Bun, plain and compiled, gave emissions identical to Python's.Not covered: a real recording with fillers (Ep 0004's audio was not reachable), WebKit or WebView2, macOS, any laptop.
I ran the checks for the areas I touched (see CONTRIBUTING.md)
I read the
AGENTS.mdfor each directory I editedI read my own diff back looking for the reason to reject it, and read it
against the code around it (STYLE.md)
AI assistance
Generated by Claude Code