A local video studio for your coding agent. Describe a video in one sentence: your agent directs, your machine renders. Claude Code, Codex, Cursor, Devin and more. No API keys, no uploads.
Python agent-skillsai-agentscaptionsclaude-codeclaude-code-pluginclaude-skillscodexcursorexplainer-videoffmpegheadless-chromekokoro-ttslocal-firstmanimmcp-servermotion-graphicstext-to-speechvideovideo-editingvideo-generation
showtime 0.4.1 (draft): all lanes, the last review's fixes, examples, version 0.4.1
Favio Vázquezcb2437e2367a
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 55d2559..0e11595 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -5,14 +5,14 @@},"metadata": {"description": "showtime: a local video studio for your coding agent",- "version": "0.4.0"+ "version": "0.4.1"},"plugins": [{"name": "showtime","source": "./","description": "A local video studio for your coding agent. Describe a video. Your agent directs. Your machine renders. Motion graphics, voice-over, music, footage editing, captions and platform-ready exports, with no cloud AI services or API keys.",- "version": "0.4.0",+ "version": "0.4.1","author": {"name": "Favio Vazquez"},diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 8d5cb13..5d619f0 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "showtime",- "version": "0.4.0",+ "version": "0.4.1","description": "A local video studio for your coding agent. Describe a video. Your agent directs. Your machine renders. Motion graphics rendered frame-exactly, voice-over, music and sound design, footage editing from transcripts, captions and platform-ready exports. Everything runs on your machine.","author": {"name": "Favio Vazquez"diff --git a/.github/DISCUSSION_TEMPLATE/show-and-tell.yml b/.github/DISCUSSION_TEMPLATE/show-and-tell.ymlnew file mode 100644index 0000000..d0b9c30--- /dev/null+++ b/.github/DISCUSSION_TEMPLATE/show-and-tell.yml@@ -0,0 +1,63 @@+title: "[video] "+body:+ - type: markdown+ attributes:+ value: |+ Made something with showtime? Post it here. Only share media you have the right to share.+ - type: textarea+ id: video+ attributes:+ label: Your video+ description: Drag in an MP4 or a GIF, or link a public post.+ validations:+ required: true+ - type: textarea+ id: request+ attributes:+ label: The request you typed+ description: Roughly what you asked your agent for.+ validations:+ required: true+ - type: dropdown+ id: agent+ attributes:+ label: Agent+ options:+ - Claude Code+ - Codex+ - Cursor+ - Devin+ - OpenCode+ - GitHub Copilot+ - Gemini CLI+ - Another MCP client+ - The showtime command line (no agent)+ - Other+ - type: input+ id: version+ attributes:+ label: showtime version+ description: "`showtime version`"+ placeholder: "0.4.1"+ - type: dropdown+ id: os+ attributes:+ label: Operating system+ options:+ - macOS, Apple Silicon+ - macOS, Intel+ - Windows 10/11, x64+ - Windows on Arm+ - Linux+ - type: input+ id: render-time+ attributes:+ label: About how long it took (optional)+ description: From the request to the finished file, or the render time if you know it.+ placeholder: "12 min, 3 min of it rendering"+ - type: checkboxes+ id: consent+ attributes:+ label: Featuring+ options:+ - label: showtime may feature this video on its site and social accounts, credited to me.diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.ymlnew file mode 100644index 0000000..e4ab340--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug.yml@@ -0,0 +1,80 @@+name: Bug+description: Something does not work as the docs say.+title: "[bug] "+labels: ["type: bug", "status: triage"]+body:+ - type: markdown+ attributes:+ value: |+ Thanks for the report. Before you paste anything, remove private paths and any media you do not want public.+ `showtime report` writes a bug-report.md with home paths, user names and tokens already redacted: read it, then attach it below.+ - type: textarea+ id: what+ attributes:+ label: What happened, and what did you expect?+ validations:+ required: true+ - type: textarea+ id: steps+ attributes:+ label: The command or request that triggered it+ description: The showtime command you ran, or what you asked your agent.+ render: shell+ validations:+ required: true+ - type: textarea+ id: doctor+ attributes:+ label: Output of `showtime doctor`+ description: Every line, or at least the WARN and FAIL ones.+ render: text+ validations:+ required: true+ - type: input+ id: version+ attributes:+ label: showtime version+ description: "`showtime version`"+ placeholder: "0.4.1"+ validations:+ required: true+ - type: dropdown+ id: os+ attributes:+ label: Operating system+ options:+ - macOS, Apple Silicon+ - macOS, Intel+ - Windows 10/11, x64+ - Windows on Arm+ - Linux+ validations:+ required: true+ - type: dropdown+ id: agent+ attributes:+ label: Agent+ description: What ran showtime.+ options:+ - Claude Code+ - Codex+ - Cursor+ - Devin+ - OpenCode+ - GitHub Copilot+ - Gemini CLI+ - Another MCP client+ - The showtime command line (no agent)+ - Other+ - type: textarea+ id: output+ attributes:+ label: Error text, bug-report.md, a contact sheet or a short clip (optional)+ description: Drag files in. Run the command again with --debug for a traceback.+ - type: checkboxes+ id: checks+ attributes:+ label: Checks+ options:+ - label: I searched the open issues and the FAQ (https://faviovazquez.github.io/showtime/).+ required: truediff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlnew file mode 100644index 0000000..1493500--- /dev/null+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -0,0 +1,14 @@+blank_issues_enabled: false+contact_links:+ - name: Ask a question+ url: https://github.com/FavioVazquez/showtime/discussions/categories/q-a+ about: How do I...? Is this possible? Ask in Q&A.+ - name: Show a video you made+ url: https://github.com/FavioVazquez/showtime/discussions/categories/show-and-tell+ about: Share it in Show and tell.+ - name: Docs+ url: https://faviovazquez.github.io/showtime/+ about: Guides, the FAQ and the full reference.+ - name: Report a security problem+ url: https://github.com/FavioVazquez/showtime/security/advisories/new+ about: Privately, never in a public issue (see SECURITY.md).diff --git a/.github/ISSUE_TEMPLATE/docs.yml b/.github/ISSUE_TEMPLATE/docs.ymlnew file mode 100644index 0000000..69ca6bf--- /dev/null+++ b/.github/ISSUE_TEMPLATE/docs.yml@@ -0,0 +1,22 @@+name: Docs problem+description: Something in the docs, the site or a command's help is wrong, missing or unclear.+title: "[docs] "+labels: ["type: docs", "status: triage"]+body:+ - type: input+ id: where+ attributes:+ label: Page or command+ placeholder: "https://faviovazquez.github.io/showtime/... or showtime edit --help"+ validations:+ required: true+ - type: textarea+ id: what+ attributes:+ label: What is wrong or missing+ validations:+ required: true+ - type: textarea+ id: better+ attributes:+ label: What it should say (optional)diff --git a/.github/ISSUE_TEMPLATE/example-request.yml b/.github/ISSUE_TEMPLATE/example-request.ymlnew file mode 100644index 0000000..6335e19--- /dev/null+++ b/.github/ISSUE_TEMPLATE/example-request.yml@@ -0,0 +1,57 @@+name: Example request+description: A video you would like to see showtime make, as a public example.+title: "[example] "+labels: ["type: example", "status: triage"]+body:+ - type: markdown+ attributes:+ value: |+ The current examples, with their requests and files: https://faviovazquez.github.io/showtime/+ A problem with an existing example is a Bug (name the example's number).+ - type: textarea+ id: request+ attributes:+ label: The request, as you would type it to your agent+ placeholder: "A 45 s explainer of how a hash map works, for developers, calm tone"+ validations:+ required: true+ - type: dropdown+ id: kind+ attributes:+ label: Kind of video+ options:+ - Explainer+ - Launch or promo+ - Data story or chart+ - Talking head or podcast+ - Footage edit or highlights+ - Tutorial or screen recording+ - Social short+ - Music video or audiogram+ - Other+ validations:+ required: true+ - type: textarea+ id: features+ attributes:+ label: Which showtime features should it show? (optional)+ - type: textarea+ id: sources+ attributes:+ label: Source material (public links only)+ description: A repo, site, paper, dataset or clip you have the right to share.+ - type: dropdown+ id: aspect+ attributes:+ label: Aspect+ options:+ - "16:9"+ - "9:16"+ - "1:1"+ - Any+ - type: checkboxes+ id: credit+ attributes:+ label: Credit+ options:+ - label: Credit me by my GitHub handle in the example's README.diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.ymlnew file mode 100644index 0000000..43e1861--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature.yml@@ -0,0 +1,41 @@+name: Feature idea+description: Something showtime should do. Read .out-of-scope/ in the repository first.+title: "[feature] "+labels: ["type: feature", "status: triage"]+body:+ - type: markdown+ attributes:+ value: |+ An idea that is still loose fits the Ideas discussions better: https://github.com/FavioVazquez/showtime/discussions/categories/ideas+ - type: textarea+ id: problem+ attributes:+ label: What are you trying to make, and what gets in the way?+ validations:+ required: true+ - type: textarea+ id: idea+ attributes:+ label: What would help+ description: The command, option or behaviour you have in mind, if you have one.+ - type: dropdown+ id: area+ attributes:+ label: Area+ options:+ - Rendering and looks+ - Voice+ - Music and sound+ - Footage editing+ - Export and delivery+ - Checks and review+ - Install and agents+ - Docs+ - Not sure+ - type: checkboxes+ id: scope+ attributes:+ label: Fits showtime+ options:+ - label: It works locally, with no API keys, no uploads and no required GPU (see .out-of-scope/).+ required: truediff --git a/.github/release.yml b/.github/release.ymlnew file mode 100644index 0000000..5ecc6e9--- /dev/null+++ b/.github/release.yml@@ -0,0 +1,19 @@+# Generated release notes ("Generate release notes" on a new release): merged pull requests grouped by label.+# The hand-written notes and CHANGELOG.md stay the record; these lists help once outside pull requests merge.+changelog:+ exclude:+ labels: [skip-notes, duplicate, out-of-scope]+ authors: [dependabot, "dependabot[bot]", github-actions, "github-actions[bot]"]+ categories:+ - title: Breaking changes+ labels: [breaking]+ - title: New+ labels: ["type: feature", "type: example"]+ - title: Fixes+ labels: ["type: bug"]+ - title: Faster+ labels: ["type: perf"]+ - title: Docs+ labels: ["type: docs"]+ - title: Other+ labels: ["*"]diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex e1accd0..6c0bbba 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -6,7 +6,8 @@ name: ci# after a core-tier setup; shard 1 also runs a 2 s 360p render and the# path-with-spaces shims# nightly / manual : the full test suite (voice, ASR, longer renders; a superset of the fast-# tier) on every OS image, the Intel Mac included+# tier) on every OS image, the Intel Mac included; then nightly-report keeps+# one "Nightly failing on main" issue open while it fails on main# The Intel Mac runner (macos-15-intel) is the slowest and scarcest image, so pushes and pull requests do# not wait on it: it runs in the nightly tier and whenever the workflow is started by hand (Actions > ci ># Run workflow; an empty "os" input means every image, the Intel Mac included).@@ -203,3 +204,28 @@ jobs:- name: Release checksif: always()run: python scripts/check_release.py --check++ # After the nightly matrix on main: a failed run comments its failed jobs and test files on the open issue+ # labelled "ci: nightly" (or opens "Nightly failing on main"); a green run on every OS image closes it.+ # Only the workflow's own GITHUB_TOKEN, no other secret (scripts/nightly_report.py).+ nightly-report:+ name: nightly report+ needs: [nightly]+ if: always() && github.ref == 'refs/heads/main' && ((github.event_name == 'schedule' && !github.event.repository.private) || (github.event_name == 'workflow_dispatch' && inputs.full))+ runs-on: ubuntu-24.04+ timeout-minutes: 10+ permissions:+ contents: read+ actions: read+ issues: write+ steps:+ - uses: actions/checkout@v7+ - name: Open, update or close the nightly issue+ env:+ GH_TOKEN: ${{ github.token }}+ RESULT: ${{ needs.nightly.result }}+ EVENT: ${{ github.event_name }}+ OS_INPUT: ${{ inputs.os }}+ run: |+ full=(); if [ "$EVENT" = schedule ] || [ -z "$OS_INPUT" ]; then full=(--full); fi+ python3 scripts/nightly_report.py --repo "$GITHUB_REPOSITORY" --run-id "$GITHUB_RUN_ID" --result "$RESULT" "${full[@]}"diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e6b2612..a9ed373 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,174 @@ All notable changes to showtime. Each entry says what changed and why, so this f`skills/showtime/lib/st/__init__.py` and `python3 scripts/check_release.py` keeps the plugin manifests, the registry files and`setup/package.json` in sync with it.+## 0.4.1 (2026-10-08)++- **Renders are faster, most of all without a GPU.** Measured on a 64-core Linux machine with no GPU, default+ settings, best of 2 interleaved runs against 0.4.0: a 30 s launch film (900 frames) went from 42.0 s to 17.6 s+ (2.4x), a 15 s DOM page from 31.8 s to 16.4 s (1.9x), a 15 s WebGL showreel from 25.3 s to 21.9 s. With the same+ worker count the DOM page and the launch film are still 12-28 % faster (launch on 8 workers 22.8 -> 17.5 s, on 16+ workers 18.2 -> 13.1 s); the picture matches 0.4.0 at SSIM 0.997-0.998 and files are about the same size. On a+ busy 6-core Intel Mac a 1 s fix spliced into a 15-30 s video went from 31-54 s to 13-21 s. `references/render.md`+ Speed.+ - The encoder runs during the capture: one ffmpeg reads the frames in order as they land (the same file byte for+ byte as encoding afterwards; `SHOWTIME_PIPE_ENCODE=0` goes back), so on the launch film 0.5 s of encoding was+ left after the capture instead of 4.5 s. x264 `veryfast` is the default (`--x264-preset medium` or+ `"render": {"x264_preset": "medium"}` for the old one); a splice reuses its base render's preset.+ - Without a GPU the automatic worker count follows the cores: one browser per 8 CPU threads, at least 3 from 6+ threads up, at most 8 (8 on the 64-core machine, where 0.4.0 used 3); a container's memory limit caps it.+ `render.json` and the log say how many and why. With a GPU it stays 3.+ - A finished worker takes over the back half of the largest part left, and the other browsers start while the+ first loads the page. Render's browsers draw a frame when asked instead of on the next 60 Hz tick.+ - An unchanged soundtrack is reused from `~/.showtime/cache/render-audio` (12 newest, 1 GB); the key covers the+ mix, every file it names and their licence and beat sidecars, the music vetoes and look history for catalog+ queries, and the audio code. `SHOWTIME_AUDIO_CACHE=0` turns it off.+ - A stuck browser or encoder no longer hangs a render: a page that does not open gets a new browser, a frozen+ browser is dropped and its frames retried on a fresh one, an encoder that exits or a frame write that fails no+ longer leaves the render waiting, and every ffmpeg call around the poster and the mux has a time limit. Waits+ (load, fonts, images, videos, `ST.waitFor` gates, seeks) scale with the page's measured pace, up to 5x and never+ below the fixed values, so heavy pages on a busy runner or a machine without a GPU no longer time out (`pace` in+ `render.json` and check's report; `ST.pace()`; `SHOWTIME_PACE=0` keeps fixed waits).+- **Designed cards over a talking head, timed to the words.** An EDL's `cards` put a title, lower third, pull-quote,+ data callout, chapter, a list that builds as each item is said, or a side panel over real footage, anchored to a+ phrase (`say`) or a word, so a re-cut moves them. They take the job's brand kit or look signature and render once+ as an alpha clip under the captions. `references/editing.md` section 9.+ - Captions never cover the speaker's face (tracked eyes to chin: moved below the chin, else above the eyes;+ `captions.avoid_face` for edits without cards; qa `caption_face`). `captions.emphasis` colours key terms.+ - A panel frames the speaker into one half; a 9:16 card with no room beside the face becomes a split, and a+ caption crossing a split's edge is cut there. A range `hold` freezes its last frame with the sound faded, for an+ ending with air. Spoken numbers fold as said (2.5, years), and a stat takes its figure only from one clean+ number.+ - `showtime edit cards suggest` lists card moments in a transcript, locally; `edit check`, `edit view` and qa+ (`card_problem`) know cards, and `edit check` flags list items said after their card leaves.+- **A word behind the speaker, cut out on the CPU.** `showtime footage cutout <clip> [--from A --to B] [-o out]`+ cuts a person out with MODNet portrait matting (Apache-2.0, 26 MB, fetched on first use), smoothed over time and+ reset at every cut, as VP9 with alpha (`--format prores` or `png`), a matte file and a contact sheet. About+ 1.3-1.8 min per minute of 1080p on a 64-core Linux machine with no GPU, about 5.7 min when held to 6 of its cores+ (3.7 with `--size 384`). The EDL card `"type": "behind"` puts a big word between the background (`dim`, `blur`, `ground`, a colour+ or an image) and the speaker; qa warns `behind_hidden` and `matte_flicker`.+- **A long recording to its best short clips.** `showtime edit moments <transcripts | folder | job>` ranks+ whole-sentence moments of `--min`..`--max` seconds by local signals (a hook in the first 3 s, a complete thought,+ speaker energy, laughter and applause, one topic; introductions and logistics rank lower) into `moments.json` with+ a reason and a suggested title. `showtime edit clips [job] --pick m1,m4 | --count 3` makes them finished clips:+ tight whole-word starts and clean ends, fillers and pauses trimmed, face-tracked 9:16, captions off the face,+ optional `--cards`, rendered in parallel, each through qa, with a contact sheet. A 58-minute panel took about 7+ minutes end to end on a 64-core Linux machine with no GPU (example 24).+ - Edit renders no longer let the sound drift ahead of the picture at cuts (62 ms by the end of a 9-segment clip);+ EDL ranges take `fade_out`.+- **Claude Design to MP4: `showtime adopt <export.zip>`.** A Claude Design HTML export (the zip or its folder) is+ unpacked into the project's `src/`; the artboard fills a frame of 1080 on its short side (1280x720 -> 1920x1080,+ 540x960 -> 1080x1920) with sharp text, its Google Fonts are copied in with their licences, the length comes from+ the animation's own clock or its CSS loops, and a looping design renders exactly one seamless loop (`loop_seam`+ otherwise). `references/adopt.md` From Claude Design, example 28.+ - New `showtime assets font --css <Google Fonts link> --copy-to <dir>`: the files a browser gets, with each+ family's licence; non-OFL/Apache/MIT/UFL families need `--allow-license`. https only, files only from+ fonts.gstatic.com; an offline `--refresh` keeps the fonts already copied (checked by sha256).+ - An artboard larger than the frame is no longer cropped, a cursor blink is not taken as the loop, and+ `adopt.json` keeps paths relative to the project.+- **Seven looks in showtime's own WebGL, no GPU needed**: `fluted-glass`, `tilt-shift`, `liquid-metal`,+ `mesh-gradient`, `god-rays`, `marble` and `metaballs`, each with presets built from the theme tokens, the same+ frames with any worker count, and a designed fallback where WebGL is missing. At its default size each adds less+ than 50 ms to a 1080p frame without a GPU (one browser on the 64-core machine; `references/components.md` section+ 7 has the table). A look holds a WebGL context only while its clip is on screen, so twenty looks on one page no+ longer go blank, and on a GPU each look reads its frame back before the screenshot (no stale frames).+ `showtime check` prints each look's estimated cost and warns `look_budget` (over 50 ms), `look_fallback`, `look_contexts`+ (over 8 on screen at once, an error over 14) and `look_lost`. `examples/_looks`.+- **Shutter blur on chosen elements.** `data-st-blur` (or `ST.blur(el, {pose})`) smears an element as a 180° shutter+ would, only on the frames it moves fast, and lands it sharp; options `shutter`, `samples`, `threshold`, `max`;+ `F.motionBlur` for canvas films. About 8 ms more per blurred word per frame at 1080p without a GPU (one browser on the 64-core Linux machine). check warns+ `blur_text`, `blur_slow`, `blur_container`, `blur_unsampled` and `blur_inline`. The showreel template's flash+ words are now snaps under the blur. `examples/_blur`.+- **qa hears the mix as a phone speaker does, and the mixer is speaker-safe by default.** The first mix of the 0.4.1+ showreel was almost inaudible on a phone: above 300 Hz it sat 13.6 LU under the full mix. `speaker_loudness`+ measures the mix above 300 Hz and 1 kHz against the full mix: WARN over 10 LU, FAIL over 18 (posted films measure+ 0.7-8.2 LU; a soundtrack showtime did not mix, such as your own song or a footage edit's sound, stays a WARN). `showtime audio mix` (so also `render` of a showtime.json `"audio"` mix; not an `ST.score` bed or the+ built-in fallback mixer) puts a 40 Hz high-pass on everything but the voice and, on a bass-heavy mix, a low shelf on+ the bed; voice-led films change by 0.01 LU. `"master": {"speaker_safe": false}` or+ `--no-speaker-safe` turns it off. The mix report gives each effect its speaker gap and notes a sub hit with+ nothing in the mids (`sub_alone`).+- **The voice-over is heard back.** `voice script` and `voice say` transcribe what they wrote with the local+ recognizer and compare it with the script sound by sound, so a name, acronym or number said wrong ("Open A I"+ heard as "OpenI") is a WARN with its fix; cached by each line's audio and recognizer. It runs when the local+ recognizer is installed: it arrives with the first transcription, or `showtime setup --fetch+ parakeet-tdt-0.6b-v3-int8`. A flagged line is heard again by a second recognizer when one is installed (Whisper+ small.en for English), and a word someone listened to is cleared with `"readback": {"ok": ["JSON"]}` in+ showtime.json. `--no-readback` or `SHOWTIME_READBACK=0`. qa adds a `readback` hearing item (FAIL only for a title,+ brand or lexicon name the second recognizer also hears differently), review-pack's `audio.txt` lists every+ line as scripted and as heard, the critic checks it and the receipt names the words. A lone "A" spelled inside a+ name is flagged; the lexicon gains LaTeX, TeX, arXiv, Nvidia, sudo, and Python and PyTorch for Spanish.+- **Notes name what they point at, and cover a stretch of time.** `showtime review notes` resolves each spot or box+ to the scene and the elements under it (`--no-elements`; `--json` `on_screen`); a note can span `t` to `to`+ (Shift + drag on the bar, `[` and `]`, Mark stretch on a phone, `--add ... --at T --to T2`), shown as a band with Play+ stretch and counted at delivery.+- **Since you last looked.** `showtime status <job>` lists what the person changed while the agent was away (project+ files edited by hand, unread notes, new board picks and comments, open findings), then marks it seen; job commands+ end with one line pointing to it (`--json`: `since_last_looked`). `SHOWTIME_AWAY_MIN`, `SHOWTIME_CATCHUP=0`.+ `job init` writes `AGENTS.md` and `CLAUDE.md` into the job folder for a resumed agent.+- **HTML exports that are whole, small and shareable.**+ - Every file the page needs is packed or the export stops with the list (a large minify outlasted the local+ server's keep-alive, and a Physics explainer lost every scene after shot 7). Sound files only a data file names+ stay out: that export went from 25.3 MB to 4.1 MB.+ - Link previews: `--share-url` / `--share-image` or `"share"` in showtime.json add the tags that show a title, a+ description and the poster frame when the link is pasted. `--folder` writes `.nojekyll`, so GitHub Pages serves+ it as is (#19). `showtime export html <job>` takes a job.+ - The player no longer stalls after a seek on a server without Range requests (`python -m http.server`; when+ reading the soundtrack whole fails, the next seek tries again), and+ `--max-mb` re-encodes a footage clip that needs a second pass from the original, once, on at most 8 threads+ (x264's rate control overshot on 64).+- **`showtime check` catches more.** Text is judged for contrast at its most opaque frame (long fades no longer fail+ `low_contrast`); `caption_zone` warns about an element where the captions sit while one shows+ (`data-st-caption-ok` to opt out); `webgpu` checks a page again without WebGPU (an error when nothing draws in its+ place); `same_frame_entrance` starts an entrance where its keyframes leave opacity 0; image loads cancelled by+ check's own seeks are counted apart (`cancelled_loads`).+- **Clean installs on macOS, Windows and Ubuntu, fixed from what fresh machines found.** `setup` checks uv and+ Node.js before any download and prints each system's install line (also in `--estimate`, which now gives the disk+ each part takes); on Windows a missing Visual C++ 2015-2022 runtime is named with its download link in setup,+ doctor and any DLL load error, `setup --force` no longer fails replacing its own venv, and `job init` warns when a+ job folder is deep enough to pass the 260-character path limit. An ffmpeg without the options showtime uses+ (Ubuntu 22.04's 4.4.2) is refused by setup and warned by doctor, and a loudness reading that failed is never+ recorded as 0 LUFS. The preview window opens Chrome with its device discovery (Cast) turned off. The test suite skips+ the site tests without the examples checkout. `check_release.py --mirror` checks every model and audio mirror+ asset, and a failed model download names the missing mirror file.+- **Docs for people.** An FAQ (GPU, cost, agents, privacy, licences, disk, time, platforms, languages, hand edits,+ the critic, questions, notes) and What's new, first in the site's Start group; ten task guides in `docs/guides/`+ (a talking head with cards, Claude Design to MP4, a long recording to clips, a launch video from a repo, another+ language, a PR video, an explainer that asks, going all out, notes and fixes, a slow machine), each with what to+ say, what you get, measured times naming the machine and the limits, in their own sidebar group after Start. The README, the docs+ maps, SKILL.md, SECURITY and PRIVACY catch up with 0.4.0 and 0.4.1. Site search finds hyphenated names+ (`pr-video`) and opens the matching section; pages get share tags and a canonical link, and the site has+ `sitemap.xml`, `robots.txt` and `llms.txt`.+- **Examples for 0.4.0 and 0.4.1 (#18).** 23, a NASA interview dressed with cards and a word behind the speaker, at+ 16:9 and 9:16; 24, a 58-minute panel into three vertical clips; 25, a Nobel Physics explainer whose HTML video+ stops at three questions; 26, a Nobel Chemistry explainer in English and Spanish; 28, two Claude Design exports+ adopted as they are; 29, `showtime pr-video` on showtime's own PR; 30, the showreel template in four shapes with+ no edits; 32, one project in all twelve look signatures. The gallery gets a Looks and motion group with the looks+ and shutter blur demos. Examples made before look signatures say `--look template` in their rebuild steps.+- **GitHub as the public tracker.** Issue forms (bug, feature idea, example request, docs problem), a Show and tell+ discussion form, a code of conduct (Contributor Covenant 2.1) and release notes categories. The nightly reports+ its own failures: a failed run comments its failed jobs and tests on the open nightly issue or opens one, and a+ green run on every system closes it (#15).+- **Fixes.**+ - `new --from-storyboard` keeps a "(pause)" narration cell (or another direction, or a dash) as a silent shot+ instead of voicing it (#17); `retime --from-voice` lets a pinned line win over a silent scene before it, which+ fills the gap instead of adding its length on top, and never shrinks under 1 s.+ - `audio music search` never cuts a track id, and an unknown id names the closest one (#16).+ - New `showtime review-findings <job> < reply`: a critic that cannot write files returns its answer as text, and+ this saves it as the round's FINDINGS.md after checking its shape (#20).+ - Posters, thumbnails, qa frames and snaps pulled into a JPEG convert the video's colours properly (a saturated+ poster was about 6 levels darker than its frame), and qa compares the poster with its exact frame.+ - A file that reads above the -1 dBTP ceiling at all after the AAC encode is re-encoded (a GitHub copy read -0.9).+ - `pr-video` shows a description's list item by item ("+ N more" for the rest) instead of the opening paragraph+ cut into frames; the showreel template's data shot fits 1:1 and 4:5; a mix track's `"ending": "song"` keeps the+ song's own ending; a span render with `-o <own name>.mp4` and no `--job` writes that file and never splices into the job's final+ (with `--job` the fix is spliced as before and `-o` is ignored); two renders+ started in the same second no longer share a folder; a scene marked `data-stretch="spread"` spreads its beats+ when it gets longer (the dom template's hero no longer holds still at `--duration 24`).+ - Transcripts say where their language came from (`language_source`), Parakeet v3's language guess works again (it+ always said English), a soft first word is kept and a music intro is not transcribed.+ - `guide --find` takes several words unquoted; the templates' sample URL is a reserved `.example` name; the site+ shows a stray placeholder tag as text instead of hiding the page; the critic is described as reviewing every+ video in quality mode; `history clear` also removes the signature picks.+## 0.4.0 (2026-10-05)- **Videos that stop and ask.** showtime.json `"questions"` lists stop-and-ask questions: `{id, at, prompt, choices,diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdnew file mode 100644index 0000000..45890cc--- /dev/null+++ b/CODE_OF_CONDUCT.md@@ -0,0 +1,136 @@+# Contributor Covenant Code of Conduct++## Our Pledge++We as members, contributors, and leaders pledge to make participation in our+community a harassment-free experience for everyone, regardless of age, body+size, visible or invisible disability, ethnicity, sex characteristics, gender+identity and expression, level of experience, education, socio-economic status,+nationality, personal appearance, race, caste, color, religion, or sexual+identity and orientation.++We pledge to act and interact in ways that contribute to an open, welcoming,+diverse, inclusive, and healthy community.++## Our Standards++Examples of behavior that contributes to a positive environment for our+community include:++* Demonstrating empathy and kindness toward other people+* Being respectful of differing opinions, viewpoints, and experiences+* Giving and gracefully accepting constructive feedback+* Accepting responsibility and apologizing to those affected by our mistakes,+ and learning from the experience+* Focusing on what is best not just for us as individuals, but for the overall+ community++Examples of unacceptable behavior include:++* The use of sexualized language or imagery, and sexual attention or advances of+ any kind+* Trolling, insulting or derogatory comments, and personal or political attacks+* Public or private harassment+* Publishing others' private information, such as a physical or email address,+ without their explicit permission+* Other conduct which could reasonably be considered inappropriate in a+ professional setting++## Enforcement Responsibilities++Community leaders are responsible for clarifying and enforcing our standards of+acceptable behavior and will take appropriate and fair corrective action in+response to any behavior that they deem inappropriate, threatening, offensive,+or harmful.++Community leaders have the right and responsibility to remove, edit, or reject+comments, commits, code, wiki edits, issues, and other contributions that are+not aligned to this Code of Conduct, and will communicate reasons for moderation+decisions when appropriate.++## Scope++This Code of Conduct applies within all community spaces, and also applies when+an individual is officially representing the community in public spaces.+Examples of representing our community include using an official e-mail address,+posting via an official social media account, or acting as an appointed+representative at an online or offline event.++## Enforcement++Instances of abusive, harassing, or otherwise unacceptable behavior may be+reported to the community leaders responsible for enforcement, privately:+open a private report from the repository's Security tab+(https://github.com/FavioVazquez/showtime/security/advisories/new) and say that+it is a conduct report, or contact the maintainer through+https://github.com/FavioVazquez. GitHub's "Report content" option on any+comment also reaches GitHub's own moderators.+All complaints will be reviewed and investigated promptly and fairly.++All community leaders are obligated to respect the privacy and security of the+reporter of any incident.++## Enforcement Guidelines++Community leaders will follow these Community Impact Guidelines in determining+the consequences for any action they deem in violation of this Code of Conduct:++### 1. Correction++**Community Impact**: Use of inappropriate language or other behavior deemed+unprofessional or unwelcome in the community.++**Consequence**: A private, written warning from community leaders, providing+clarity around the nature of the violation and an explanation of why the+behavior was inappropriate. A public apology may be requested.++### 2. Warning++**Community Impact**: A violation through a single incident or series of+actions.++**Consequence**: A warning with consequences for continued behavior. No+interaction with the people involved, including unsolicited interaction with+those enforcing the Code of Conduct, for a specified period of time. This+includes avoiding interactions in community spaces as well as external channels+like social media. Violating these terms may lead to a temporary or permanent+ban.++### 3. Temporary Ban++**Community Impact**: A serious violation of community standards, including+sustained inappropriate behavior.++**Consequence**: A temporary ban from any sort of interaction or public+communication with the community for a specified period of time. No public or+private interaction with the people involved, including unsolicited interaction+with those enforcing the Code of Conduct, is allowed during this period.+Violating these terms may lead to a permanent ban.++### 4. Permanent Ban++**Community Impact**: Demonstrating a pattern of violation of community+standards, including sustained inappropriate behavior, harassment of an+individual, or aggression toward or disparagement of classes of individuals.++**Consequence**: A permanent ban from any sort of public interaction within the+community.++## Attribution++This Code of Conduct is adapted from the [Contributor Covenant][homepage],+version 2.1, available at+[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].++Community Impact Guidelines were inspired by+[Mozilla's code of conduct enforcement ladder][Mozilla CoC].++For answers to common questions about this code of conduct, see the FAQ at+[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at+[https://www.contributor-covenant.org/translations][translations].++[homepage]: https://www.contributor-covenant.org+[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html+[Mozilla CoC]: https://github.com/mozilla/diversity+[FAQ]: https://www.contributor-covenant.org/faq+[translations]: https://www.contributor-covenant.org/translationsdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 1cbcac7..4be677a 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -2,7 +2,10 @@Thanks for helping. showtime is a Claude Code skill that makes videos entirely on the user's machine, onmacOS (Apple Silicon and Intel), Windows 10/11 and Linux. Read [CONTEXT.md](CONTEXT.md) for the words we-use and [.out-of-scope/](.out-of-scope/README.md) for what we have decided not to do.+use and [.out-of-scope/](.out-of-scope/README.md) for what we have decided not to do. Everyone here follows+the [code of conduct](CODE_OF_CONDUCT.md). Bugs, feature ideas, example requests and docs problems each+have an issue form; questions and videos you made go to+[Discussions](https://github.com/FavioVazquez/showtime/discussions).## Set up a development checkout@@ -54,7 +57,7 @@ skills/showtime/bin/showtime setup --link # ~/.claude/skills/showtime -> thi## Tests```bash-python skills/showtime/tests/run_all.py --fast # what CI runs on every pull request (a few minutes)+python skills/showtime/tests/run_all.py --fast # what CI runs on every pull request (11 min on a clean Ubuntu machine, 18 on Windows and a macOS VM)python skills/showtime/tests/run_all.py # everything (longer; renders, voice, ASR)python skills/showtime/tests/run_all.py -k audio # one modulepython skills/showtime/tests/run_all.py --fast --changed --explain # only what your changes can affectdiff --git a/PRIVACY.md b/PRIVACY.mdindex b21519f..90b2299 100644--- a/PRIVACY.md+++ b/PRIVACY.md@@ -40,7 +40,9 @@ signatures `showtime new` (and `edit render`, for an edit's cards) picked for yosignature, the project or EDL path and the time). Neither isever uploaded; turn both off with `showtime history off` (or `SHOWTIME_HISTORY=off`), delete both with`showtime history clear`. Its local preview, studio and notes-(`showtime review open`) servers listen only on 127.0.0.1 and require a per-session key.+(`showtime review open`) servers listen only on 127.0.0.1 and require a per-session key, and the preview window+(`showtime preview`) opens your Chrome with Chrome's device discovery (Cast) turned off. Setup writes into `~/.showtime` (about 1.4 to 1.8 GB once installed; `showtime setup --estimate` gives+yours); outside it, only uv's and npm's usual download caches in your user folder grow.Terms: showtime is provided under the [MIT License](LICENSE), "as is", without warranty. You are responsible forthe content you make with it and for having the rights to any media you give it. Tools and models that setupdiff --git a/README.md b/README.mdindex 55484a8..a11b2da 100644--- a/README.md+++ b/README.md@@ -73,8 +73,9 @@ Make a 20-second launch video for this repo, with a voice-over and upbeat music.```The first time, your agent checks what is missing, tells you the download size and time (about-0.6 to 0.8 GB into `~/.showtime`, depending on your system, usually 2 to 6 minutes; nothing outside that-folder changes) and runs setup once you say yes. Bigger pieces (the transcription model, Manim, music+0.5 to 0.75 GB to download and 1.4 to 1.8 GB in `~/.showtime` once installed, depending on your system,+usually 2 to 6 minutes; outside that folder only uv's and npm's download caches change) and runs setup once+you say yes. Bigger pieces (the transcription model, Manim, musictracks) come the first time a video needs them, announced with their size. After that, a request in ClaudeCode looks like this:@@ -110,7 +111,8 @@ a feature):- **Claude Design to MP4.** `showtime adopt <export.zip>` turns a Claude Design animation into a 1080p video with itsfonts copied in, ready for music, a voice and captions.- **Faster, on any machine.** The encoder runs during the capture and an unchanged soundtrack is reused, so a 1 s- fix takes 13-21 s instead of 31-54 s; without a GPU the browser count follows your cores ([FAQ](docs/faq.md)).+ fix takes 13-21 s instead of 31-54 s on a busy 6-core Intel Mac; without a GPU the browser count follows your cores, and a 30 s launch film+ renders in 17.6 s instead of 42.0 s on a 64-core machine with no GPU ([FAQ](docs/faq.md)).On the [behaviour scoreboard](#behaviour-scoreboard), which anyone can rerun, an agent scored 35/42 with showtime and25/42 without.@@ -324,8 +326,8 @@ setup:is the same server from npm ([@faviovazquez/showtime-mcp](https://www.npmjs.com/package/@faviovazquez/showtime-mcp),also listed in the [MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.FavioVazquez/showtime)as `io.github.FavioVazquez/showtime` and on [Smithery](https://smithery.ai/servers/favio-vazquezp/showtime)), and-[`showtime-0.4.0.mcpb`](https://github.com/FavioVazquez/showtime/releases/download/v0.4.0/showtime-0.4.0.mcpb) from-the v0.4.0 release opens in Claude Desktop with a double click. Setup still runs once on your machine: the+[`showtime-0.4.1.mcpb`](https://github.com/FavioVazquez/showtime/releases/download/v0.4.1/showtime-0.4.1.mcpb) from+the v0.4.1 release opens in Claude Desktop with a double click. Setup still runs once on your machine: themodels and tools never travel inside a package. Long tools answer with a task id after about 20 seconds when aclient stops calls early; the `status` tool reports progress and the result. Besides the tools that mirror the commands,`guide` reads a reference by the piece and `receipt` writes a job's receipt (tokens and cost are "not reported by this@@ -347,7 +349,7 @@ command line: `adopt`, `footage cutout`, `edit cards`, `edit moments`, `edit cli<picture><source media="(prefers-color-scheme: dark)" srcset="assets/readme/marquee-dark.svg"><source media="(prefers-color-scheme: light)" srcset="assets/readme/marquee-light.svg">- <img alt="Now showing: 23 examples, every frame rendered by showtime." src="assets/readme/marquee-light.svg" width="100%">+ <img alt="Now showing: 32 videos, every frame rendered by showtime." src="assets/readme/marquee-light.svg" width="100%"></picture></p>@@ -382,6 +384,10 @@ changed. Click a preview to open the example. Each one has a card with its promp<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/13-wikipedia-waggle-dance"><img src="assets/readme/gallery/13-wikipedia-waggle-dance.webp" width="400" alt="A diagram of the waggle dance: the angle to the sun outside becomes the angle to vertical on the comb."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/13-wikipedia-waggle-dance">A Wikipedia article, explained</a></b> · 60 s, English + French<br><sub>The honey bee waggle dance, with real research footage. Also as HTML videos. (CC BY-SA, like its source.)</sub></td><td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/22-manim-circle-area"><img src="assets/readme/gallery/22-manim-circle-area.webp" width="400" alt="A circle made of rings unrolls into a triangle, a Manim animation."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/22-manim-circle-area">Why a circle's area is πr²</a></b> · 70 s + Shorts cut<br><sub>A narrated Manim proof with real animated equations.</sub></td></tr>+<tr>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/25-nobel-physics-ice-telescope"><img src="assets/readme/gallery/25-nobel-physics-ice-telescope.webp" width="400" alt="A pause-and-think card: what are the odds a neutrino hits anything in a kilometre of ice? Three choices and a countdown."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/25-nobel-physics-ice-telescope">An explainer that stops and asks</a></b> · 2:38, narrated<br><sub>The 2026 Nobel Prize in Physics: three questions that stop the <a href="https://github.com/FavioVazquez/showtime-examples/blob/main/examples/25-nobel-physics-ice-telescope/interactive/index.html">HTML video</a> until you answer.</sub></td>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/26-nobel-chemistry-en-es"><img src="assets/readme/gallery/26-nobel-chemistry-en-es.webp" width="400" alt="A flask of orange and teal dots tips toward orange under a catalyst stamp: 48 to 22, tipped."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/26-nobel-chemistry-en-es">Nobel Chemistry, in English and Spanish</a></b> · 2:30 + 2:34<br><sub>A lab-notebook explainer of the 2026 Nobel Prize in Chemistry, then every word of it in Spanish.</sub></td>+</tr></table>#### Product and brand@@ -395,15 +401,21 @@ changed. Click a preview to open the example. Each one has a card with its promp<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/17-product-promo-teapot"><img src="assets/readme/gallery/17-product-promo-teapot.webp" width="400" alt="A silver teapot on black with rising steam."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/17-product-promo-teapot">Product promo, 1:1</a></b> · 20 s + 6 s bumper<br><sub>A museum's CC0 photos of a Christopher Dresser teapot, only facts from the record. Also an <a href="https://github.com/FavioVazquez/showtime-examples/blob/main/examples/17-product-promo-teapot/dresser-teapot.html">HTML video</a>.</sub></td><td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/20-curtain-call-pack"><img src="assets/readme/gallery/20-curtain-call-pack.webp" width="400" alt="Red velvet curtains part on a spotlit stage: the showtime logo sting."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/20-curtain-call-pack">Brand motion pack</a></b> · sting, lower thirds, stingers<br><sub>A 3D logo sting in three layouts, lower thirds with alpha for an editor, made in studio mode. Also as <a href="https://github.com/FavioVazquez/showtime-examples/blob/main/examples/20-curtain-call-pack/html/curtain-call-sting-player.html">HTML</a>.</sub></td></tr>+<tr>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/28-claude-design-to-mp4"><img src="assets/readme/gallery/28-claude-design-to-mp4.webp" width="400" alt="An amber counter at 1,234 over four growing bars, a design adopted from Claude Design."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/28-claude-design-to-mp4">Claude Design to MP4</a></b> · 12 s + a 20 s loop<br><sub>Two exported designs adopted as they are, sharp at 1080p, each on a music bed that ends on a phrase.</sub></td>+</tr></table>#### Footage and audio<table><tr>-<td width="33%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/06-footage-edit-nasa"><img src="assets/readme/gallery/06-footage-edit-nasa.webp" width="260" alt="A vertical interview with an astronaut and bold word-by-word captions."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/06-footage-edit-nasa">Interview, tightened</a></b> · 72 s, 9:16 + 16:9<br><sub>A public-domain NASA interview cut by transcript, face-tracked to vertical, graded and captioned.</sub></td>-<td width="33%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/16-podcast-audiogram"><img src="assets/readme/gallery/16-podcast-audiogram.webp" width="260" alt="A vertical podcast audiogram with the speaker's name, a waveform and captions."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/16-podcast-audiogram">Podcast audiogram</a></b> · 45 s, 9:16<br><sub>A NASA podcast clip for Reels, TikTok and Shorts, with speaker names and captions.</sub></td>-<td width="33%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/23-talking-head-cards-nasa"><img src="assets/readme/gallery/23-talking-head-cards-nasa.webp" width="260" alt="A NASA scientist on the right, a side panel on the left: From 22,000 miles up, Half of Earth in one view."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/23-talking-head-cards-nasa">Talking head, dressed</a></b> · 55 s, 16:9 + 9:16<br><sub>Cards that appear as the words are said: name tag, list, data callout, side panel, pull-quote, caption emphasis.</sub></td>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/06-footage-edit-nasa"><img src="assets/readme/gallery/06-footage-edit-nasa.webp" width="400" alt="A vertical interview with an astronaut and bold word-by-word captions."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/06-footage-edit-nasa">Interview, tightened</a></b> · 72 s, 9:16 + 16:9<br><sub>A public-domain NASA interview cut by transcript, face-tracked to vertical, graded and captioned.</sub></td>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/16-podcast-audiogram"><img src="assets/readme/gallery/16-podcast-audiogram.webp" width="400" alt="A vertical podcast audiogram with the speaker's name, a waveform and captions."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/16-podcast-audiogram">Podcast audiogram</a></b> · 45 s, 9:16<br><sub>A NASA podcast clip for Reels, TikTok and Shorts, with speaker names and captions.</sub></td>+</tr>+<tr>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/23-talking-head-cards-nasa"><img src="assets/readme/gallery/23-talking-head-cards-nasa.webp" width="400" alt="A NASA scientist on the right, a side panel on the left: From 22,000 miles up, Half of Earth in one view."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/23-talking-head-cards-nasa">Talking head, dressed</a></b> · 55 s, 16:9 + 9:16<br><sub>Cards that appear as the words are said: name tag, list, data callout, side panel, pull-quote, caption emphasis.</sub></td>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/24-highlights-apollo17-panel"><img src="assets/readme/gallery/24-highlights-apollo17-panel.webp" width="400" alt="A vertical clip of an Artemis flight controller, with bold captions: a spaceship."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/24-highlights-apollo17-panel">A long panel, its best moments</a></b> · 3 clips, 9:16<br><sub>A 58-minute NASA panel ranked by <code>edit moments</code>; three vertical clips with captions, each through qa.</sub></td></tr></table>@@ -436,6 +448,19 @@ changed. Click a preview to open the example. Each one has a card with its promp</tr></table>+#### Looks and motion++<table>+<tr>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/30-showreel-four-shapes"><img src="assets/readme/gallery/30-showreel-four-shapes.webp" width="400" alt="The flash word TYPE. smeared by the shutter blur as it whips in, on a cyan ground."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/30-showreel-four-shapes">The showreel template in four shapes</a></b> · 4 × 15 s<br><sub><code>showtime new showreel</code> as it ships, rendered in four shapes with no edits.</sub></td>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/32-twelve-looks"><img src="assets/readme/gallery/32-twelve-looks.webp" width="400" alt="The same launch film in two look signatures: nocturne's ink blue, then paperback's warm paper, a label naming each."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/32-twelve-looks">Twelve looks, one project</a></b> · 24 s loop<br><sub>One <code>dom</code> project in all twelve look signatures, the look changing every 2 s.</sub></td>+</tr>+<tr>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_looks"><img src="assets/readme/gallery/_looks.webp" width="400" alt="Metaballs gathering into one coral blob next to the word Metaballs."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_looks">Seven looks, no GPU</a></b> · 18 s demo<br><sub>The seven WebGL looks, one scene each, drawn in showtime's own WebGL on the CPU.</sub></td>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_blur"><img src="assets/readme/gallery/_blur.webp" width="400" alt="A card reading PUNCH. lands on a lime ground after a scale punch."></a><br><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_blur">Shutter blur on fast moves</a></b> · 7.5 s demo<br><sub><code>data-st-blur</code> on the word that moves: smeared while it is fast, sharp when it lands.</sub></td>+</tr>+</table>+#### For developers<table>@@ -443,15 +468,19 @@ changed. Click a preview to open the example. Each one has a card with its promp<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/15-oss-release-black"><img src="assets/readme/gallery/15-oss-release-black.webp" width="400" alt="A code diff: redundant parentheses on the left of an assignment are removed."></a></td><td width="50%" valign="top"><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/15-oss-release-black">Open-source release video</a></b> · 35 s, no voice<br><sub>What changes in people's code with Black 26.1.0's 2026 stable style: real before-and-after diffs, the install line and the changelog. Point showtime at a repo, a pull request or a changelog and it makes the same kind of video. (An unofficial summary, made as an example.)</sub></td></tr>+<tr>+<td width="50%" valign="top"><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/29-pr-video-showtime"><img src="assets/readme/gallery/29-pr-video-showtime.webp" width="400" alt="68 files changed, +1138 -159: a file tree with green and red bars, from showtime's pull request #7."></a></td>+<td width="50%" valign="top"><b><a href="https://github.com/FavioVazquez/showtime-examples/tree/main/examples/29-pr-video-showtime">A pull request becomes a video</a></b> · 40 s, one command<br><sub><code>showtime pr-video 7</code> on showtime's own pull request: the PR's title and words, the files it changed with their +/- counts, a real hunk and its URL, secrets masked, a copy under GitHub's 10 MB attachment limit and the Markdown to paste.</sub></td>+</tr></table>Two more kinds of developer video have a workflow but no example in this gallery yet: a **repo explainer** (what thecode does, a map of it, one request traced through real files and lines, every claim tied to a file and a commit) anda **paper explainer** (claims tied to pages, figures shown only when their license allows, Manim for the math). Say"explain this repo" or give your agent a paper's PDF or arXiv link. For a pull request, `showtime pr-video <N>` reads-it (with gh, or from GitHub's API for a public one) and renders a video under 10 MB to drag into its description. For-release notes and pull requests with no agent at all, `showtime release-video` and the-[GitHub Action](docs/github-action.md) make a short film in CI.+it (with gh, or from GitHub's API for a public one) and renders a video under 10 MB to drag into its description+([example 29](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/29-pr-video-showtime)). For release notes and pull requests with no agent at all,+`showtime release-video` and the [GitHub Action](docs/github-action.md) make a short film in CI.<p align="center"><sub>All 22 examples, with their projects and full-quality videos, live in <a href="https://github.com/FavioVazquez/showtime-examples"><b>showtime-examples</b></a>.</sub></p>@@ -463,7 +492,7 @@ release notes and pull requests with no agent at all, `showtime release-video` a> `showtime export html`. On GitHub, download the file to play it.<details>-<summary><b>The 23 prompts behind the examples</b>: copy one into your agent</summary>+<summary><b>The 32 prompts behind the examples</b>: copy one into your agent</summary>| # | Prompt ||---|---|@@ -490,6 +519,15 @@ release notes and pull requests with no agent at all, `showtime release-video` a| [21](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/21-tutorial-studio-board) | Record a 75-second narrated tutorial showing how to use the showtime studio board: open it, compare concepts, react, pick one, and send feedback. And a vertical cut for Shorts. || [22](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/22-manim-circle-area) | Make a narrated 70-second math explainer showing why the area of a circle is pi r squared, with real animated equations. || [23](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/23-talking-head-cards-nasa) | Dress up this NASA interview with Sarah Jones about the GOLD mission: name tag, a data callout, a pull-quote, a list or chapter, a side panel and captions with emphasis; a 16:9 and a 9:16 cut. |+| [24](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/24-highlights-apollo17-panel) | Find the best 30-60 s moments of this 58-minute NASA panel (Apollo 17 legends and Artemis leaders) and make three vertical clips with captions |+| [25](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/25-nobel-physics-ice-telescope) | Physics 2026 explainer for nobel-2026-lab: a telescope made of ice, ~2 min, three stop-and-ask questions, interactive export, 60 s vertical cut; publish today |+| [26](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/26-nobel-chemistry-en-es) | Full Chemistry 2026 explainer (~2:10, 16:9) for the nobel-2026-lab: Frank's recipe, Kagan's bend, Soai's copier, the 2003 staircase, the coin flip, our mirror-race toy, caveats, medicines. NOT socratic: no questions to the viewer. American voice (af_bella; not the British female). Paperback lab-notebook look, CC0 bed, showtime credited (corner mark, end card, closing line). Must look great; post soon. |+| [28](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/28-claude-design-to-mp4) | Make 'Showtime Test (12s, 16 9)-html.zip' an MP4, with a music bed. |+| [29](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/29-pr-video-showtime) | Turn showtime's pull request #7 into a short video I can paste into its description. |+| [30](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/30-showreel-four-shapes) | Render the showreel template as it ships, with no edits, at 16:9, 9:16, 1:1 and 4:5. |+| [32](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/32-twelve-looks) | Show one project in each of the twelve look signatures: a contact sheet of all twelve, and a 24-second loop that changes look every 2 seconds. |+| [_looks](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_looks) | Show the seven WebGL looks in one short page, one scene each, rendered without a GPU. |+| [_blur](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_blur) | Show the shutter blur on four snaps: a whip, a slam, a scale punch, and the same whip without and with it. |</details>@@ -852,7 +890,8 @@ detectors on it, so a near-black scene or a barely visible change is reported bewithout a GPU), renders the same frames with any number of browsers, and has a designed fallback where WebGL ismissing ([components § 7](skills/showtime/references/components.md), [the demo](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/_looks/README.md)).- **Shutter blur.** `data-st-blur` smears an element the way a camera shutter would, only on the frames it moves fast;- it lands sharp ([stage-api](skills/showtime/references/stage-api.md), [the demo](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/_blur/README.md)).+ it lands sharp ([stage-api](skills/showtime/references/stage-api.md), [the demo](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/_blur/README.md), the flash+ words of [example 30](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/30-showreel-four-shapes)).**Footage**@@ -870,9 +909,10 @@ detectors on it, so a near-black scene or a barely visible change is reported be- **Claude Design to MP4.** `showtime adopt <export.zip>`: the artboard fills a 1080p frame with sharp text, itsGoogle Fonts are copied in with their licences, and a looping design renders exactly one loop- ([adopt](skills/showtime/references/adopt.md)).+ ([adopt](skills/showtime/references/adopt.md), [example 28](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/28-claude-design-to-mp4)).- **Link previews.** `showtime export html --share-url <address>` (or `"share"` in showtime.json) adds the tags that- show a title, a description and the poster when the link is pasted; `--folder` exports are ready for GitHub Pages.+ show a title, a description and the poster when the link is pasted; `--folder` exports are ready for GitHub Pages+ ([example 25](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/25-nobel-physics-ice-telescope)'s HTML video).**Review and resume**@@ -881,7 +921,8 @@ detectors on it, so a near-black scene or a barely visible change is reported be- **Since you last looked.** `showtime status <job>` lists the files you edited by hand, your unread notes and openfindings, so your agent keeps your changes.- **The voice-over is heard back**: showtime transcribes it on your machine and flags a name, an acronym or a number- said wrong, with the fix to try; qa and the critic see it too.+ said wrong, with the fix to try; qa and the critic see it too. It runs when the local recognizer is installed: it+ arrives with the first transcription, or `showtime setup --fetch parakeet-tdt-0.6b-v3-int8`.- **check catches more**: a fading text is judged at its clearest frame, `caption_zone` warns about anything wherethe captions go, a WebGPU page is tried again without WebGPU, and each look's cost is estimated.@@ -890,7 +931,9 @@ detectors on it, so a near-black scene or a barely visible change is reported be- The encoder runs while the frames are captured, a finished browser takes over half of the largest part left, andan unchanged soundtrack is reused: on a busy 6-core Intel Mac a 1 s fix went from 31-54 s to 13-21 s.- Without a GPU, the number of browsers follows the cores (one per 8 CPU threads, at least 3 from 6 threads up, at- most 8), and waits stretch on a slow page instead of failing. [Do I need a GPU?](docs/faq.md#do-i-need-a-gpu)+ most 8), and waits stretch on a slow page instead of failing: on a 64-core Linux machine with no GPU a 30 s launch+ film went from 42.0 s to 17.6 s and a 15 s DOM page from 31.8 s to 16.4 s.+ [Do I need a GPU?](docs/faq.md#do-i-need-a-gpu)The full list is in the [changelog](CHANGELOG.md).@@ -905,7 +948,8 @@ The full list is in the [changelog](CHANGELOG.md).- **Videos that stop and ask.** List questions in showtime.json and the HTML export pauses on that frame, asks, marksthe answer, replies and plays on; the MP4 gets a "pause and think" beat with a countdown and the answer. A question- can sit on a narration line, so a re-voice moves it with the line ([guide](skills/showtime/references/html-export.md)).+ can sit on a narration line, so a re-voice moves it with the line ([guide](skills/showtime/references/html-export.md),+ [example 25](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/25-nobel-physics-ice-telescope)).- **Notes on the finished video.** `showtime review open <job>` serves a local page that plays the latest render:pause, click a spot or drag a box on the frame, type a note. Your agent reads them with `showtime review notes`,fixes, and replies on the same note.@@ -915,12 +959,13 @@ The full list is in the [changelog](CHANGELOG.md).- **`showtime pr-video <N | URL>`**: a pull request becomes a short video for its own description in one command,with a copy under GitHub's 10 MB attachment limit. A public PR works without a GitHub login, and values that look- like secrets never reach the video.+ like secrets never reach the video ([example 29](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/29-pr-video-showtime)).- **A storyboard from another skill becomes a project**: `showtime new <template> <dir> --from-storyboard FILE`- reads a Markdown table (Shot | Length | Visual | Narration, in any order, English or Chinese headers).+ reads a Markdown table (Shot | Length | Visual | Narration, in any order, English or Chinese headers;+ [examples 25 and 26](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/26-nobel-chemistry-en-es)).- **Go all out: the showreel tone.** A "showreel" or "go all out" brief turns it on: 12-14 shots in 15 s, notechnique twice, flash words allowed, the name landing late and short; `qa` judges density, the ending and repeats.- The `showreel` template renders at 16:9, 9:16, 1:1 and 4:5 with no edits.+ The `showreel` template renders at 16:9, 9:16, 1:1 and 4:5 with no edits ([example 30](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/30-showreel-four-shapes)).**A stricter quality gate**@@ -935,7 +980,8 @@ The full list is in the [changelog](CHANGELOG.md).**Better-looking by default**- **Twelve look signatures.** `showtime new` dresses the page templates in one of twelve curated looks (palette at- the contrast rules, a type pair, a motion feel), picked away from your recent videos (`--look <id>` to choose).+ the contrast rules, a type pair, a motion feel), picked away from your recent videos (`--look <id>` to choose;+ [example 32](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/32-twelve-looks) shows one project in all twelve).- **No blank or late first frames** after a cut or in a `<video>`: every video is drawn on a canvas in renders, and`check` warns `late_first_frame`.@@ -1050,7 +1096,7 @@ by this agent". The full list is in the [changelog](CHANGELOG.md).random per-session key from the printed link; before, any web page open in your browser could read aproject's files over `127.0.0.1`.- **Footage edits that hear the ums.** The default transcription is now Parakeet-TDT 0.6B v3 (25 languages- including English and Spanish; fetched on first use, 465 MB; Whisper stays for other languages and with+ including English and Spanish; fetched on first use, about 490 MB; Whisper stays for other languages and with`--model`). It keeps "um" and "uh" as words, and a scan after it hears the hesitations no word covers. On a public,human-labelled podcast set (20 episodes, 495 labelled fillers) it found 81% of them at 83% precision against thelabels, where 0.1.0's default found 11% at 78%; on the benchmark interview it cuts all five known "uh" (the@@ -1105,10 +1151,12 @@ nightly. Expect rough edges on anything marked not yet run, and please open an i| [Node.js](https://nodejs.org) 24 or 22 LTS (20+) | installer | installer or winget | fnm or NodeSource |Chrome, Edge or Chromium is found automatically; if none is installed, setup downloads Chrome's headless-shell (about 100 MB). Disk: the default install is about 770 MB on Linux x64 (700 MB on Linux arm64) and 560 to 610 MB on-macOS and Windows, with a browser already installed and about 100 MB more without one, instead of 2.9 GB in 0.1; `showtime setup --plan` prints yours,-component by component. What a video needs only sometimes arrives the first time it is used, with its size-announced: the transcription model (Parakeet, 465 MB, once),+shell (100 to 120 MB to download). Disk: the default install downloads about 0.73 GB on Linux x64 (0.67 GB on Linux+arm64) and 0.53 to 0.59 GB on macOS and Windows, and once unpacked it takes about 1.4 GB on macOS and Windows and 1.7+to 1.8 GB on Linux (Python packages 0.65 to 0.9 GB, Node packages 0.34 GB, ffmpeg 0.13 to 0.33 GB, models 0.22 GB),+with a browser already installed; the headless shell adds 0.2 to 0.3 GB, and a system ffmpeg 6.0 or newer saves+the ffmpeg part. `showtime setup --estimate` prints yours, `showtime setup --plan` lists every download. What a video needs only sometimes arrives the first time it is used, with its size+announced: the transcription model (Parakeet, about 490 MB, once),Manim (60 MB), the audio library's starter part (41 MB), a music track or a sound pack (each a few MB to a fewdozen). `showtime setup --full` fetches all of it now, for a machine that will be offline (about 5.1 to 5.7 GB,mostly the 1.6 GB Whisper large-v3-turbo model and 0.9 GB of the music catalog; Scott Buckley asks for no bulk@@ -1170,7 +1218,9 @@ git clone https://github.com/FavioVazquez/showtime```Setup also writes `~/.showtime/bin/showtime` (Windows: `showtime.cmd`), a command that keeps working when a-plugin update moves the skill folder, and prints how to put it on your `PATH` (it never changes `PATH` itself).+plugin update moves the skill folder, and prints how to put it on your `PATH` (it never changes `PATH` itself). On+Windows that is one PowerShell line adding `%USERPROFILE%\.showtime\bin` to your user `PATH`: run it once, then+open a new terminal (or restart your agent) to type just `showtime`.Without it, `skills/showtime/bin/showtime` is the entry point (the skill's folder, not the plugin's top folder). OnWindows that runs `showtime.cmd` (from cmd or PowerShell); call `showtime.ps1` directly only where the PowerShellexecution policy allows scripts.@@ -1350,7 +1400,6 @@ language, a CPU limit) and the render progress monitor.For people: [ten task guides](docs/guides/README.md) (what to say to your agent, what it runs, what you get, howlong it takes), [What's new](docs/whats-new.md) (each release in one sentence a feature) and the [FAQ](docs/faq.md)(GPUs, cost, agents, privacy, licences, disk, time, platforms, languages).-<!-- TODO(tour lane): link the tour here when it lands -->The [documentation map](docs/README.md) is the way in: every guide, grouped by what you are making, fromworkflows (launch, explainer, tutorial, social, data, footage, trailer) to story and craft, sound anddiff --git a/assets/readme/gallery/24-highlights-apollo17-panel.webp b/assets/readme/gallery/24-highlights-apollo17-panel.webpnew file mode 100644index 0000000..109e943Binary files /dev/null and b/assets/readme/gallery/24-highlights-apollo17-panel.webp differdiff --git a/assets/readme/gallery/25-nobel-physics-ice-telescope.webp b/assets/readme/gallery/25-nobel-physics-ice-telescope.webpnew file mode 100644index 0000000..b30680eBinary files /dev/null and b/assets/readme/gallery/25-nobel-physics-ice-telescope.webp differdiff --git a/assets/readme/gallery/26-nobel-chemistry-en-es.webp b/assets/readme/gallery/26-nobel-chemistry-en-es.webpnew file mode 100644index 0000000..a2cc11fBinary files /dev/null and b/assets/readme/gallery/26-nobel-chemistry-en-es.webp differdiff --git a/assets/readme/gallery/28-claude-design-to-mp4.webp b/assets/readme/gallery/28-claude-design-to-mp4.webpnew file mode 100644index 0000000..62af16dBinary files /dev/null and b/assets/readme/gallery/28-claude-design-to-mp4.webp differdiff --git a/assets/readme/gallery/29-pr-video-showtime.webp b/assets/readme/gallery/29-pr-video-showtime.webpnew file mode 100644index 0000000..b0746c9Binary files /dev/null and b/assets/readme/gallery/29-pr-video-showtime.webp differdiff --git a/assets/readme/gallery/30-showreel-four-shapes.webp b/assets/readme/gallery/30-showreel-four-shapes.webpnew file mode 100644index 0000000..ed5004dBinary files /dev/null and b/assets/readme/gallery/30-showreel-four-shapes.webp differdiff --git a/assets/readme/gallery/32-twelve-looks.webp b/assets/readme/gallery/32-twelve-looks.webpnew file mode 100644index 0000000..32267c8Binary files /dev/null and b/assets/readme/gallery/32-twelve-looks.webp differdiff --git a/assets/readme/gallery/_blur.webp b/assets/readme/gallery/_blur.webpnew file mode 100644index 0000000..61654a6Binary files /dev/null and b/assets/readme/gallery/_blur.webp differdiff --git a/assets/readme/gallery/_looks.webp b/assets/readme/gallery/_looks.webpnew file mode 100644index 0000000..64b4c33Binary files /dev/null and b/assets/readme/gallery/_looks.webp differdiff --git a/assets/readme/gallery/stills/24-highlights-apollo17-panel.jpg b/assets/readme/gallery/stills/24-highlights-apollo17-panel.jpgnew file mode 100644index 0000000..c1b6a73Binary files /dev/null and b/assets/readme/gallery/stills/24-highlights-apollo17-panel.jpg differdiff --git a/assets/readme/gallery/stills/25-nobel-physics-ice-telescope.jpg b/assets/readme/gallery/stills/25-nobel-physics-ice-telescope.jpgnew file mode 100644index 0000000..209d9a0Binary files /dev/null and b/assets/readme/gallery/stills/25-nobel-physics-ice-telescope.jpg differdiff --git a/assets/readme/gallery/stills/26-nobel-chemistry-en-es.jpg b/assets/readme/gallery/stills/26-nobel-chemistry-en-es.jpgnew file mode 100644index 0000000..89badc8Binary files /dev/null and b/assets/readme/gallery/stills/26-nobel-chemistry-en-es.jpg differdiff --git a/assets/readme/gallery/stills/28-claude-design-to-mp4.jpg b/assets/readme/gallery/stills/28-claude-design-to-mp4.jpgnew file mode 100644index 0000000..17a2135Binary files /dev/null and b/assets/readme/gallery/stills/28-claude-design-to-mp4.jpg differdiff --git a/assets/readme/gallery/stills/29-pr-video-showtime.jpg b/assets/readme/gallery/stills/29-pr-video-showtime.jpgnew file mode 100644index 0000000..a241aadBinary files /dev/null and b/assets/readme/gallery/stills/29-pr-video-showtime.jpg differdiff --git a/assets/readme/gallery/stills/30-showreel-four-shapes.jpg b/assets/readme/gallery/stills/30-showreel-four-shapes.jpgnew file mode 100644index 0000000..720df07Binary files /dev/null and b/assets/readme/gallery/stills/30-showreel-four-shapes.jpg differdiff --git a/assets/readme/gallery/stills/32-twelve-looks.jpg b/assets/readme/gallery/stills/32-twelve-looks.jpgnew file mode 100644index 0000000..9ad1bfaBinary files /dev/null and b/assets/readme/gallery/stills/32-twelve-looks.jpg differdiff --git a/assets/readme/gallery/stills/_blur.jpg b/assets/readme/gallery/stills/_blur.jpgnew file mode 100644index 0000000..b34bb26Binary files /dev/null and b/assets/readme/gallery/stills/_blur.jpg differdiff --git a/assets/readme/gallery/stills/_looks.jpg b/assets/readme/gallery/stills/_looks.jpgnew file mode 100644index 0000000..db00751Binary files /dev/null and b/assets/readme/gallery/stills/_looks.jpg differdiff --git a/assets/readme/marquee-dark.svg b/assets/readme/marquee-dark.svgindex 104149b..47b8da1 100644--- a/assets/readme/marquee-dark.svg+++ b/assets/readme/marquee-dark.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 250" width="1600" height="250" role="img" aria-labelledby="t d"><title id="t">now showing</title><desc id="d">A theatre marquee with chasing lights. Now showing: 23 examples, every frame rendered by showtime.</desc><style>.b0,.b1,.b2{animation:chase 1.2s linear infinite}.b1{animation-delay:-.4s}.b2{animation-delay:-.8s}@keyframes chase{0%,100%{opacity:1}33%{opacity:.25}66%{opacity:.45}}.sign{animation:on 1.6s .2s both}@keyframes on{0%{opacity:.2}30%{opacity:.9}38%{opacity:.4}55%,100%{opacity:1}}@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}</style><defs><path id="i6-A" d="M50 0 570 -1490H909L1441 0H1148L883 -774Q844 -894 802 -1046Q760 -1197 709 -1390H765Q715 -1195 674 -1042Q634 -890 598 -774L342 0ZM353 -369V-584H1138V-369Z"/><path id="i6-B" d="M150 0V-1490H720Q881 -1490 988 -1439Q1095 -1388 1148 -1301Q1201 -1214 1201 -1103Q1201 -1012 1166 -948Q1131 -883 1072 -843Q1014 -803 941 -786V-771Q1020 -767 1093 -723Q1166 -679 1212 -599Q1259 -519 1259 -406Q1259 -290 1203 -198Q1147 -106 1034 -53Q922 0 751 0ZM417 -223H709Q857 -223 922 -280Q988 -337 988 -426Q988 -493 955 -546Q922 -600 862 -631Q801 -662 718 -662H417ZM417 -855H686Q757 -855 813 -881Q869 -907 902 -955Q934 -1003 934 -1069Q934 -1156 873 -1212Q812 -1268 692 -1268H417Z"/><path id="i6-D" d="M654 0H277V-231H641Q797 -231 902 -288Q1006 -346 1059 -460Q1112 -575 1112 -747Q1112 -917 1059 -1031Q1006 -1145 904 -1202Q801 -1259 648 -1259H269V-1490H664Q886 -1490 1045 -1401Q1204 -1312 1290 -1145Q1375 -978 1375 -747Q1375 -514 1290 -346Q1204 -179 1042 -90Q881 0 654 0ZM417 -1490V0H150V-1490Z"/><path id="i6-E" d="M150 0V-1490H1118V-1265H417V-863H1066V-641H417V-225H1122V0Z"/><path id="i6-F" d="M150 0V-1490H1104V-1265H417V-818H1037V-596H417V0Z"/><path id="i6-H" d="M150 0V-1490H417V-874H1110V-1490H1377V0H1110V-649H417V0Z"/><path id="i6-I" d="M417 -1490V0H150V-1490Z"/><path id="i6-L" d="M150 0V-1490H417V-225H1075V0Z"/><path id="i6-M" d="M150 0V-1490H552L835 -721Q850 -678 868 -610Q887 -543 906 -465Q926 -387 944 -312Q961 -238 973 -181H919Q931 -237 948 -310Q966 -384 986 -462Q1005 -541 1024 -609Q1042 -677 1056 -721L1336 -1490H1739V0H1473V-752Q1473 -800 1474 -868Q1475 -936 1477 -1014Q1479 -1092 1481 -1172Q1483 -1251 1483 -1323H1502Q1482 -1244 1458 -1162Q1435 -1079 1412 -1002Q1389 -924 1368 -859Q1348 -794 1333 -752L1058 0H831L552 -752Q537 -794 516 -858Q496 -921 472 -998Q449 -1075 426 -1158Q402 -1242 379 -1323H401Q402 -1256 404 -1178Q406 -1099 408 -1020Q409 -941 410 -872Q412 -802 412 -752V0Z"/><path id="i6-N" d="M150 0V-1490H452L967 -669Q999 -618 1035 -554Q1071 -489 1110 -410Q1149 -330 1187 -233H1157Q1150 -317 1144 -406Q1139 -494 1136 -574Q1134 -653 1134 -708V-1490H1405V0H1102L637 -739Q593 -810 554 -879Q515 -948 470 -1035Q425 -1122 361 -1245H399Q405 -1136 410 -1038Q415 -941 418 -864Q422 -787 422 -740V0Z"/><path id="i6-O" d="M788 20Q592 20 437 -71Q282 -162 192 -333Q103 -504 103 -744Q103 -985 192 -1156Q282 -1328 437 -1419Q592 -1510 788 -1510Q983 -1510 1138 -1419Q1292 -1328 1382 -1156Q1471 -985 1471 -744Q1471 -504 1382 -332Q1292 -161 1138 -70Q983 20 788 20ZM788 -219Q909 -219 1002 -280Q1096 -340 1149 -458Q1202 -575 1202 -744Q1202 -915 1149 -1032Q1096 -1150 1002 -1210Q909 -1271 788 -1271Q666 -1271 572 -1210Q478 -1149 424 -1032Q371 -914 371 -744Q371 -575 424 -458Q478 -341 572 -280Q666 -219 788 -219Z"/><path id="i6-P" d="M150 0V-1490H707Q878 -1490 995 -1426Q1112 -1362 1172 -1250Q1232 -1139 1232 -997Q1232 -854 1172 -743Q1111 -632 993 -568Q875 -504 703 -504H334V-724H668Q769 -724 834 -759Q898 -794 928 -856Q959 -918 959 -997Q959 -1076 928 -1137Q898 -1198 833 -1232Q768 -1266 666 -1266H417V0Z"/><path id="i6-R" d="M150 0V-1490H707Q878 -1490 995 -1430Q1112 -1370 1172 -1262Q1232 -1155 1232 -1013Q1232 -871 1172 -766Q1111 -661 993 -604Q875 -547 703 -547H305V-768H668Q769 -768 833 -796Q897 -825 928 -880Q959 -935 959 -1013Q959 -1093 928 -1150Q897 -1206 832 -1236Q768 -1266 666 -1266H417V0ZM988 0 626 -676H918L1287 0Z"/><path id="i6-S" d="M673 23Q500 23 372 -31Q245 -85 173 -188Q101 -291 95 -438H358Q365 -360 407 -308Q449 -256 518 -230Q587 -205 671 -205Q759 -205 826 -232Q894 -259 932 -308Q970 -356 970 -420Q970 -478 936 -516Q903 -554 842 -580Q782 -607 701 -627L532 -671Q345 -719 240 -816Q136 -913 136 -1071Q136 -1203 207 -1302Q278 -1401 401 -1456Q524 -1510 680 -1510Q839 -1510 959 -1455Q1079 -1400 1146 -1303Q1214 -1206 1217 -1082H958Q948 -1178 872 -1230Q797 -1283 676 -1283Q592 -1283 532 -1258Q471 -1232 438 -1188Q406 -1144 406 -1087Q406 -1025 444 -985Q483 -945 542 -921Q600 -897 660 -882L799 -846Q882 -826 960 -793Q1038 -760 1100 -710Q1163 -659 1200 -587Q1237 -515 1237 -418Q1237 -287 1170 -188Q1103 -88 977 -32Q851 23 673 23Z"/><path id="i6-T" d="M83 -1265V-1490H1269V-1265H810V0H543V-1265Z"/><path id="i6-V" d="M581 0 50 -1490H343L607 -716Q644 -600 687 -448Q730 -297 780 -106H724Q774 -300 816 -450Q857 -600 893 -716L1149 -1490H1441L919 0Z"/><path id="i6-W" d="M452 0 50 -1490H337L531 -697Q551 -611 568 -516Q586 -421 602 -325Q619 -229 634 -137H591Q608 -229 625 -325Q642 -421 661 -516Q680 -611 701 -697L903 -1490H1186L1387 -697Q1409 -611 1428 -516Q1446 -421 1464 -325Q1481 -229 1499 -137H1453Q1469 -229 1486 -325Q1502 -421 1520 -516Q1538 -611 1558 -697L1751 -1490H2039L1636 0H1330L1113 -823Q1083 -938 1060 -1073Q1038 -1208 1012 -1359H1076Q1048 -1213 1028 -1080Q1008 -948 975 -823L758 0Z"/><path id="i6-X" d="M53 0 657 -861V-660L96 -1490H405L586 -1218Q632 -1148 662 -1094Q692 -1040 717 -990Q742 -939 772 -880H707Q738 -939 763 -989Q788 -1039 818 -1094Q849 -1148 896 -1218L1080 -1490H1382L827 -673V-867L1421 0H1107L881 -334Q840 -397 814 -441Q787 -485 765 -526Q743 -567 714 -621H760Q732 -569 710 -528Q688 -487 661 -442Q634 -397 590 -334L360 0Z"/><path id="i6-Y" d="M600 0V-577L50 -1490H362L628 -1020Q670 -946 703 -876Q736 -806 771 -705H701Q735 -807 768 -878Q800 -949 840 -1020L1101 -1490H1411L867 -577V0Z"/><path id="i6-periodcentered" d="M326 -547Q259 -547 212 -593Q166 -639 166 -707Q166 -774 212 -820Q259 -866 326 -866Q394 -866 440 -820Q487 -774 487 -707Q487 -639 440 -593Q394 -547 326 -547Z"/><path id="i6-two" d="M134 0V-192L651 -701Q724 -776 774 -834Q823 -892 848 -946Q874 -1001 874 -1065Q874 -1135 842 -1186Q809 -1237 754 -1264Q698 -1292 627 -1292Q552 -1292 496 -1262Q441 -1232 411 -1176Q381 -1121 381 -1044H126Q126 -1185 190 -1290Q255 -1395 368 -1452Q482 -1510 630 -1510Q779 -1510 892 -1454Q1005 -1398 1068 -1300Q1131 -1203 1131 -1078Q1131 -995 1100 -916Q1069 -837 989 -738Q909 -638 763 -498L504 -234V-223H1153V0Z"/><path id="f9-g" d="M637 -98Q543 -109 494 -120Q445 -132 427 -146Q409 -160 409 -180Q409 -200 420 -212Q431 -224 441 -224L439 -230Q325 -222 257 -194Q189 -167 159 -124Q129 -81 129 -26Q129 34 162 70Q195 105 268 126Q341 147 461 164Q577 180 641 202Q705 223 730 254Q755 285 755 328Q755 377 732 407Q708 437 660 450Q613 464 541 464Q408 464 336 386Q265 308 265 178Q265 158 269 142Q273 126 277 120V110Q138 123 78 162Q17 202 17 286Q17 347 68 393Q118 439 231 464Q344 490 531 490Q777 490 910 400Q1043 310 1043 166Q1043 87 1008 35Q972 -17 884 -48Q795 -80 637 -98ZM659 -870 679 -878Q693 -925 713 -948Q733 -972 764 -972Q792 -972 812 -952Q833 -931 853 -904Q873 -877 898 -856Q923 -836 960 -836Q1022 -836 1056 -872Q1089 -909 1089 -974Q1089 -1048 1048 -1094Q1007 -1140 924 -1140Q827 -1140 766 -1072Q704 -1004 667 -894ZM987 -574Q987 -662 934 -740Q882 -818 780 -867Q679 -916 533 -916Q382 -916 272 -867Q162 -818 102 -734Q43 -651 43 -546Q43 -457 102 -382Q160 -306 268 -260Q377 -214 527 -214Q659 -214 763 -262Q867 -310 927 -392Q987 -473 987 -574ZM465 -890Q506 -896 548 -816Q590 -737 612 -582Q634 -425 616 -338Q597 -250 555 -244Q527 -240 498 -274Q469 -309 446 -380Q422 -450 407 -554Q393 -657 396 -731Q400 -805 418 -846Q436 -886 465 -890Z"/><path id="f9-h" d="M462 -1496V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q536 -14 536 -8Q536 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-1366Q100 -1374 96 -1378Q92 -1382 83 -1382H44Q37 -1382 34 -1384Q32 -1387 32 -1391Q32 -1395 35 -1397Q38 -1399 42 -1400L421 -1505Q433 -1508 438 -1509Q442 -1510 448 -1510Q455 -1510 458 -1506Q462 -1502 462 -1496ZM432 -679 418 -694 458 -729Q563 -821 646 -868Q729 -916 794 -916Q883 -916 932 -866Q982 -815 994 -702L1062 -64Q1064 -48 1068 -38Q1073 -29 1086 -26L1124 -17Q1131 -16 1134 -14Q1136 -11 1136 -8Q1136 -4 1134 -2Q1131 0 1126 0H627Q617 0 617 -8Q617 -14 629 -17L667 -26Q681 -29 687 -38Q693 -48 691 -64L638 -664Q634 -713 618 -736Q602 -758 566 -758Q541 -758 518 -746Q494 -733 470 -712Z"/><path id="f9-i" d="M462 -906V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q531 -16 534 -14Q536 -11 536 -8Q536 -4 534 -2Q531 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-776Q100 -784 96 -788Q92 -792 83 -792H44Q37 -792 34 -794Q32 -797 32 -801Q32 -805 35 -807Q38 -809 42 -810L421 -915Q433 -918 438 -919Q442 -920 448 -920Q455 -920 458 -916Q462 -912 462 -906ZM277 -977Q186 -977 129 -1035Q72 -1093 72 -1177Q72 -1261 129 -1319Q186 -1377 277 -1377Q369 -1377 428 -1319Q486 -1261 486 -1177Q486 -1093 428 -1035Q369 -977 277 -977Z"/><path id="f9-n" d="M462 -906V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q536 -14 536 -8Q536 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-776Q100 -784 96 -788Q92 -792 83 -792H44Q37 -792 34 -794Q32 -797 32 -801Q32 -805 35 -807Q38 -809 42 -810L421 -915Q433 -918 438 -919Q442 -920 448 -920Q455 -920 458 -916Q462 -912 462 -906ZM432 -679 418 -694 458 -729Q563 -821 646 -868Q729 -916 794 -916Q883 -916 932 -866Q982 -815 994 -702L1062 -64Q1064 -48 1068 -38Q1073 -29 1086 -26L1124 -17Q1131 -16 1134 -14Q1136 -11 1136 -8Q1136 -4 1134 -2Q1131 0 1126 0H627Q617 0 617 -8Q617 -14 629 -17L667 -26Q681 -29 687 -38Q693 -48 691 -64L638 -664Q634 -713 618 -736Q602 -758 566 -758Q541 -758 518 -746Q494 -733 470 -712Z"/><path id="f9-o" d="M532 -916Q675 -916 784 -856Q894 -796 956 -690Q1018 -583 1018 -444Q1018 -308 954 -204Q889 -99 776 -40Q663 20 516 20Q373 20 264 -39Q154 -98 92 -202Q30 -307 30 -444Q30 -580 96 -686Q161 -793 274 -854Q388 -916 532 -916ZM589 0Q625 -5 642 -56Q660 -107 659 -208Q658 -309 636 -462Q614 -615 588 -712Q561 -810 530 -854Q499 -899 462 -893Q427 -887 410 -836Q392 -785 394 -685Q396 -585 417 -432Q439 -279 465 -182Q491 -84 522 -40Q553 5 589 0Z"/><path id="f9-s" d="M432 -8Q486 -8 516 -34Q546 -61 546 -104Q546 -137 530 -164Q515 -192 476 -216Q437 -241 368 -264Q236 -309 162 -362Q88 -415 58 -480Q28 -545 28 -626Q28 -767 123 -842Q218 -916 378 -916Q441 -916 482 -904Q522 -893 544 -882Q565 -870 572 -870Q584 -870 618 -882Q652 -893 686 -904Q719 -916 730 -916Q735 -916 740 -914Q745 -911 746 -902L788 -584Q790 -574 788 -568Q787 -562 784 -560Q781 -559 778 -560Q775 -562 772 -566Q696 -692 634 -763Q573 -834 516 -863Q458 -892 394 -892Q337 -892 308 -863Q280 -834 280 -786Q280 -749 298 -718Q316 -688 362 -662Q409 -636 496 -612Q611 -579 678 -530Q746 -480 775 -418Q804 -355 804 -282Q804 -188 758 -120Q711 -53 634 -16Q557 20 464 20Q408 20 367 6Q326 -8 302 -22Q277 -36 272 -36Q264 -36 232 -24Q201 -11 168 2Q135 14 124 14Q117 14 110 8Q104 1 102 -14L68 -276Q67 -290 68 -296Q70 -301 74 -304Q76 -306 79 -304Q82 -301 86 -296Q184 -143 266 -76Q348 -8 432 -8Z"/><path id="f9-w" d="M528 0H375Q366 0 360 -4Q354 -7 351 -16L72 -840Q68 -853 62 -860Q55 -867 44 -870L6 -879Q-1 -881 -4 -883Q-6 -885 -6 -888Q-6 -893 -3 -894Q0 -896 4 -896H538Q543 -896 546 -894Q548 -893 548 -888Q548 -885 546 -883Q543 -881 536 -879L488 -870Q466 -866 461 -852Q456 -837 463 -816L629 -304L550 -92L756 -770L779 -764L550 -14Q548 -7 542 -4Q536 0 528 0ZM1132 0H979Q970 0 964 -4Q958 -7 955 -16L683 -840Q677 -859 671 -866Q665 -873 658 -874L637 -879Q630 -881 628 -883Q625 -885 625 -888Q625 -896 635 -896H1169Q1179 -896 1179 -888Q1179 -885 1176 -883Q1174 -881 1167 -879L1116 -867Q1080 -859 1073 -849Q1066 -839 1073 -816L1234 -302L1153 -92L1357 -770Q1369 -809 1356 -836Q1343 -863 1310 -870L1272 -879Q1265 -881 1262 -883Q1260 -885 1260 -888Q1260 -893 1263 -894Q1266 -896 1270 -896H1488Q1493 -896 1496 -894Q1498 -893 1498 -888Q1498 -885 1496 -883Q1493 -881 1486 -879L1463 -870Q1438 -860 1415 -832Q1392 -804 1380 -764L1154 -14Q1152 -7 1146 -4Q1140 0 1132 0Z"/><filter id="bg" x="-200%" y="-200%" width="500%" height="500%"><feGaussianBlur stdDeviation="4"/></filter><filter id="tg" x="-10%" y="-40%" width="120%" height="180%"><feGaussianBlur stdDeviation="10"/></filter></defs><rect x="4" y="4" width="1592" height="242" rx="26" fill="#B3121F"/><rect x="30" y="30" width="1540" height="190" rx="14" fill="#231916"/><g class="b0"><circle cx="17" cy="93" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="93" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="17" cy="55" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="55" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="20" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="20" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="58" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="58" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="96" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="96" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="134" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="134" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="172" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="172" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="210" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="210" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="248" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="248" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="286" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="286" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="324" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="324" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="362" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="362" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="400" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="400" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="438" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="438" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="476" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="476" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="514" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="514" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="552" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="552" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="590" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="590" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="628" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="628" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="666" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="666" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="704" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="704" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="742" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="742" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="780" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="780" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="818" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="818" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="856" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="856" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="894" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="894" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="932" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="932" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="970" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="970" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1008" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1008" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1046" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1046" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1084" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1084" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1122" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1122" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1160" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1160" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1198" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1198" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1236" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1236" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1274" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1274" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1312" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1312" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1350" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1350" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1388" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1388" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1426" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1426" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1464" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1464" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1502" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1502" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1540" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1540" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1578" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1578" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1583" cy="55" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="55" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1583" cy="93" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="93" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1583" cy="131" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="131" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1583" cy="169" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="169" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1583" cy="207" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="207" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1578" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1578" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1540" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1540" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1502" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1502" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1464" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1464" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1426" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1426" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1388" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1388" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1350" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1350" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1312" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1312" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1274" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1274" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1236" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1236" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1198" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1198" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1160" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1160" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1122" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1122" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1084" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1084" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1046" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1046" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1008" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1008" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="970" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="970" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="932" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="932" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="894" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="894" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="856" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="856" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="818" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="818" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="780" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="780" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="742" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="742" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="704" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="704" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="666" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="666" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="628" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="628" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="590" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="590" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="552" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="552" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="514" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="514" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="476" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="476" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="438" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="438" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="400" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="400" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="362" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="362" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="324" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="324" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="286" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="286" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="248" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="248" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="210" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="210" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="172" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="172" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="134" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="134" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="96" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="96" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="58" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="58" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="20" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="20" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="17" cy="207" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="207" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="17" cy="169" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="169" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="17" cy="131" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="131" r="5" fill="#FFF1C7"/></g><g class="sign"><g transform="translate(550.1 142.0) scale(0.04600)" fill="#E9B949" opacity=".45" filter="url(#tg)"><use href="#f9-n" x="0"/><use href="#f9-o" x="1104"/><use href="#f9-w" x="2082"/><use href="#f9-s" x="3821"/><use href="#f9-h" x="4643"/><use href="#f9-o" x="5742"/><use href="#f9-w" x="6720"/><use href="#f9-i" x="8179"/><use href="#f9-n" x="8711"/><use href="#f9-g" x="9815"/></g><g transform="translate(550.1 142.0) scale(0.04600)" fill="#F5EBDC"><use href="#f9-n" x="0"/><use href="#f9-o" x="1104"/><use href="#f9-w" x="2082"/><use href="#f9-s" x="3821"/><use href="#f9-h" x="4643"/><use href="#f9-o" x="5742"/><use href="#f9-w" x="6720"/><use href="#f9-i" x="8179"/><use href="#f9-n" x="8711"/><use href="#f9-g" x="9815"/></g><g transform="translate(429.8 192.0) scale(0.00977)" fill="#E9B949"><use href="#i6-two" x="0"/><use href="#i6-two" x="1645"/><use href="#i6-E" x="4174"/><use href="#i6-X" x="5783"/><use href="#i6-A" x="7625"/><use href="#i6-M" x="9484"/><use href="#i6-P" x="11741"/><use href="#i6-L" x="13431"/><use href="#i6-E" x="14958"/><use href="#i6-S" x="16566"/><use href="#i6-periodcentered" x="20036"/><use href="#i6-E" x="22827"/><use href="#i6-V" x="24436"/><use href="#i6-E" x="26295"/><use href="#i6-R" x="27903"/><use href="#i6-Y" x="29552"/><use href="#i6-F" x="32266"/><use href="#i6-R" x="33839"/><use href="#i6-A" x="35543"/><use href="#i6-M" x="37402"/><use href="#i6-E" x="39660"/><use href="#i6-R" x="42153"/><use href="#i6-E" x="43858"/><use href="#i6-N" x="45466"/><use href="#i6-D" x="47390"/><use href="#i6-E" x="49237"/><use href="#i6-R" x="50846"/><use href="#i6-E" x="52551"/><use href="#i6-D" x="54159"/><use href="#i6-B" x="56892"/><use href="#i6-Y" x="58610"/><use href="#i6-S" x="61325"/><use href="#i6-H" x="63025"/><use href="#i6-O" x="64921"/><use href="#i6-W" x="66831"/><use href="#i6-T" x="69288"/><use href="#i6-I" x="71009"/><use href="#i6-M" x="71944"/><use href="#i6-E" x="74202"/></g></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 250" width="1600" height="250" role="img" aria-labelledby="t d"><title id="t">now showing</title><desc id="d">A theatre marquee with chasing lights. Now showing: 32 videos, every frame rendered by showtime.</desc><style>.b0,.b1,.b2{animation:chase 1.2s linear infinite}.b1{animation-delay:-.4s}.b2{animation-delay:-.8s}@keyframes chase{0%,100%{opacity:1}33%{opacity:.25}66%{opacity:.45}}.sign{animation:on 1.6s .2s both}@keyframes on{0%{opacity:.2}30%{opacity:.9}38%{opacity:.4}55%,100%{opacity:1}}@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}</style><defs><path id="i6-A" d="M50 0 570 -1490H909L1441 0H1148L883 -774Q844 -894 802 -1046Q760 -1197 709 -1390H765Q715 -1195 674 -1042Q634 -890 598 -774L342 0ZM353 -369V-584H1138V-369Z"/><path id="i6-B" d="M150 0V-1490H720Q881 -1490 988 -1439Q1095 -1388 1148 -1301Q1201 -1214 1201 -1103Q1201 -1012 1166 -948Q1131 -883 1072 -843Q1014 -803 941 -786V-771Q1020 -767 1093 -723Q1166 -679 1212 -599Q1259 -519 1259 -406Q1259 -290 1203 -198Q1147 -106 1034 -53Q922 0 751 0ZM417 -223H709Q857 -223 922 -280Q988 -337 988 -426Q988 -493 955 -546Q922 -600 862 -631Q801 -662 718 -662H417ZM417 -855H686Q757 -855 813 -881Q869 -907 902 -955Q934 -1003 934 -1069Q934 -1156 873 -1212Q812 -1268 692 -1268H417Z"/><path id="i6-D" d="M654 0H277V-231H641Q797 -231 902 -288Q1006 -346 1059 -460Q1112 -575 1112 -747Q1112 -917 1059 -1031Q1006 -1145 904 -1202Q801 -1259 648 -1259H269V-1490H664Q886 -1490 1045 -1401Q1204 -1312 1290 -1145Q1375 -978 1375 -747Q1375 -514 1290 -346Q1204 -179 1042 -90Q881 0 654 0ZM417 -1490V0H150V-1490Z"/><path id="i6-E" d="M150 0V-1490H1118V-1265H417V-863H1066V-641H417V-225H1122V0Z"/><path id="i6-F" d="M150 0V-1490H1104V-1265H417V-818H1037V-596H417V0Z"/><path id="i6-H" d="M150 0V-1490H417V-874H1110V-1490H1377V0H1110V-649H417V0Z"/><path id="i6-I" d="M417 -1490V0H150V-1490Z"/><path id="i6-L" d="M150 0V-1490H417V-225H1075V0Z"/><path id="i6-M" d="M150 0V-1490H552L835 -721Q850 -678 868 -610Q887 -543 906 -465Q926 -387 944 -312Q961 -238 973 -181H919Q931 -237 948 -310Q966 -384 986 -462Q1005 -541 1024 -609Q1042 -677 1056 -721L1336 -1490H1739V0H1473V-752Q1473 -800 1474 -868Q1475 -936 1477 -1014Q1479 -1092 1481 -1172Q1483 -1251 1483 -1323H1502Q1482 -1244 1458 -1162Q1435 -1079 1412 -1002Q1389 -924 1368 -859Q1348 -794 1333 -752L1058 0H831L552 -752Q537 -794 516 -858Q496 -921 472 -998Q449 -1075 426 -1158Q402 -1242 379 -1323H401Q402 -1256 404 -1178Q406 -1099 408 -1020Q409 -941 410 -872Q412 -802 412 -752V0Z"/><path id="i6-N" d="M150 0V-1490H452L967 -669Q999 -618 1035 -554Q1071 -489 1110 -410Q1149 -330 1187 -233H1157Q1150 -317 1144 -406Q1139 -494 1136 -574Q1134 -653 1134 -708V-1490H1405V0H1102L637 -739Q593 -810 554 -879Q515 -948 470 -1035Q425 -1122 361 -1245H399Q405 -1136 410 -1038Q415 -941 418 -864Q422 -787 422 -740V0Z"/><path id="i6-O" d="M788 20Q592 20 437 -71Q282 -162 192 -333Q103 -504 103 -744Q103 -985 192 -1156Q282 -1328 437 -1419Q592 -1510 788 -1510Q983 -1510 1138 -1419Q1292 -1328 1382 -1156Q1471 -985 1471 -744Q1471 -504 1382 -332Q1292 -161 1138 -70Q983 20 788 20ZM788 -219Q909 -219 1002 -280Q1096 -340 1149 -458Q1202 -575 1202 -744Q1202 -915 1149 -1032Q1096 -1150 1002 -1210Q909 -1271 788 -1271Q666 -1271 572 -1210Q478 -1149 424 -1032Q371 -914 371 -744Q371 -575 424 -458Q478 -341 572 -280Q666 -219 788 -219Z"/><path id="i6-P" d="M150 0V-1490H707Q878 -1490 995 -1426Q1112 -1362 1172 -1250Q1232 -1139 1232 -997Q1232 -854 1172 -743Q1111 -632 993 -568Q875 -504 703 -504H334V-724H668Q769 -724 834 -759Q898 -794 928 -856Q959 -918 959 -997Q959 -1076 928 -1137Q898 -1198 833 -1232Q768 -1266 666 -1266H417V0Z"/><path id="i6-R" d="M150 0V-1490H707Q878 -1490 995 -1430Q1112 -1370 1172 -1262Q1232 -1155 1232 -1013Q1232 -871 1172 -766Q1111 -661 993 -604Q875 -547 703 -547H305V-768H668Q769 -768 833 -796Q897 -825 928 -880Q959 -935 959 -1013Q959 -1093 928 -1150Q897 -1206 832 -1236Q768 -1266 666 -1266H417V0ZM988 0 626 -676H918L1287 0Z"/><path id="i6-S" d="M673 23Q500 23 372 -31Q245 -85 173 -188Q101 -291 95 -438H358Q365 -360 407 -308Q449 -256 518 -230Q587 -205 671 -205Q759 -205 826 -232Q894 -259 932 -308Q970 -356 970 -420Q970 -478 936 -516Q903 -554 842 -580Q782 -607 701 -627L532 -671Q345 -719 240 -816Q136 -913 136 -1071Q136 -1203 207 -1302Q278 -1401 401 -1456Q524 -1510 680 -1510Q839 -1510 959 -1455Q1079 -1400 1146 -1303Q1214 -1206 1217 -1082H958Q948 -1178 872 -1230Q797 -1283 676 -1283Q592 -1283 532 -1258Q471 -1232 438 -1188Q406 -1144 406 -1087Q406 -1025 444 -985Q483 -945 542 -921Q600 -897 660 -882L799 -846Q882 -826 960 -793Q1038 -760 1100 -710Q1163 -659 1200 -587Q1237 -515 1237 -418Q1237 -287 1170 -188Q1103 -88 977 -32Q851 23 673 23Z"/><path id="i6-T" d="M83 -1265V-1490H1269V-1265H810V0H543V-1265Z"/><path id="i6-V" d="M581 0 50 -1490H343L607 -716Q644 -600 687 -448Q730 -297 780 -106H724Q774 -300 816 -450Q857 -600 893 -716L1149 -1490H1441L919 0Z"/><path id="i6-W" d="M452 0 50 -1490H337L531 -697Q551 -611 568 -516Q586 -421 602 -325Q619 -229 634 -137H591Q608 -229 625 -325Q642 -421 661 -516Q680 -611 701 -697L903 -1490H1186L1387 -697Q1409 -611 1428 -516Q1446 -421 1464 -325Q1481 -229 1499 -137H1453Q1469 -229 1486 -325Q1502 -421 1520 -516Q1538 -611 1558 -697L1751 -1490H2039L1636 0H1330L1113 -823Q1083 -938 1060 -1073Q1038 -1208 1012 -1359H1076Q1048 -1213 1028 -1080Q1008 -948 975 -823L758 0Z"/><path id="i6-X" d="M53 0 657 -861V-660L96 -1490H405L586 -1218Q632 -1148 662 -1094Q692 -1040 717 -990Q742 -939 772 -880H707Q738 -939 763 -989Q788 -1039 818 -1094Q849 -1148 896 -1218L1080 -1490H1382L827 -673V-867L1421 0H1107L881 -334Q840 -397 814 -441Q787 -485 765 -526Q743 -567 714 -621H760Q732 -569 710 -528Q688 -487 661 -442Q634 -397 590 -334L360 0Z"/><path id="i6-Y" d="M600 0V-577L50 -1490H362L628 -1020Q670 -946 703 -876Q736 -806 771 -705H701Q735 -807 768 -878Q800 -949 840 -1020L1101 -1490H1411L867 -577V0Z"/><path id="i6-periodcentered" d="M326 -547Q259 -547 212 -593Q166 -639 166 -707Q166 -774 212 -820Q259 -866 326 -866Q394 -866 440 -820Q487 -774 487 -707Q487 -639 440 -593Q394 -547 326 -547Z"/><path id="i6-two" d="M134 0V-192L651 -701Q724 -776 774 -834Q823 -892 848 -946Q874 -1001 874 -1065Q874 -1135 842 -1186Q809 -1237 754 -1264Q698 -1292 627 -1292Q552 -1292 496 -1262Q441 -1232 411 -1176Q381 -1121 381 -1044H126Q126 -1185 190 -1290Q255 -1395 368 -1452Q482 -1510 630 -1510Q779 -1510 892 -1454Q1005 -1398 1068 -1300Q1131 -1203 1131 -1078Q1131 -995 1100 -916Q1069 -837 989 -738Q909 -638 763 -498L504 -234V-223H1153V0Z"/><path id="f9-g" d="M637 -98Q543 -109 494 -120Q445 -132 427 -146Q409 -160 409 -180Q409 -200 420 -212Q431 -224 441 -224L439 -230Q325 -222 257 -194Q189 -167 159 -124Q129 -81 129 -26Q129 34 162 70Q195 105 268 126Q341 147 461 164Q577 180 641 202Q705 223 730 254Q755 285 755 328Q755 377 732 407Q708 437 660 450Q613 464 541 464Q408 464 336 386Q265 308 265 178Q265 158 269 142Q273 126 277 120V110Q138 123 78 162Q17 202 17 286Q17 347 68 393Q118 439 231 464Q344 490 531 490Q777 490 910 400Q1043 310 1043 166Q1043 87 1008 35Q972 -17 884 -48Q795 -80 637 -98ZM659 -870 679 -878Q693 -925 713 -948Q733 -972 764 -972Q792 -972 812 -952Q833 -931 853 -904Q873 -877 898 -856Q923 -836 960 -836Q1022 -836 1056 -872Q1089 -909 1089 -974Q1089 -1048 1048 -1094Q1007 -1140 924 -1140Q827 -1140 766 -1072Q704 -1004 667 -894ZM987 -574Q987 -662 934 -740Q882 -818 780 -867Q679 -916 533 -916Q382 -916 272 -867Q162 -818 102 -734Q43 -651 43 -546Q43 -457 102 -382Q160 -306 268 -260Q377 -214 527 -214Q659 -214 763 -262Q867 -310 927 -392Q987 -473 987 -574ZM465 -890Q506 -896 548 -816Q590 -737 612 -582Q634 -425 616 -338Q597 -250 555 -244Q527 -240 498 -274Q469 -309 446 -380Q422 -450 407 -554Q393 -657 396 -731Q400 -805 418 -846Q436 -886 465 -890Z"/><path id="f9-h" d="M462 -1496V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q536 -14 536 -8Q536 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-1366Q100 -1374 96 -1378Q92 -1382 83 -1382H44Q37 -1382 34 -1384Q32 -1387 32 -1391Q32 -1395 35 -1397Q38 -1399 42 -1400L421 -1505Q433 -1508 438 -1509Q442 -1510 448 -1510Q455 -1510 458 -1506Q462 -1502 462 -1496ZM432 -679 418 -694 458 -729Q563 -821 646 -868Q729 -916 794 -916Q883 -916 932 -866Q982 -815 994 -702L1062 -64Q1064 -48 1068 -38Q1073 -29 1086 -26L1124 -17Q1131 -16 1134 -14Q1136 -11 1136 -8Q1136 -4 1134 -2Q1131 0 1126 0H627Q617 0 617 -8Q617 -14 629 -17L667 -26Q681 -29 687 -38Q693 -48 691 -64L638 -664Q634 -713 618 -736Q602 -758 566 -758Q541 -758 518 -746Q494 -733 470 -712Z"/><path id="f9-i" d="M462 -906V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q531 -16 534 -14Q536 -11 536 -8Q536 -4 534 -2Q531 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-776Q100 -784 96 -788Q92 -792 83 -792H44Q37 -792 34 -794Q32 -797 32 -801Q32 -805 35 -807Q38 -809 42 -810L421 -915Q433 -918 438 -919Q442 -920 448 -920Q455 -920 458 -916Q462 -912 462 -906ZM277 -977Q186 -977 129 -1035Q72 -1093 72 -1177Q72 -1261 129 -1319Q186 -1377 277 -1377Q369 -1377 428 -1319Q486 -1261 486 -1177Q486 -1093 428 -1035Q369 -977 277 -977Z"/><path id="f9-n" d="M462 -906V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q536 -14 536 -8Q536 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-776Q100 -784 96 -788Q92 -792 83 -792H44Q37 -792 34 -794Q32 -797 32 -801Q32 -805 35 -807Q38 -809 42 -810L421 -915Q433 -918 438 -919Q442 -920 448 -920Q455 -920 458 -916Q462 -912 462 -906ZM432 -679 418 -694 458 -729Q563 -821 646 -868Q729 -916 794 -916Q883 -916 932 -866Q982 -815 994 -702L1062 -64Q1064 -48 1068 -38Q1073 -29 1086 -26L1124 -17Q1131 -16 1134 -14Q1136 -11 1136 -8Q1136 -4 1134 -2Q1131 0 1126 0H627Q617 0 617 -8Q617 -14 629 -17L667 -26Q681 -29 687 -38Q693 -48 691 -64L638 -664Q634 -713 618 -736Q602 -758 566 -758Q541 -758 518 -746Q494 -733 470 -712Z"/><path id="f9-o" d="M532 -916Q675 -916 784 -856Q894 -796 956 -690Q1018 -583 1018 -444Q1018 -308 954 -204Q889 -99 776 -40Q663 20 516 20Q373 20 264 -39Q154 -98 92 -202Q30 -307 30 -444Q30 -580 96 -686Q161 -793 274 -854Q388 -916 532 -916ZM589 0Q625 -5 642 -56Q660 -107 659 -208Q658 -309 636 -462Q614 -615 588 -712Q561 -810 530 -854Q499 -899 462 -893Q427 -887 410 -836Q392 -785 394 -685Q396 -585 417 -432Q439 -279 465 -182Q491 -84 522 -40Q553 5 589 0Z"/><path id="f9-s" d="M432 -8Q486 -8 516 -34Q546 -61 546 -104Q546 -137 530 -164Q515 -192 476 -216Q437 -241 368 -264Q236 -309 162 -362Q88 -415 58 -480Q28 -545 28 -626Q28 -767 123 -842Q218 -916 378 -916Q441 -916 482 -904Q522 -893 544 -882Q565 -870 572 -870Q584 -870 618 -882Q652 -893 686 -904Q719 -916 730 -916Q735 -916 740 -914Q745 -911 746 -902L788 -584Q790 -574 788 -568Q787 -562 784 -560Q781 -559 778 -560Q775 -562 772 -566Q696 -692 634 -763Q573 -834 516 -863Q458 -892 394 -892Q337 -892 308 -863Q280 -834 280 -786Q280 -749 298 -718Q316 -688 362 -662Q409 -636 496 -612Q611 -579 678 -530Q746 -480 775 -418Q804 -355 804 -282Q804 -188 758 -120Q711 -53 634 -16Q557 20 464 20Q408 20 367 6Q326 -8 302 -22Q277 -36 272 -36Q264 -36 232 -24Q201 -11 168 2Q135 14 124 14Q117 14 110 8Q104 1 102 -14L68 -276Q67 -290 68 -296Q70 -301 74 -304Q76 -306 79 -304Q82 -301 86 -296Q184 -143 266 -76Q348 -8 432 -8Z"/><path id="f9-w" d="M528 0H375Q366 0 360 -4Q354 -7 351 -16L72 -840Q68 -853 62 -860Q55 -867 44 -870L6 -879Q-1 -881 -4 -883Q-6 -885 -6 -888Q-6 -893 -3 -894Q0 -896 4 -896H538Q543 -896 546 -894Q548 -893 548 -888Q548 -885 546 -883Q543 -881 536 -879L488 -870Q466 -866 461 -852Q456 -837 463 -816L629 -304L550 -92L756 -770L779 -764L550 -14Q548 -7 542 -4Q536 0 528 0ZM1132 0H979Q970 0 964 -4Q958 -7 955 -16L683 -840Q677 -859 671 -866Q665 -873 658 -874L637 -879Q630 -881 628 -883Q625 -885 625 -888Q625 -896 635 -896H1169Q1179 -896 1179 -888Q1179 -885 1176 -883Q1174 -881 1167 -879L1116 -867Q1080 -859 1073 -849Q1066 -839 1073 -816L1234 -302L1153 -92L1357 -770Q1369 -809 1356 -836Q1343 -863 1310 -870L1272 -879Q1265 -881 1262 -883Q1260 -885 1260 -888Q1260 -893 1263 -894Q1266 -896 1270 -896H1488Q1493 -896 1496 -894Q1498 -893 1498 -888Q1498 -885 1496 -883Q1493 -881 1486 -879L1463 -870Q1438 -860 1415 -832Q1392 -804 1380 -764L1154 -14Q1152 -7 1146 -4Q1140 0 1132 0Z"/><filter id="bg" x="-200%" y="-200%" width="500%" height="500%"><feGaussianBlur stdDeviation="4"/></filter><filter id="tg" x="-10%" y="-40%" width="120%" height="180%"><feGaussianBlur stdDeviation="10"/></filter></defs><rect x="4" y="4" width="1592" height="242" rx="26" fill="#B3121F"/><rect x="30" y="30" width="1540" height="190" rx="14" fill="#231916"/><g class="b0"><circle cx="17" cy="93" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="93" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="17" cy="55" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="55" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="20" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="20" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="58" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="58" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="96" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="96" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="134" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="134" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="172" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="172" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="210" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="210" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="248" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="248" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="286" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="286" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="324" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="324" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="362" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="362" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="400" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="400" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="438" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="438" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="476" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="476" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="514" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="514" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="552" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="552" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="590" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="590" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="628" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="628" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="666" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="666" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="704" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="704" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="742" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="742" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="780" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="780" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="818" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="818" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="856" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="856" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="894" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="894" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="932" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="932" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="970" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="970" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1008" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1008" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1046" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1046" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1084" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1084" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1122" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1122" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1160" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1160" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1198" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1198" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1236" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1236" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1274" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1274" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1312" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1312" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1350" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1350" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1388" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1388" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1426" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1426" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1464" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1464" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1502" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1502" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1540" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1540" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1578" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1578" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1583" cy="55" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="55" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1583" cy="93" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="93" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1583" cy="131" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="131" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1583" cy="169" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="169" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1583" cy="207" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="207" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1578" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1578" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1540" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1540" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1502" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1502" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1464" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1464" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1426" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1426" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1388" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1388" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1350" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1350" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1312" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1312" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1274" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1274" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1236" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1236" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1198" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1198" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1160" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1160" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1122" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1122" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1084" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1084" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1046" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1046" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1008" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1008" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="970" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="970" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="932" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="932" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="894" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="894" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="856" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="856" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="818" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="818" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="780" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="780" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="742" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="742" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="704" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="704" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="666" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="666" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="628" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="628" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="590" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="590" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="552" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="552" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="514" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="514" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="476" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="476" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="438" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="438" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="400" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="400" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="362" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="362" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="324" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="324" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="286" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="286" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="248" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="248" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="210" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="210" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="172" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="172" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="134" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="134" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="96" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="96" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="58" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="58" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="20" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="20" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="17" cy="207" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="207" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="17" cy="169" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="169" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="17" cy="131" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="131" r="5" fill="#FFF1C7"/></g><g class="sign"><g transform="translate(550.1 142.0) scale(0.04600)" fill="#E9B949" opacity=".45" filter="url(#tg)"><use href="#f9-n" x="0"/><use href="#f9-o" x="1104"/><use href="#f9-w" x="2082"/><use href="#f9-s" x="3821"/><use href="#f9-h" x="4643"/><use href="#f9-o" x="5742"/><use href="#f9-w" x="6720"/><use href="#f9-i" x="8179"/><use href="#f9-n" x="8711"/><use href="#f9-g" x="9815"/></g><g transform="translate(550.1 142.0) scale(0.04600)" fill="#F5EBDC"><use href="#f9-n" x="0"/><use href="#f9-o" x="1104"/><use href="#f9-w" x="2082"/><use href="#f9-s" x="3821"/><use href="#f9-h" x="4643"/><use href="#f9-o" x="5742"/><use href="#f9-w" x="6720"/><use href="#f9-i" x="8179"/><use href="#f9-n" x="8711"/><use href="#f9-g" x="9815"/></g><g transform="translate(429.8 192.0) scale(0.00977)" fill="#E9B949"><use href="#i6-two" x="0"/><use href="#i6-two" x="1645"/><use href="#i6-E" x="4174"/><use href="#i6-X" x="5783"/><use href="#i6-A" x="7625"/><use href="#i6-M" x="9484"/><use href="#i6-P" x="11741"/><use href="#i6-L" x="13431"/><use href="#i6-E" x="14958"/><use href="#i6-S" x="16566"/><use href="#i6-periodcentered" x="20036"/><use href="#i6-E" x="22827"/><use href="#i6-V" x="24436"/><use href="#i6-E" x="26295"/><use href="#i6-R" x="27903"/><use href="#i6-Y" x="29552"/><use href="#i6-F" x="32266"/><use href="#i6-R" x="33839"/><use href="#i6-A" x="35543"/><use href="#i6-M" x="37402"/><use href="#i6-E" x="39660"/><use href="#i6-R" x="42153"/><use href="#i6-E" x="43858"/><use href="#i6-N" x="45466"/><use href="#i6-D" x="47390"/><use href="#i6-E" x="49237"/><use href="#i6-R" x="50846"/><use href="#i6-E" x="52551"/><use href="#i6-D" x="54159"/><use href="#i6-B" x="56892"/><use href="#i6-Y" x="58610"/><use href="#i6-S" x="61325"/><use href="#i6-H" x="63025"/><use href="#i6-O" x="64921"/><use href="#i6-W" x="66831"/><use href="#i6-T" x="69288"/><use href="#i6-I" x="71009"/><use href="#i6-M" x="71944"/><use href="#i6-E" x="74202"/></g></g></svg>\ No newline at end of filediff --git a/assets/readme/marquee-light.svg b/assets/readme/marquee-light.svgindex 7793b87..f8d94d6 100644--- a/assets/readme/marquee-light.svg+++ b/assets/readme/marquee-light.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 250" width="1600" height="250" role="img" aria-labelledby="t d"><title id="t">now showing</title><desc id="d">A theatre marquee with chasing lights. Now showing: 23 examples, every frame rendered by showtime.</desc><style>.b0,.b1,.b2{animation:chase 1.2s linear infinite}.b1{animation-delay:-.4s}.b2{animation-delay:-.8s}@keyframes chase{0%,100%{opacity:1}33%{opacity:.25}66%{opacity:.45}}.sign{animation:on 1.6s .2s both}@keyframes on{0%{opacity:.2}30%{opacity:.9}38%{opacity:.4}55%,100%{opacity:1}}@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}</style><defs><path id="i6-A" d="M50 0 570 -1490H909L1441 0H1148L883 -774Q844 -894 802 -1046Q760 -1197 709 -1390H765Q715 -1195 674 -1042Q634 -890 598 -774L342 0ZM353 -369V-584H1138V-369Z"/><path id="i6-B" d="M150 0V-1490H720Q881 -1490 988 -1439Q1095 -1388 1148 -1301Q1201 -1214 1201 -1103Q1201 -1012 1166 -948Q1131 -883 1072 -843Q1014 -803 941 -786V-771Q1020 -767 1093 -723Q1166 -679 1212 -599Q1259 -519 1259 -406Q1259 -290 1203 -198Q1147 -106 1034 -53Q922 0 751 0ZM417 -223H709Q857 -223 922 -280Q988 -337 988 -426Q988 -493 955 -546Q922 -600 862 -631Q801 -662 718 -662H417ZM417 -855H686Q757 -855 813 -881Q869 -907 902 -955Q934 -1003 934 -1069Q934 -1156 873 -1212Q812 -1268 692 -1268H417Z"/><path id="i6-D" d="M654 0H277V-231H641Q797 -231 902 -288Q1006 -346 1059 -460Q1112 -575 1112 -747Q1112 -917 1059 -1031Q1006 -1145 904 -1202Q801 -1259 648 -1259H269V-1490H664Q886 -1490 1045 -1401Q1204 -1312 1290 -1145Q1375 -978 1375 -747Q1375 -514 1290 -346Q1204 -179 1042 -90Q881 0 654 0ZM417 -1490V0H150V-1490Z"/><path id="i6-E" d="M150 0V-1490H1118V-1265H417V-863H1066V-641H417V-225H1122V0Z"/><path id="i6-F" d="M150 0V-1490H1104V-1265H417V-818H1037V-596H417V0Z"/><path id="i6-H" d="M150 0V-1490H417V-874H1110V-1490H1377V0H1110V-649H417V0Z"/><path id="i6-I" d="M417 -1490V0H150V-1490Z"/><path id="i6-L" d="M150 0V-1490H417V-225H1075V0Z"/><path id="i6-M" d="M150 0V-1490H552L835 -721Q850 -678 868 -610Q887 -543 906 -465Q926 -387 944 -312Q961 -238 973 -181H919Q931 -237 948 -310Q966 -384 986 -462Q1005 -541 1024 -609Q1042 -677 1056 -721L1336 -1490H1739V0H1473V-752Q1473 -800 1474 -868Q1475 -936 1477 -1014Q1479 -1092 1481 -1172Q1483 -1251 1483 -1323H1502Q1482 -1244 1458 -1162Q1435 -1079 1412 -1002Q1389 -924 1368 -859Q1348 -794 1333 -752L1058 0H831L552 -752Q537 -794 516 -858Q496 -921 472 -998Q449 -1075 426 -1158Q402 -1242 379 -1323H401Q402 -1256 404 -1178Q406 -1099 408 -1020Q409 -941 410 -872Q412 -802 412 -752V0Z"/><path id="i6-N" d="M150 0V-1490H452L967 -669Q999 -618 1035 -554Q1071 -489 1110 -410Q1149 -330 1187 -233H1157Q1150 -317 1144 -406Q1139 -494 1136 -574Q1134 -653 1134 -708V-1490H1405V0H1102L637 -739Q593 -810 554 -879Q515 -948 470 -1035Q425 -1122 361 -1245H399Q405 -1136 410 -1038Q415 -941 418 -864Q422 -787 422 -740V0Z"/><path id="i6-O" d="M788 20Q592 20 437 -71Q282 -162 192 -333Q103 -504 103 -744Q103 -985 192 -1156Q282 -1328 437 -1419Q592 -1510 788 -1510Q983 -1510 1138 -1419Q1292 -1328 1382 -1156Q1471 -985 1471 -744Q1471 -504 1382 -332Q1292 -161 1138 -70Q983 20 788 20ZM788 -219Q909 -219 1002 -280Q1096 -340 1149 -458Q1202 -575 1202 -744Q1202 -915 1149 -1032Q1096 -1150 1002 -1210Q909 -1271 788 -1271Q666 -1271 572 -1210Q478 -1149 424 -1032Q371 -914 371 -744Q371 -575 424 -458Q478 -341 572 -280Q666 -219 788 -219Z"/><path id="i6-P" d="M150 0V-1490H707Q878 -1490 995 -1426Q1112 -1362 1172 -1250Q1232 -1139 1232 -997Q1232 -854 1172 -743Q1111 -632 993 -568Q875 -504 703 -504H334V-724H668Q769 -724 834 -759Q898 -794 928 -856Q959 -918 959 -997Q959 -1076 928 -1137Q898 -1198 833 -1232Q768 -1266 666 -1266H417V0Z"/><path id="i6-R" d="M150 0V-1490H707Q878 -1490 995 -1430Q1112 -1370 1172 -1262Q1232 -1155 1232 -1013Q1232 -871 1172 -766Q1111 -661 993 -604Q875 -547 703 -547H305V-768H668Q769 -768 833 -796Q897 -825 928 -880Q959 -935 959 -1013Q959 -1093 928 -1150Q897 -1206 832 -1236Q768 -1266 666 -1266H417V0ZM988 0 626 -676H918L1287 0Z"/><path id="i6-S" d="M673 23Q500 23 372 -31Q245 -85 173 -188Q101 -291 95 -438H358Q365 -360 407 -308Q449 -256 518 -230Q587 -205 671 -205Q759 -205 826 -232Q894 -259 932 -308Q970 -356 970 -420Q970 -478 936 -516Q903 -554 842 -580Q782 -607 701 -627L532 -671Q345 -719 240 -816Q136 -913 136 -1071Q136 -1203 207 -1302Q278 -1401 401 -1456Q524 -1510 680 -1510Q839 -1510 959 -1455Q1079 -1400 1146 -1303Q1214 -1206 1217 -1082H958Q948 -1178 872 -1230Q797 -1283 676 -1283Q592 -1283 532 -1258Q471 -1232 438 -1188Q406 -1144 406 -1087Q406 -1025 444 -985Q483 -945 542 -921Q600 -897 660 -882L799 -846Q882 -826 960 -793Q1038 -760 1100 -710Q1163 -659 1200 -587Q1237 -515 1237 -418Q1237 -287 1170 -188Q1103 -88 977 -32Q851 23 673 23Z"/><path id="i6-T" d="M83 -1265V-1490H1269V-1265H810V0H543V-1265Z"/><path id="i6-V" d="M581 0 50 -1490H343L607 -716Q644 -600 687 -448Q730 -297 780 -106H724Q774 -300 816 -450Q857 -600 893 -716L1149 -1490H1441L919 0Z"/><path id="i6-W" d="M452 0 50 -1490H337L531 -697Q551 -611 568 -516Q586 -421 602 -325Q619 -229 634 -137H591Q608 -229 625 -325Q642 -421 661 -516Q680 -611 701 -697L903 -1490H1186L1387 -697Q1409 -611 1428 -516Q1446 -421 1464 -325Q1481 -229 1499 -137H1453Q1469 -229 1486 -325Q1502 -421 1520 -516Q1538 -611 1558 -697L1751 -1490H2039L1636 0H1330L1113 -823Q1083 -938 1060 -1073Q1038 -1208 1012 -1359H1076Q1048 -1213 1028 -1080Q1008 -948 975 -823L758 0Z"/><path id="i6-X" d="M53 0 657 -861V-660L96 -1490H405L586 -1218Q632 -1148 662 -1094Q692 -1040 717 -990Q742 -939 772 -880H707Q738 -939 763 -989Q788 -1039 818 -1094Q849 -1148 896 -1218L1080 -1490H1382L827 -673V-867L1421 0H1107L881 -334Q840 -397 814 -441Q787 -485 765 -526Q743 -567 714 -621H760Q732 -569 710 -528Q688 -487 661 -442Q634 -397 590 -334L360 0Z"/><path id="i6-Y" d="M600 0V-577L50 -1490H362L628 -1020Q670 -946 703 -876Q736 -806 771 -705H701Q735 -807 768 -878Q800 -949 840 -1020L1101 -1490H1411L867 -577V0Z"/><path id="i6-periodcentered" d="M326 -547Q259 -547 212 -593Q166 -639 166 -707Q166 -774 212 -820Q259 -866 326 -866Q394 -866 440 -820Q487 -774 487 -707Q487 -639 440 -593Q394 -547 326 -547Z"/><path id="i6-two" d="M134 0V-192L651 -701Q724 -776 774 -834Q823 -892 848 -946Q874 -1001 874 -1065Q874 -1135 842 -1186Q809 -1237 754 -1264Q698 -1292 627 -1292Q552 -1292 496 -1262Q441 -1232 411 -1176Q381 -1121 381 -1044H126Q126 -1185 190 -1290Q255 -1395 368 -1452Q482 -1510 630 -1510Q779 -1510 892 -1454Q1005 -1398 1068 -1300Q1131 -1203 1131 -1078Q1131 -995 1100 -916Q1069 -837 989 -738Q909 -638 763 -498L504 -234V-223H1153V0Z"/><path id="f9-g" d="M637 -98Q543 -109 494 -120Q445 -132 427 -146Q409 -160 409 -180Q409 -200 420 -212Q431 -224 441 -224L439 -230Q325 -222 257 -194Q189 -167 159 -124Q129 -81 129 -26Q129 34 162 70Q195 105 268 126Q341 147 461 164Q577 180 641 202Q705 223 730 254Q755 285 755 328Q755 377 732 407Q708 437 660 450Q613 464 541 464Q408 464 336 386Q265 308 265 178Q265 158 269 142Q273 126 277 120V110Q138 123 78 162Q17 202 17 286Q17 347 68 393Q118 439 231 464Q344 490 531 490Q777 490 910 400Q1043 310 1043 166Q1043 87 1008 35Q972 -17 884 -48Q795 -80 637 -98ZM659 -870 679 -878Q693 -925 713 -948Q733 -972 764 -972Q792 -972 812 -952Q833 -931 853 -904Q873 -877 898 -856Q923 -836 960 -836Q1022 -836 1056 -872Q1089 -909 1089 -974Q1089 -1048 1048 -1094Q1007 -1140 924 -1140Q827 -1140 766 -1072Q704 -1004 667 -894ZM987 -574Q987 -662 934 -740Q882 -818 780 -867Q679 -916 533 -916Q382 -916 272 -867Q162 -818 102 -734Q43 -651 43 -546Q43 -457 102 -382Q160 -306 268 -260Q377 -214 527 -214Q659 -214 763 -262Q867 -310 927 -392Q987 -473 987 -574ZM465 -890Q506 -896 548 -816Q590 -737 612 -582Q634 -425 616 -338Q597 -250 555 -244Q527 -240 498 -274Q469 -309 446 -380Q422 -450 407 -554Q393 -657 396 -731Q400 -805 418 -846Q436 -886 465 -890Z"/><path id="f9-h" d="M462 -1496V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q536 -14 536 -8Q536 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-1366Q100 -1374 96 -1378Q92 -1382 83 -1382H44Q37 -1382 34 -1384Q32 -1387 32 -1391Q32 -1395 35 -1397Q38 -1399 42 -1400L421 -1505Q433 -1508 438 -1509Q442 -1510 448 -1510Q455 -1510 458 -1506Q462 -1502 462 -1496ZM432 -679 418 -694 458 -729Q563 -821 646 -868Q729 -916 794 -916Q883 -916 932 -866Q982 -815 994 -702L1062 -64Q1064 -48 1068 -38Q1073 -29 1086 -26L1124 -17Q1131 -16 1134 -14Q1136 -11 1136 -8Q1136 -4 1134 -2Q1131 0 1126 0H627Q617 0 617 -8Q617 -14 629 -17L667 -26Q681 -29 687 -38Q693 -48 691 -64L638 -664Q634 -713 618 -736Q602 -758 566 -758Q541 -758 518 -746Q494 -733 470 -712Z"/><path id="f9-i" d="M462 -906V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q531 -16 534 -14Q536 -11 536 -8Q536 -4 534 -2Q531 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-776Q100 -784 96 -788Q92 -792 83 -792H44Q37 -792 34 -794Q32 -797 32 -801Q32 -805 35 -807Q38 -809 42 -810L421 -915Q433 -918 438 -919Q442 -920 448 -920Q455 -920 458 -916Q462 -912 462 -906ZM277 -977Q186 -977 129 -1035Q72 -1093 72 -1177Q72 -1261 129 -1319Q186 -1377 277 -1377Q369 -1377 428 -1319Q486 -1261 486 -1177Q486 -1093 428 -1035Q369 -977 277 -977Z"/><path id="f9-n" d="M462 -906V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q536 -14 536 -8Q536 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-776Q100 -784 96 -788Q92 -792 83 -792H44Q37 -792 34 -794Q32 -797 32 -801Q32 -805 35 -807Q38 -809 42 -810L421 -915Q433 -918 438 -919Q442 -920 448 -920Q455 -920 458 -916Q462 -912 462 -906ZM432 -679 418 -694 458 -729Q563 -821 646 -868Q729 -916 794 -916Q883 -916 932 -866Q982 -815 994 -702L1062 -64Q1064 -48 1068 -38Q1073 -29 1086 -26L1124 -17Q1131 -16 1134 -14Q1136 -11 1136 -8Q1136 -4 1134 -2Q1131 0 1126 0H627Q617 0 617 -8Q617 -14 629 -17L667 -26Q681 -29 687 -38Q693 -48 691 -64L638 -664Q634 -713 618 -736Q602 -758 566 -758Q541 -758 518 -746Q494 -733 470 -712Z"/><path id="f9-o" d="M532 -916Q675 -916 784 -856Q894 -796 956 -690Q1018 -583 1018 -444Q1018 -308 954 -204Q889 -99 776 -40Q663 20 516 20Q373 20 264 -39Q154 -98 92 -202Q30 -307 30 -444Q30 -580 96 -686Q161 -793 274 -854Q388 -916 532 -916ZM589 0Q625 -5 642 -56Q660 -107 659 -208Q658 -309 636 -462Q614 -615 588 -712Q561 -810 530 -854Q499 -899 462 -893Q427 -887 410 -836Q392 -785 394 -685Q396 -585 417 -432Q439 -279 465 -182Q491 -84 522 -40Q553 5 589 0Z"/><path id="f9-s" d="M432 -8Q486 -8 516 -34Q546 -61 546 -104Q546 -137 530 -164Q515 -192 476 -216Q437 -241 368 -264Q236 -309 162 -362Q88 -415 58 -480Q28 -545 28 -626Q28 -767 123 -842Q218 -916 378 -916Q441 -916 482 -904Q522 -893 544 -882Q565 -870 572 -870Q584 -870 618 -882Q652 -893 686 -904Q719 -916 730 -916Q735 -916 740 -914Q745 -911 746 -902L788 -584Q790 -574 788 -568Q787 -562 784 -560Q781 -559 778 -560Q775 -562 772 -566Q696 -692 634 -763Q573 -834 516 -863Q458 -892 394 -892Q337 -892 308 -863Q280 -834 280 -786Q280 -749 298 -718Q316 -688 362 -662Q409 -636 496 -612Q611 -579 678 -530Q746 -480 775 -418Q804 -355 804 -282Q804 -188 758 -120Q711 -53 634 -16Q557 20 464 20Q408 20 367 6Q326 -8 302 -22Q277 -36 272 -36Q264 -36 232 -24Q201 -11 168 2Q135 14 124 14Q117 14 110 8Q104 1 102 -14L68 -276Q67 -290 68 -296Q70 -301 74 -304Q76 -306 79 -304Q82 -301 86 -296Q184 -143 266 -76Q348 -8 432 -8Z"/><path id="f9-w" d="M528 0H375Q366 0 360 -4Q354 -7 351 -16L72 -840Q68 -853 62 -860Q55 -867 44 -870L6 -879Q-1 -881 -4 -883Q-6 -885 -6 -888Q-6 -893 -3 -894Q0 -896 4 -896H538Q543 -896 546 -894Q548 -893 548 -888Q548 -885 546 -883Q543 -881 536 -879L488 -870Q466 -866 461 -852Q456 -837 463 -816L629 -304L550 -92L756 -770L779 -764L550 -14Q548 -7 542 -4Q536 0 528 0ZM1132 0H979Q970 0 964 -4Q958 -7 955 -16L683 -840Q677 -859 671 -866Q665 -873 658 -874L637 -879Q630 -881 628 -883Q625 -885 625 -888Q625 -896 635 -896H1169Q1179 -896 1179 -888Q1179 -885 1176 -883Q1174 -881 1167 -879L1116 -867Q1080 -859 1073 -849Q1066 -839 1073 -816L1234 -302L1153 -92L1357 -770Q1369 -809 1356 -836Q1343 -863 1310 -870L1272 -879Q1265 -881 1262 -883Q1260 -885 1260 -888Q1260 -893 1263 -894Q1266 -896 1270 -896H1488Q1493 -896 1496 -894Q1498 -893 1498 -888Q1498 -885 1496 -883Q1493 -881 1486 -879L1463 -870Q1438 -860 1415 -832Q1392 -804 1380 -764L1154 -14Q1152 -7 1146 -4Q1140 0 1132 0Z"/><filter id="bg" x="-200%" y="-200%" width="500%" height="500%"><feGaussianBlur stdDeviation="4"/></filter><filter id="tg" x="-10%" y="-40%" width="120%" height="180%"><feGaussianBlur stdDeviation="10"/></filter></defs><rect x="4" y="4" width="1592" height="242" rx="26" fill="#6E0B16"/><rect x="30" y="30" width="1540" height="190" rx="14" fill="#B3121F"/><g class="b0"><circle cx="17" cy="93" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="93" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="17" cy="55" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="55" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="20" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="20" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="58" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="58" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="96" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="96" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="134" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="134" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="172" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="172" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="210" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="210" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="248" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="248" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="286" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="286" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="324" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="324" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="362" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="362" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="400" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="400" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="438" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="438" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="476" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="476" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="514" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="514" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="552" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="552" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="590" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="590" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="628" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="628" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="666" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="666" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="704" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="704" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="742" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="742" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="780" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="780" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="818" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="818" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="856" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="856" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="894" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="894" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="932" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="932" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="970" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="970" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1008" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1008" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1046" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1046" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1084" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1084" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1122" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1122" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1160" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1160" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1198" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1198" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1236" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1236" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1274" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1274" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1312" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1312" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1350" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1350" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1388" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1388" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1426" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1426" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1464" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1464" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1502" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1502" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1540" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1540" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1578" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1578" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1583" cy="55" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="55" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1583" cy="93" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="93" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1583" cy="131" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="131" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1583" cy="169" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="169" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1583" cy="207" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="207" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1578" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1578" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1540" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1540" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1502" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1502" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1464" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1464" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1426" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1426" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1388" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1388" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1350" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1350" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1312" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1312" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1274" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1274" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1236" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1236" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1198" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1198" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1160" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1160" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1122" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1122" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1084" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1084" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1046" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1046" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1008" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1008" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="970" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="970" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="932" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="932" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="894" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="894" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="856" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="856" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="818" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="818" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="780" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="780" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="742" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="742" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="704" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="704" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="666" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="666" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="628" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="628" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="590" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="590" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="552" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="552" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="514" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="514" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="476" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="476" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="438" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="438" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="400" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="400" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="362" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="362" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="324" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="324" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="286" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="286" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="248" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="248" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="210" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="210" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="172" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="172" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="134" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="134" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="96" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="96" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="58" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="58" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="20" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="20" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="17" cy="207" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="207" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="17" cy="169" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="169" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="17" cy="131" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="131" r="5" fill="#FFF1C7"/></g><g class="sign"><g transform="translate(550.1 142.0) scale(0.04600)" fill="#E9B949" opacity=".45" filter="url(#tg)"><use href="#f9-n" x="0"/><use href="#f9-o" x="1104"/><use href="#f9-w" x="2082"/><use href="#f9-s" x="3821"/><use href="#f9-h" x="4643"/><use href="#f9-o" x="5742"/><use href="#f9-w" x="6720"/><use href="#f9-i" x="8179"/><use href="#f9-n" x="8711"/><use href="#f9-g" x="9815"/></g><g transform="translate(550.1 142.0) scale(0.04600)" fill="#F5EBDC"><use href="#f9-n" x="0"/><use href="#f9-o" x="1104"/><use href="#f9-w" x="2082"/><use href="#f9-s" x="3821"/><use href="#f9-h" x="4643"/><use href="#f9-o" x="5742"/><use href="#f9-w" x="6720"/><use href="#f9-i" x="8179"/><use href="#f9-n" x="8711"/><use href="#f9-g" x="9815"/></g><g transform="translate(429.8 192.0) scale(0.00977)" fill="#FFE3A0"><use href="#i6-two" x="0"/><use href="#i6-two" x="1645"/><use href="#i6-E" x="4174"/><use href="#i6-X" x="5783"/><use href="#i6-A" x="7625"/><use href="#i6-M" x="9484"/><use href="#i6-P" x="11741"/><use href="#i6-L" x="13431"/><use href="#i6-E" x="14958"/><use href="#i6-S" x="16566"/><use href="#i6-periodcentered" x="20036"/><use href="#i6-E" x="22827"/><use href="#i6-V" x="24436"/><use href="#i6-E" x="26295"/><use href="#i6-R" x="27903"/><use href="#i6-Y" x="29552"/><use href="#i6-F" x="32266"/><use href="#i6-R" x="33839"/><use href="#i6-A" x="35543"/><use href="#i6-M" x="37402"/><use href="#i6-E" x="39660"/><use href="#i6-R" x="42153"/><use href="#i6-E" x="43858"/><use href="#i6-N" x="45466"/><use href="#i6-D" x="47390"/><use href="#i6-E" x="49237"/><use href="#i6-R" x="50846"/><use href="#i6-E" x="52551"/><use href="#i6-D" x="54159"/><use href="#i6-B" x="56892"/><use href="#i6-Y" x="58610"/><use href="#i6-S" x="61325"/><use href="#i6-H" x="63025"/><use href="#i6-O" x="64921"/><use href="#i6-W" x="66831"/><use href="#i6-T" x="69288"/><use href="#i6-I" x="71009"/><use href="#i6-M" x="71944"/><use href="#i6-E" x="74202"/></g></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 250" width="1600" height="250" role="img" aria-labelledby="t d"><title id="t">now showing</title><desc id="d">A theatre marquee with chasing lights. Now showing: 32 videos, every frame rendered by showtime.</desc><style>.b0,.b1,.b2{animation:chase 1.2s linear infinite}.b1{animation-delay:-.4s}.b2{animation-delay:-.8s}@keyframes chase{0%,100%{opacity:1}33%{opacity:.25}66%{opacity:.45}}.sign{animation:on 1.6s .2s both}@keyframes on{0%{opacity:.2}30%{opacity:.9}38%{opacity:.4}55%,100%{opacity:1}}@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}</style><defs><path id="i6-A" d="M50 0 570 -1490H909L1441 0H1148L883 -774Q844 -894 802 -1046Q760 -1197 709 -1390H765Q715 -1195 674 -1042Q634 -890 598 -774L342 0ZM353 -369V-584H1138V-369Z"/><path id="i6-B" d="M150 0V-1490H720Q881 -1490 988 -1439Q1095 -1388 1148 -1301Q1201 -1214 1201 -1103Q1201 -1012 1166 -948Q1131 -883 1072 -843Q1014 -803 941 -786V-771Q1020 -767 1093 -723Q1166 -679 1212 -599Q1259 -519 1259 -406Q1259 -290 1203 -198Q1147 -106 1034 -53Q922 0 751 0ZM417 -223H709Q857 -223 922 -280Q988 -337 988 -426Q988 -493 955 -546Q922 -600 862 -631Q801 -662 718 -662H417ZM417 -855H686Q757 -855 813 -881Q869 -907 902 -955Q934 -1003 934 -1069Q934 -1156 873 -1212Q812 -1268 692 -1268H417Z"/><path id="i6-D" d="M654 0H277V-231H641Q797 -231 902 -288Q1006 -346 1059 -460Q1112 -575 1112 -747Q1112 -917 1059 -1031Q1006 -1145 904 -1202Q801 -1259 648 -1259H269V-1490H664Q886 -1490 1045 -1401Q1204 -1312 1290 -1145Q1375 -978 1375 -747Q1375 -514 1290 -346Q1204 -179 1042 -90Q881 0 654 0ZM417 -1490V0H150V-1490Z"/><path id="i6-E" d="M150 0V-1490H1118V-1265H417V-863H1066V-641H417V-225H1122V0Z"/><path id="i6-F" d="M150 0V-1490H1104V-1265H417V-818H1037V-596H417V0Z"/><path id="i6-H" d="M150 0V-1490H417V-874H1110V-1490H1377V0H1110V-649H417V0Z"/><path id="i6-I" d="M417 -1490V0H150V-1490Z"/><path id="i6-L" d="M150 0V-1490H417V-225H1075V0Z"/><path id="i6-M" d="M150 0V-1490H552L835 -721Q850 -678 868 -610Q887 -543 906 -465Q926 -387 944 -312Q961 -238 973 -181H919Q931 -237 948 -310Q966 -384 986 -462Q1005 -541 1024 -609Q1042 -677 1056 -721L1336 -1490H1739V0H1473V-752Q1473 -800 1474 -868Q1475 -936 1477 -1014Q1479 -1092 1481 -1172Q1483 -1251 1483 -1323H1502Q1482 -1244 1458 -1162Q1435 -1079 1412 -1002Q1389 -924 1368 -859Q1348 -794 1333 -752L1058 0H831L552 -752Q537 -794 516 -858Q496 -921 472 -998Q449 -1075 426 -1158Q402 -1242 379 -1323H401Q402 -1256 404 -1178Q406 -1099 408 -1020Q409 -941 410 -872Q412 -802 412 -752V0Z"/><path id="i6-N" d="M150 0V-1490H452L967 -669Q999 -618 1035 -554Q1071 -489 1110 -410Q1149 -330 1187 -233H1157Q1150 -317 1144 -406Q1139 -494 1136 -574Q1134 -653 1134 -708V-1490H1405V0H1102L637 -739Q593 -810 554 -879Q515 -948 470 -1035Q425 -1122 361 -1245H399Q405 -1136 410 -1038Q415 -941 418 -864Q422 -787 422 -740V0Z"/><path id="i6-O" d="M788 20Q592 20 437 -71Q282 -162 192 -333Q103 -504 103 -744Q103 -985 192 -1156Q282 -1328 437 -1419Q592 -1510 788 -1510Q983 -1510 1138 -1419Q1292 -1328 1382 -1156Q1471 -985 1471 -744Q1471 -504 1382 -332Q1292 -161 1138 -70Q983 20 788 20ZM788 -219Q909 -219 1002 -280Q1096 -340 1149 -458Q1202 -575 1202 -744Q1202 -915 1149 -1032Q1096 -1150 1002 -1210Q909 -1271 788 -1271Q666 -1271 572 -1210Q478 -1149 424 -1032Q371 -914 371 -744Q371 -575 424 -458Q478 -341 572 -280Q666 -219 788 -219Z"/><path id="i6-P" d="M150 0V-1490H707Q878 -1490 995 -1426Q1112 -1362 1172 -1250Q1232 -1139 1232 -997Q1232 -854 1172 -743Q1111 -632 993 -568Q875 -504 703 -504H334V-724H668Q769 -724 834 -759Q898 -794 928 -856Q959 -918 959 -997Q959 -1076 928 -1137Q898 -1198 833 -1232Q768 -1266 666 -1266H417V0Z"/><path id="i6-R" d="M150 0V-1490H707Q878 -1490 995 -1430Q1112 -1370 1172 -1262Q1232 -1155 1232 -1013Q1232 -871 1172 -766Q1111 -661 993 -604Q875 -547 703 -547H305V-768H668Q769 -768 833 -796Q897 -825 928 -880Q959 -935 959 -1013Q959 -1093 928 -1150Q897 -1206 832 -1236Q768 -1266 666 -1266H417V0ZM988 0 626 -676H918L1287 0Z"/><path id="i6-S" d="M673 23Q500 23 372 -31Q245 -85 173 -188Q101 -291 95 -438H358Q365 -360 407 -308Q449 -256 518 -230Q587 -205 671 -205Q759 -205 826 -232Q894 -259 932 -308Q970 -356 970 -420Q970 -478 936 -516Q903 -554 842 -580Q782 -607 701 -627L532 -671Q345 -719 240 -816Q136 -913 136 -1071Q136 -1203 207 -1302Q278 -1401 401 -1456Q524 -1510 680 -1510Q839 -1510 959 -1455Q1079 -1400 1146 -1303Q1214 -1206 1217 -1082H958Q948 -1178 872 -1230Q797 -1283 676 -1283Q592 -1283 532 -1258Q471 -1232 438 -1188Q406 -1144 406 -1087Q406 -1025 444 -985Q483 -945 542 -921Q600 -897 660 -882L799 -846Q882 -826 960 -793Q1038 -760 1100 -710Q1163 -659 1200 -587Q1237 -515 1237 -418Q1237 -287 1170 -188Q1103 -88 977 -32Q851 23 673 23Z"/><path id="i6-T" d="M83 -1265V-1490H1269V-1265H810V0H543V-1265Z"/><path id="i6-V" d="M581 0 50 -1490H343L607 -716Q644 -600 687 -448Q730 -297 780 -106H724Q774 -300 816 -450Q857 -600 893 -716L1149 -1490H1441L919 0Z"/><path id="i6-W" d="M452 0 50 -1490H337L531 -697Q551 -611 568 -516Q586 -421 602 -325Q619 -229 634 -137H591Q608 -229 625 -325Q642 -421 661 -516Q680 -611 701 -697L903 -1490H1186L1387 -697Q1409 -611 1428 -516Q1446 -421 1464 -325Q1481 -229 1499 -137H1453Q1469 -229 1486 -325Q1502 -421 1520 -516Q1538 -611 1558 -697L1751 -1490H2039L1636 0H1330L1113 -823Q1083 -938 1060 -1073Q1038 -1208 1012 -1359H1076Q1048 -1213 1028 -1080Q1008 -948 975 -823L758 0Z"/><path id="i6-X" d="M53 0 657 -861V-660L96 -1490H405L586 -1218Q632 -1148 662 -1094Q692 -1040 717 -990Q742 -939 772 -880H707Q738 -939 763 -989Q788 -1039 818 -1094Q849 -1148 896 -1218L1080 -1490H1382L827 -673V-867L1421 0H1107L881 -334Q840 -397 814 -441Q787 -485 765 -526Q743 -567 714 -621H760Q732 -569 710 -528Q688 -487 661 -442Q634 -397 590 -334L360 0Z"/><path id="i6-Y" d="M600 0V-577L50 -1490H362L628 -1020Q670 -946 703 -876Q736 -806 771 -705H701Q735 -807 768 -878Q800 -949 840 -1020L1101 -1490H1411L867 -577V0Z"/><path id="i6-periodcentered" d="M326 -547Q259 -547 212 -593Q166 -639 166 -707Q166 -774 212 -820Q259 -866 326 -866Q394 -866 440 -820Q487 -774 487 -707Q487 -639 440 -593Q394 -547 326 -547Z"/><path id="i6-two" d="M134 0V-192L651 -701Q724 -776 774 -834Q823 -892 848 -946Q874 -1001 874 -1065Q874 -1135 842 -1186Q809 -1237 754 -1264Q698 -1292 627 -1292Q552 -1292 496 -1262Q441 -1232 411 -1176Q381 -1121 381 -1044H126Q126 -1185 190 -1290Q255 -1395 368 -1452Q482 -1510 630 -1510Q779 -1510 892 -1454Q1005 -1398 1068 -1300Q1131 -1203 1131 -1078Q1131 -995 1100 -916Q1069 -837 989 -738Q909 -638 763 -498L504 -234V-223H1153V0Z"/><path id="f9-g" d="M637 -98Q543 -109 494 -120Q445 -132 427 -146Q409 -160 409 -180Q409 -200 420 -212Q431 -224 441 -224L439 -230Q325 -222 257 -194Q189 -167 159 -124Q129 -81 129 -26Q129 34 162 70Q195 105 268 126Q341 147 461 164Q577 180 641 202Q705 223 730 254Q755 285 755 328Q755 377 732 407Q708 437 660 450Q613 464 541 464Q408 464 336 386Q265 308 265 178Q265 158 269 142Q273 126 277 120V110Q138 123 78 162Q17 202 17 286Q17 347 68 393Q118 439 231 464Q344 490 531 490Q777 490 910 400Q1043 310 1043 166Q1043 87 1008 35Q972 -17 884 -48Q795 -80 637 -98ZM659 -870 679 -878Q693 -925 713 -948Q733 -972 764 -972Q792 -972 812 -952Q833 -931 853 -904Q873 -877 898 -856Q923 -836 960 -836Q1022 -836 1056 -872Q1089 -909 1089 -974Q1089 -1048 1048 -1094Q1007 -1140 924 -1140Q827 -1140 766 -1072Q704 -1004 667 -894ZM987 -574Q987 -662 934 -740Q882 -818 780 -867Q679 -916 533 -916Q382 -916 272 -867Q162 -818 102 -734Q43 -651 43 -546Q43 -457 102 -382Q160 -306 268 -260Q377 -214 527 -214Q659 -214 763 -262Q867 -310 927 -392Q987 -473 987 -574ZM465 -890Q506 -896 548 -816Q590 -737 612 -582Q634 -425 616 -338Q597 -250 555 -244Q527 -240 498 -274Q469 -309 446 -380Q422 -450 407 -554Q393 -657 396 -731Q400 -805 418 -846Q436 -886 465 -890Z"/><path id="f9-h" d="M462 -1496V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q536 -14 536 -8Q536 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-1366Q100 -1374 96 -1378Q92 -1382 83 -1382H44Q37 -1382 34 -1384Q32 -1387 32 -1391Q32 -1395 35 -1397Q38 -1399 42 -1400L421 -1505Q433 -1508 438 -1509Q442 -1510 448 -1510Q455 -1510 458 -1506Q462 -1502 462 -1496ZM432 -679 418 -694 458 -729Q563 -821 646 -868Q729 -916 794 -916Q883 -916 932 -866Q982 -815 994 -702L1062 -64Q1064 -48 1068 -38Q1073 -29 1086 -26L1124 -17Q1131 -16 1134 -14Q1136 -11 1136 -8Q1136 -4 1134 -2Q1131 0 1126 0H627Q617 0 617 -8Q617 -14 629 -17L667 -26Q681 -29 687 -38Q693 -48 691 -64L638 -664Q634 -713 618 -736Q602 -758 566 -758Q541 -758 518 -746Q494 -733 470 -712Z"/><path id="f9-i" d="M462 -906V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q531 -16 534 -14Q536 -11 536 -8Q536 -4 534 -2Q531 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-776Q100 -784 96 -788Q92 -792 83 -792H44Q37 -792 34 -794Q32 -797 32 -801Q32 -805 35 -807Q38 -809 42 -810L421 -915Q433 -918 438 -919Q442 -920 448 -920Q455 -920 458 -916Q462 -912 462 -906ZM277 -977Q186 -977 129 -1035Q72 -1093 72 -1177Q72 -1261 129 -1319Q186 -1377 277 -1377Q369 -1377 428 -1319Q486 -1261 486 -1177Q486 -1093 428 -1035Q369 -977 277 -977Z"/><path id="f9-n" d="M462 -906V-64Q462 -48 468 -38Q473 -29 486 -26L524 -17Q536 -14 536 -8Q536 0 526 0H36Q32 0 29 -2Q26 -4 26 -8Q26 -11 28 -14Q31 -16 38 -17L76 -26Q90 -29 95 -38Q100 -48 100 -64V-776Q100 -784 96 -788Q92 -792 83 -792H44Q37 -792 34 -794Q32 -797 32 -801Q32 -805 35 -807Q38 -809 42 -810L421 -915Q433 -918 438 -919Q442 -920 448 -920Q455 -920 458 -916Q462 -912 462 -906ZM432 -679 418 -694 458 -729Q563 -821 646 -868Q729 -916 794 -916Q883 -916 932 -866Q982 -815 994 -702L1062 -64Q1064 -48 1068 -38Q1073 -29 1086 -26L1124 -17Q1131 -16 1134 -14Q1136 -11 1136 -8Q1136 -4 1134 -2Q1131 0 1126 0H627Q617 0 617 -8Q617 -14 629 -17L667 -26Q681 -29 687 -38Q693 -48 691 -64L638 -664Q634 -713 618 -736Q602 -758 566 -758Q541 -758 518 -746Q494 -733 470 -712Z"/><path id="f9-o" d="M532 -916Q675 -916 784 -856Q894 -796 956 -690Q1018 -583 1018 -444Q1018 -308 954 -204Q889 -99 776 -40Q663 20 516 20Q373 20 264 -39Q154 -98 92 -202Q30 -307 30 -444Q30 -580 96 -686Q161 -793 274 -854Q388 -916 532 -916ZM589 0Q625 -5 642 -56Q660 -107 659 -208Q658 -309 636 -462Q614 -615 588 -712Q561 -810 530 -854Q499 -899 462 -893Q427 -887 410 -836Q392 -785 394 -685Q396 -585 417 -432Q439 -279 465 -182Q491 -84 522 -40Q553 5 589 0Z"/><path id="f9-s" d="M432 -8Q486 -8 516 -34Q546 -61 546 -104Q546 -137 530 -164Q515 -192 476 -216Q437 -241 368 -264Q236 -309 162 -362Q88 -415 58 -480Q28 -545 28 -626Q28 -767 123 -842Q218 -916 378 -916Q441 -916 482 -904Q522 -893 544 -882Q565 -870 572 -870Q584 -870 618 -882Q652 -893 686 -904Q719 -916 730 -916Q735 -916 740 -914Q745 -911 746 -902L788 -584Q790 -574 788 -568Q787 -562 784 -560Q781 -559 778 -560Q775 -562 772 -566Q696 -692 634 -763Q573 -834 516 -863Q458 -892 394 -892Q337 -892 308 -863Q280 -834 280 -786Q280 -749 298 -718Q316 -688 362 -662Q409 -636 496 -612Q611 -579 678 -530Q746 -480 775 -418Q804 -355 804 -282Q804 -188 758 -120Q711 -53 634 -16Q557 20 464 20Q408 20 367 6Q326 -8 302 -22Q277 -36 272 -36Q264 -36 232 -24Q201 -11 168 2Q135 14 124 14Q117 14 110 8Q104 1 102 -14L68 -276Q67 -290 68 -296Q70 -301 74 -304Q76 -306 79 -304Q82 -301 86 -296Q184 -143 266 -76Q348 -8 432 -8Z"/><path id="f9-w" d="M528 0H375Q366 0 360 -4Q354 -7 351 -16L72 -840Q68 -853 62 -860Q55 -867 44 -870L6 -879Q-1 -881 -4 -883Q-6 -885 -6 -888Q-6 -893 -3 -894Q0 -896 4 -896H538Q543 -896 546 -894Q548 -893 548 -888Q548 -885 546 -883Q543 -881 536 -879L488 -870Q466 -866 461 -852Q456 -837 463 -816L629 -304L550 -92L756 -770L779 -764L550 -14Q548 -7 542 -4Q536 0 528 0ZM1132 0H979Q970 0 964 -4Q958 -7 955 -16L683 -840Q677 -859 671 -866Q665 -873 658 -874L637 -879Q630 -881 628 -883Q625 -885 625 -888Q625 -896 635 -896H1169Q1179 -896 1179 -888Q1179 -885 1176 -883Q1174 -881 1167 -879L1116 -867Q1080 -859 1073 -849Q1066 -839 1073 -816L1234 -302L1153 -92L1357 -770Q1369 -809 1356 -836Q1343 -863 1310 -870L1272 -879Q1265 -881 1262 -883Q1260 -885 1260 -888Q1260 -893 1263 -894Q1266 -896 1270 -896H1488Q1493 -896 1496 -894Q1498 -893 1498 -888Q1498 -885 1496 -883Q1493 -881 1486 -879L1463 -870Q1438 -860 1415 -832Q1392 -804 1380 -764L1154 -14Q1152 -7 1146 -4Q1140 0 1132 0Z"/><filter id="bg" x="-200%" y="-200%" width="500%" height="500%"><feGaussianBlur stdDeviation="4"/></filter><filter id="tg" x="-10%" y="-40%" width="120%" height="180%"><feGaussianBlur stdDeviation="10"/></filter></defs><rect x="4" y="4" width="1592" height="242" rx="26" fill="#6E0B16"/><rect x="30" y="30" width="1540" height="190" rx="14" fill="#B3121F"/><g class="b0"><circle cx="17" cy="93" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="93" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="17" cy="55" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="55" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="20" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="20" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="58" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="58" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="96" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="96" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="134" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="134" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="172" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="172" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="210" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="210" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="248" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="248" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="286" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="286" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="324" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="324" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="362" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="362" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="400" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="400" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="438" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="438" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="476" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="476" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="514" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="514" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="552" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="552" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="590" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="590" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="628" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="628" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="666" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="666" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="704" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="704" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="742" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="742" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="780" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="780" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="818" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="818" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="856" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="856" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="894" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="894" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="932" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="932" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="970" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="970" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1008" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1008" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1046" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1046" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1084" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1084" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1122" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1122" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1160" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1160" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1198" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1198" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1236" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1236" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1274" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1274" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1312" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1312" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1350" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1350" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1388" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1388" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1426" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1426" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1464" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1464" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1502" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1502" cy="17" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1540" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1540" cy="17" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1578" cy="17" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1578" cy="17" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1583" cy="55" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="55" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1583" cy="93" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="93" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1583" cy="131" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="131" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1583" cy="169" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="169" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1583" cy="207" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1583" cy="207" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1578" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1578" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1540" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1540" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1502" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1502" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1464" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1464" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1426" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1426" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1388" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1388" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1350" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1350" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1312" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1312" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1274" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1274" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1236" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1236" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1198" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1198" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1160" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1160" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1122" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1122" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="1084" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1084" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="1046" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1046" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="1008" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="1008" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="970" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="970" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="932" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="932" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="894" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="894" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="856" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="856" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="818" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="818" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="780" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="780" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="742" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="742" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="704" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="704" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="666" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="666" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="628" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="628" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="590" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="590" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="552" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="552" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="514" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="514" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="476" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="476" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="438" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="438" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="400" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="400" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="362" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="362" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="324" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="324" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="286" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="286" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="248" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="248" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="210" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="210" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="172" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="172" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="134" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="134" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="96" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="96" cy="233" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="58" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="58" cy="233" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="20" cy="233" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="20" cy="233" r="5" fill="#FFF1C7"/></g><g class="b1"><circle cx="17" cy="207" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="207" r="5" fill="#FFF1C7"/></g><g class="b2"><circle cx="17" cy="169" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="169" r="5" fill="#FFF1C7"/></g><g class="b0"><circle cx="17" cy="131" r="8" fill="#E9B949" opacity=".7" filter="url(#bg)"/><circle cx="17" cy="131" r="5" fill="#FFF1C7"/></g><g class="sign"><g transform="translate(550.1 142.0) scale(0.04600)" fill="#E9B949" opacity=".45" filter="url(#tg)"><use href="#f9-n" x="0"/><use href="#f9-o" x="1104"/><use href="#f9-w" x="2082"/><use href="#f9-s" x="3821"/><use href="#f9-h" x="4643"/><use href="#f9-o" x="5742"/><use href="#f9-w" x="6720"/><use href="#f9-i" x="8179"/><use href="#f9-n" x="8711"/><use href="#f9-g" x="9815"/></g><g transform="translate(550.1 142.0) scale(0.04600)" fill="#F5EBDC"><use href="#f9-n" x="0"/><use href="#f9-o" x="1104"/><use href="#f9-w" x="2082"/><use href="#f9-s" x="3821"/><use href="#f9-h" x="4643"/><use href="#f9-o" x="5742"/><use href="#f9-w" x="6720"/><use href="#f9-i" x="8179"/><use href="#f9-n" x="8711"/><use href="#f9-g" x="9815"/></g><g transform="translate(429.8 192.0) scale(0.00977)" fill="#FFE3A0"><use href="#i6-two" x="0"/><use href="#i6-two" x="1645"/><use href="#i6-E" x="4174"/><use href="#i6-X" x="5783"/><use href="#i6-A" x="7625"/><use href="#i6-M" x="9484"/><use href="#i6-P" x="11741"/><use href="#i6-L" x="13431"/><use href="#i6-E" x="14958"/><use href="#i6-S" x="16566"/><use href="#i6-periodcentered" x="20036"/><use href="#i6-E" x="22827"/><use href="#i6-V" x="24436"/><use href="#i6-E" x="26295"/><use href="#i6-R" x="27903"/><use href="#i6-Y" x="29552"/><use href="#i6-F" x="32266"/><use href="#i6-R" x="33839"/><use href="#i6-A" x="35543"/><use href="#i6-M" x="37402"/><use href="#i6-E" x="39660"/><use href="#i6-R" x="42153"/><use href="#i6-E" x="43858"/><use href="#i6-N" x="45466"/><use href="#i6-D" x="47390"/><use href="#i6-E" x="49237"/><use href="#i6-R" x="50846"/><use href="#i6-E" x="52551"/><use href="#i6-D" x="54159"/><use href="#i6-B" x="56892"/><use href="#i6-Y" x="58610"/><use href="#i6-S" x="61325"/><use href="#i6-H" x="63025"/><use href="#i6-O" x="64921"/><use href="#i6-W" x="66831"/><use href="#i6-T" x="69288"/><use href="#i6-I" x="71009"/><use href="#i6-M" x="71944"/><use href="#i6-E" x="74202"/></g></g></svg>\ No newline at end of filediff --git a/assets/readme/whats-new/23-word-behind-the-speaker.webp b/assets/readme/whats-new/23-word-behind-the-speaker.webpnew file mode 100644index 0000000..4e9356aBinary files /dev/null and b/assets/readme/whats-new/23-word-behind-the-speaker.webp differdiff --git a/docs/agents.md b/docs/agents.mdindex 624a809..c09c23f 100644--- a/docs/agents.md+++ b/docs/agents.md@@ -34,8 +34,9 @@ Tested on Linux x64 (Ubuntu 24.04) on 2026-09-28.## Before any of them: setup, once, in a normal terminal-showtime renders on your machine, so it needs its tools and models in `~/.showtime`: about 770 MB on Linux-x64, 560 to 610 MB on macOS and Windows (`showtime setup --plan` prints your exact list; bigger pieces such as+showtime renders on your machine, so it needs its tools and models in `~/.showtime`: about 0.73 GB to download+on Linux x64 and 0.53 to 0.59 GB on macOS and Windows, 1.4 to 1.8 GB once installed (`showtime setup --estimate`+prints yours and `showtime setup --plan` every download; bigger pieces such asWhisper for transcripts arrive the first time a video needs them, with their size announced, and`showtime setup --full` fetches them all now). Agent sandboxes often block that download, so run setupyourself once:@@ -307,7 +308,7 @@ Any client that starts local (stdio) servers can use showtime's MCP server on it([@faviovazquez/showtime-mcp](https://www.npmjs.com/package/@faviovazquez/showtime-mcp), also in the MCP Registry as`io.github.FavioVazquez/showtime`),`{"command": "npx", "args": ["-y", "@faviovazquez/showtime-mcp"]}` (see-[`packages/npm/README.md`](../packages/npm/README.md)), and [`showtime-0.4.0.mcpb`](https://github.com/FavioVazquez/showtime/releases/download/v0.4.0/showtime-0.4.0.mcpb) from the v0.4.0 release, which+[`packages/npm/README.md`](../packages/npm/README.md)), and [`showtime-0.4.1.mcpb`](https://github.com/FavioVazquez/showtime/releases/download/v0.4.1/showtime-0.4.1.mcpb) from the v0.4.1 release, whichClaude Desktop opens with a double click. Setup still runs once on your machine, because the models and toolsnever travel inside a package. Long tools answer with a task id after about20 s when a client stops calls early; the `status` tool reports progress and the result.diff --git a/docs/examples/showtime-release-video.yml b/docs/examples/showtime-release-video.ymlindex 7ac9eef..75f67e8 100644--- a/docs/examples/showtime-release-video.yml+++ b/docs/examples/showtime-release-video.yml@@ -34,7 +34,7 @@ jobs:- uses: actions/checkout@v7- id: video- uses: FavioVazquez/showtime/.github/actions/[email protected]+ uses: FavioVazquez/showtime/.github/actions/[email protected]with:mode: release# a published release: its tag, name and description come from the event; by hand: these@@ -69,7 +69,7 @@ jobs:# runs-on: ubuntu-24.04# timeout-minutes: 30# steps:-# - uses: FavioVazquez/showtime/.github/actions/[email protected]+# - uses: FavioVazquez/showtime/.github/actions/[email protected]# with:# upload: artifact#@@ -78,7 +78,7 @@ jobs:# showtime.json), rendered on every push to main that changes it:## - uses: actions/checkout@v7-# - uses: FavioVazquez/showtime/.github/actions/[email protected]+# - uses: FavioVazquez/showtime/.github/actions/[email protected]# with:# mode: project# project: videos/launch@@ -91,7 +91,7 @@ jobs:## - uses: actions/checkout@v7# - run: npm install -g @your-agent/cli-# - uses: FavioVazquez/showtime/.github/actions/[email protected]+# - uses: FavioVazquez/showtime/.github/actions/[email protected]# env:# YOUR_AGENT_API_KEY: ${{ secrets.YOUR_AGENT_API_KEY }}# with:diff --git a/docs/faq.md b/docs/faq.mdindex 866766c..cd52a02 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -6,8 +6,8 @@ Short answers, each with a link to the long one. Something missing? Open an## Do I need a GPU?No. Every frame is drawn by a browser, and without a GPU the browser draws on the CPU, WebGL included. On a-64-core Linux machine with no GPU, a 30-second 1080p launch film rendered in 42 s with 3 browsers and 19 s with 16-(measured with 0.4.0 on 7 October 2026). On fewer cores, WebGL scenes are the slow part: on a 6-core Intel Mac+64-core Linux machine with no GPU, a 30-second 1080p launch film rendered in 17.6 s with 0.4.1's automatic settings+(8 browsers), against 42.0 s with 0.4.0's (3 browsers), and in 13.1 s with 16 browsers (measured on 7 October 2026). On fewer cores, WebGL scenes are the slow part: on a 6-core Intel Macwith its GPU turned off, a shader-heavy 1080p frame took about 0.5 s. Without a GPU, showtime picks the number ofbrowsers from your cores, and each of the seven WebGL looks adds less than 50 ms to a 1080p frame at its defaultsize (measured on the same 64-core machine, one browser). More numbers:@@ -34,7 +34,7 @@ anyone can rerun it.No. showtime has no server and no telemetry, and it uploads nothing you make. It goes online to download its toolsand models (once), and when you ask it to fetch something: a media search, a website capture, a pull request for-`showtime pr-video`. Your prompts go to your coding agent, under that agent's own policy. The details are in+`showtime pr-video`, and the Google Fonts (and their licence texts) of a page you adopt with `showtime adopt`. Your prompts go to your coding agent, under that agent's own policy. The details are in[PRIVACY.md](../PRIVACY.md).## Who owns the videos I make?@@ -47,10 +47,13 @@ model, whose drafts are labelled. The speaker cutout model (MODNet) is Apache-2.## How much disk does it need?-About 770 MB on Linux x64 and 560 to 610 MB on macOS and Windows, with a browser already installed. Bigger pieces-come the first time a video needs them, each with its size shown first: the transcription model (465 MB), Manim (60-MB), music tracks and sound packs (a few MB each). `showtime setup --plan` lists your exact sizes, and-`showtime setup --full` fetches everything now (about 5.1 to 5.7 GB) for a machine that will be offline.+Setup downloads about 0.53 to 0.59 GB on macOS and Windows and 0.73 GB on Linux x64, and once unpacked the+install takes about 1.4 GB on macOS and Windows and 1.7 to 1.8 GB on Linux, with a browser already installed (the+headless browser setup fetches otherwise adds 0.2 to 0.3 GB). Bigger pieces come the first time a video needs them,+each with its size shown first: the transcription model (about 490 MB), Manim (60 MB), music tracks and sound packs (a few+MB each). Running the test suite keeps about 0.7 GB of caches. `showtime setup --estimate` prints your sizes,+`showtime setup --plan` lists every download, and `showtime setup --full` fetches everything now (about 5.1 to 5.7+GB to download) for a machine that will be offline.## How long does a video take?@@ -67,7 +70,8 @@ issue. What ran where is in the [README](https://github.com/FavioVazquez/showtim## Which languages?-Voices speak English, Spanish and more than 30 other languages, all on your machine. Transcripts cover 25 languages+Voices speak English, Spanish and 30 other languages, all on your machine: the default voices cover eight of them, and+the Supertonic voices, an extra (`showtime setup --with supertonic`), add the rest. Transcripts cover 25 languageswith the default model, and more with Whisper. Ask for "the same video in French" and your agent re-voices it,re-times the scenes and translates the on-screen text([localize](../skills/showtime/references/workflows/localize.md)).diff --git a/docs/github-action.md b/docs/github-action.mdindex cbeaafe..0ca0339 100644--- a/docs/github-action.md+++ b/docs/github-action.md@@ -5,7 +5,7 @@ and no agent. It installs showtime on the runner, turns the notes into a project`showtime qa` on the finished file, exports a single-file HTML video, and uploads the result.```yaml-- uses: FavioVazquez/showtime/.github/actions/[email protected]+- uses: FavioVazquez/showtime/.github/actions/[email protected]```The complete workflow to copy is [`examples/showtime-release-video.yml`](examples/showtime-release-video.yml).diff --git a/docs/guides/claude-design-to-mp4.md b/docs/guides/claude-design-to-mp4.mdindex c59d61d..4a06f35 100644--- a/docs/guides/claude-design-to-mp4.md+++ b/docs/guides/claude-design-to-mp4.md@@ -47,8 +47,9 @@ Intel Mac with a load average around 50:| `showtime adopt` (unpack, size, length, determinism check, `showtime check`) | 42 s || `showtime render --preview` (120 frames at 1280x720) | 30 s |-A real 12-20 s design was not timed here. As a rule a final render takes about 1-2 times the video's length at-1080p on a mid-range laptop (`render.md`, Speed).+[Example 28](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/28-claude-design-to-mp4)'s two real designs, on a 64-core Linux machine without a+GPU: adopt took 21 s (a 12 s design) and 51 s (a 20 s loop), the final renders 10.5 s and 20.5 s. As a rule a final+render takes about 1-2 times the video's length at 1080p on a mid-range laptop (`render.md`, Speed).## Phrases that change it@@ -68,5 +69,5 @@ A real 12-20 s design was not timed here. As a rule a final render takes about 1## The example-<!-- example: 28 -->-The details are in [adopt.md, From Claude Design](../../skills/showtime/references/adopt.md).+[Example 28](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/28-claude-design-to-mp4) adopts two exported designs, a 12 s 16:9 test and a 9:16 loop,+with a music bed each (CC BY 4.0 for the 16:9, CC0 for the loop) and before-and-after stills of the text at 100 %. The details are in [adopt.md, From Claude Design](../../skills/showtime/references/adopt.md).diff --git a/docs/guides/explainer-that-asks.md b/docs/guides/explainer-that-asks.mdindex b743ac2..9e9eca5 100644--- a/docs/guides/explainer-that-asks.md+++ b/docs/guides/explainer-that-asks.md@@ -34,7 +34,8 @@ Give the source (a page, a paper, your notes). Say who it is for, so the questio- `final.mp4` with a pause-and-think beat at each question.- `<title>.html`: one file that plays offline in any browser, with chapters, keys (`?` lists them) and thequestions. The scrubber marks each question green or red once answered.-- With `--folder`: `index.html` and `assets/`, plus an empty `.nojekyll` so GitHub Pages serves every file.+- With `--folder`: `index.html` and `assets/`, plus an empty `.nojekyll` so GitHub Pages serves every file. Serve+ it from a host that answers byte-range requests (GitHub Pages and most web hosts do), so a seek plays at once.- `socratic.json` beside the export, for a page that drives the player itself.## Links to a moment or a stretch@@ -45,8 +46,8 @@ Give the source (a page, a paper, your notes). Say who it is for, so the questio## How long it takes-No explainer with questions was timed for this guide. For scale, on a 6-core Intel Mac shared with other jobs:-[example 02](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/02-explainer-heat-pump) (45 s) rendered in 1 min 56 s, and+[Example 25](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/25-nobel-physics-ice-telescope) (2:38, three questions) rendered in about 3 min 15 s on+a 6-core Intel Mac, and its `--folder` export with a link preview took 82 s on a 64-core Linux machine. On the Mac,[example 13](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/13-wikipedia-waggle-dance) (60 s) exported to one HTML file in about 25 s.## Phrases that change it@@ -65,6 +66,7 @@ No explainer with questions was timed for this guide. For scale, on a 6-core Int## The example-<!-- example: 25 -->-How to write good questions: [story.md, section 9](../../skills/showtime/references/story.md). The export's+[Example 25](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/25-nobel-physics-ice-telescope) explains the 2026 Nobel Prize in Physics with three+questions; its [HTML video](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/25-nobel-physics-ice-telescope/interactive/index.html) is a folder export+with a link preview. How to write good questions: [story.md, section 9](../../skills/showtime/references/story.md). The export'soptions: [html-export.md](../../skills/showtime/references/html-export.md).diff --git a/docs/guides/go-all-out.md b/docs/guides/go-all-out.mdindex de1f641..29d277b 100644--- a/docs/guides/go-all-out.md+++ b/docs/guides/go-all-out.md@@ -64,8 +64,8 @@ doubles the render time. Each blurred word adds about 8 ms to the frames it blur## The example-<!-- example: 30 -->-[The looks demo](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_looks) shows all seven looks in one 18 s page;+[Example 30](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/30-showreel-four-shapes) renders the showreel template as it ships at 16:9, 9:16, 1:1 and+4:5, its flash words under the shutter blur. [The looks demo](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_looks) shows all seven looks in one 18 s page;[the blur demo](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/_blur) shows four snaps with and without the shutter blur. The tone's rules arein [tones.md](../../skills/showtime/references/tones.md); the looks in[components.md, section 7](../../skills/showtime/references/components.md).diff --git a/docs/guides/localised-video.md b/docs/guides/localised-video.mdindex ce2c37d..3d58846 100644--- a/docs/guides/localised-video.md+++ b/docs/guides/localised-video.md@@ -81,5 +81,5 @@ French final render 2 min 15 s, on a 6-core Intel Mac.[Example 03](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/03-explainer-heat-pump-es) (the heat pump explainer in Spanish) and[example 13](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/13-wikipedia-waggle-dance) (English and French).-<!-- example: 26 -->-The full workflow is [localize.md](../../skills/showtime/references/workflows/localize.md).+[Example 26](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/26-nobel-chemistry-en-es) is a 2:30 explainer and its Spanish version: every string,+a Spanish voice and captions, the same numbers. The full workflow is [localize.md](../../skills/showtime/references/workflows/localize.md).diff --git a/docs/guides/pr-video.md b/docs/guides/pr-video.mdindex 895b65b..12c2925 100644--- a/docs/guides/pr-video.md+++ b/docs/guides/pr-video.md@@ -24,7 +24,8 @@ showtime pr-video https://github.com/acme/tool/pull/482 --out pr-482the description before anything is written, and the output says how many.3. It writes `<out>/project`: a hook (repo, number, title, author), the description's own lines, the files changedwith their +/- counts and the tests touched, one or two real hunks, and a closing card with the PR's URL.- Every word on screen comes from the PR or a flag.+ Every word on screen comes from the PR or a flag. A description with a list shows each item by its bold lead+ (or its first sentence), and "+ N more" counts the items left out.4. It checks and renders the project, then makes the copy under 10 MB (`deliver exports --targets github`).5. It prints two Markdown lines to paste into the PR description. You drag `pr-482.github.mp4` onto the commentline and GitHub uploads it. showtime uploads nothing.@@ -72,6 +73,6 @@ It does not show the diff; `showtime pr-video` does.## The example-<!-- example: 29 -->-[Example 15](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/15-oss-release-black) is a release video an agent made from real diffs, the longer+[Example 29](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/29-pr-video-showtime) is `showtime pr-video` on showtime's own PR #7: 40 s in 41 s on a+64-core machine, a 9.4 MB copy and the Markdown to paste. [Example 15](https://github.com/FavioVazquez/showtime-examples/tree/main/examples/15-oss-release-black) is a release video an agent made from real diffs, the longerway round.diff --git a/docs/guides/slow-machine.md b/docs/guides/slow-machine.mdindex 03646f5..7053cc4 100644--- a/docs/guides/slow-machine.md+++ b/docs/guides/slow-machine.md@@ -46,6 +46,9 @@ Measured on a 64-core Linux machine with no GPU (Chrome drawing in software):| WebGL showreel (scaled up from 15 s) | about 2.2 min | about 2.0 min (4) || DOM page (scaled up from 15 s) | about 3.3 min | about 1.9 min (16) |+At their real lengths with the automatic settings (8 workers there), 0.4.1 rendered a 30 s launch film in 17.6 s+(0.4.0: 42.0 s), a 15 s DOM page in 16.4 s (31.8 s) and a 15 s WebGL showreel in 21.9 s (25.3 s).+On a 6-core Intel Mac with its GPU, the same three ran at about 2.3-3.3 min for 90 s. With the GPU turned off,the WebGL showreel there took about 22 minutes for 90 s (about 0.5 s a frame): **a 4-8 core machine without aGPU looks like that, not like the 64-core numbers.** DOM pages without WebGL suffer much less (about 5-8 mindiff --git a/docs/whats-new.md b/docs/whats-new.mdindex 81d924c..84a3290 100644--- a/docs/whats-new.md+++ b/docs/whats-new.md@@ -7,7 +7,7 @@ What each release changes for you, newest first, one sentence a feature. The### Seven looks, no GPU needed-<!-- media: looks: a 4-6 s loop from examples/_looks (god rays, marble, metaballs) -->+Fluted glass, tilt-shift, liquid metal, mesh gradient, god rays, marble and metaballs are drawn in showtime's ownWebGL, each adds less than 50 ms to a 1080p frame at its default size (one browser on a 64-core machine without a@@ -16,7 +16,7 @@ GPU), and each has a designed fallback where WebGL is missing ([components § 7]### Shutter blur on fast moves-<!-- media: blur: a 4-6 s loop from examples/_blur (the whip without and with the blur) -->+Mark the element that moves with `data-st-blur` and it smears the way a camera shutter would, only on the frames itmoves fast, and lands sharp ([stage-api § Shutter blur](../skills/showtime/references/stage-api.md#shutter-blur-data-st-blur-and-stblur),@@ -24,7 +24,7 @@ moves fast, and lands sharp ([stage-api § Shutter blur](../skills/showtime/refe### Cards over a talking head, and a word behind the speaker-<!-- media: cards: a 4-6 s loop from examples/23 (the side panel, then "Faster" behind the speaker at 40.4-43.6 s) -->+Name tags, a list that builds as it is said, a data callout, a pull-quote or a side panel appear as the words aresaid, and a big word can stand behind the speaker, cut out on your CPU@@ -33,7 +33,7 @@ said, and a big word can stand behind the speaker, cut out on your CPU### A long recording's best moments, as short clips-<!-- media: highlights: a 4-6 s loop from examples/24 (one of the three vertical clips) -->+`showtime edit moments` ranks the best 20-60 s moments of a podcast, talk or panel on your machine, and`showtime edit clips` turns the ones you pick into vertical clips with captions, each checked by qa: a 58-minute@@ -43,19 +43,21 @@ panel took about 7 minutes end to end on a 64-core machine### Claude Design to MP4-<!-- media: claude-design: a 4-6 s loop of an adopted Claude Design export -->+`showtime adopt <export.zip>` turns a Claude Design animation's HTML export into a 1080p video with sharp text, itsGoogle Fonts copied in with their licences and exactly one loop of a looping design, ready for music, a voice and-captions ([adopt § From Claude Design](../skills/showtime/references/adopt.md#from-claude-design)).+captions ([adopt § From Claude Design](../skills/showtime/references/adopt.md#from-claude-design),+[example 28](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/28-claude-design-to-mp4/README.md)).### Faster renders, and no GPU needed<!-- media: speed: a still of a render's progress lines -->The encoder runs while the frames are captured, an unchanged soundtrack is reused, waits stretch on a slow machine-instead of failing, and without a GPU the number of browsers follows your cores: a 1 s fix took 13-21 s instead of-31-54 s on a busy 6-core Intel Mac ([render § Speed](../skills/showtime/references/render.md#speed),+instead of failing, and without a GPU the number of browsers follows your cores: on a 64-core Linux machine with no+GPU a 30 s launch film rendered in 17.6 s instead of 42.0 s, and a 1 s fix took 13-21 s instead of 31-54 s on a busy+6-core Intel Mac ([render § Speed](../skills/showtime/references/render.md#speed),[FAQ](faq.md#do-i-need-a-gpu)).### Link previews for HTML videos@@ -64,7 +66,8 @@ instead of failing, and without a GPU the number of browsers follows your cores:`showtime export html --folder --share-url <address>` (or `"share"` in showtime.json) adds the tags that make apasted link show a title, a description and the poster frame, and the folder is ready for GitHub Pages-([html-export § Sharing and hosting](../skills/showtime/references/html-export.md#sharing-and-hosting)).+([html-export § Sharing and hosting](../skills/showtime/references/html-export.md#sharing-and-hosting),+[example 25](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/25-nobel-physics-ice-telescope/README.md)'s HTML video).### Notes on a stretch of time, naming what they point at@@ -88,7 +91,9 @@ changed since it last looked, so it keeps your edits instead of writing over theAfter the voice-over is made, showtime transcribes it on your machine and flags a name, an acronym or a number thevoice said wrong (a name spelled "Open A I" was heard as "OpenI"), with the fix to try-([voice § Pronunciation fixes](../skills/showtime/references/voice.md#pronunciation-fixes)).+([voice § Pronunciation fixes](../skills/showtime/references/voice.md#pronunciation-fixes)). It runs when the local+recognizer is installed: it arrives with the first transcription, or `showtime setup --fetch+parakeet-tdt-0.6b-v3-int8`. A word you listened to and found right is cleared in showtime.json.### check catches more before the render@@ -109,21 +114,22 @@ every page has a link preview.## 0.4.0 (5 October 2026)- **Videos that stop and ask.** List questions in showtime.json and the HTML export pauses on that frame, asks,- marks the answer and plays on; the MP4 gets a "pause and think" beat.+ marks the answer and plays on; the MP4 gets a "pause and think" beat+ ([example 25](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/25-nobel-physics-ice-telescope/README.md)).- **Notes on the finished video.** `showtime review open <job>` plays the latest render on a local page where youclick a spot or drag a box and type a note; your agent reads the notes, fixes and replies.- **Range links.** `video.html#t=10-20` plays that part of an HTML video on a loop.- **A pull request becomes a video.** `showtime pr-video <N | URL>` makes a short video for the PR's description,- with a copy under GitHub's 10 MB attachment limit.+ with a copy under GitHub's 10 MB attachment limit ([example 29](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/29-pr-video-showtime/README.md)).- **A storyboard table becomes a project.** `showtime new <template> <dir> --from-storyboard <file>` reads a- Markdown table of shots.+ Markdown table of shots ([example 26](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/26-nobel-chemistry-en-es/README.md)).- **Go all out.** A "showreel" brief turns on a dense tone, and the `showreel` template renders at 16:9, 9:16, 1:1- and 4:5 with no edits.+ and 4:5 with no edits ([example 30](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/30-showreel-four-shapes/README.md)).- **The critic watches as a first-time viewer**, and its Blockers and Should-fixes must be fixed or waived before ajob is marked delivered.- **A hearing pass** reports music over the voice, cut-off lines, long silences and jumps in level.- **Twelve look signatures.** New projects start in a curated palette, type pair and motion feel, picked away from- your recent videos.+ your recent videos ([example 32](https://github.com/FavioVazquez/showtime-examples/blob/main/examples/32-twelve-looks/README.md)).- **A behaviour scoreboard anyone can rerun**: an agent scored 35/42 with showtime and 25/42 without.The README has the longer [0.4.0 summary](https://github.com/FavioVazquez/showtime#new-in-040).diff --git a/gemini-extension.json b/gemini-extension.jsonindex b7d6098..cde8776 100644--- a/gemini-extension.json+++ b/gemini-extension.json@@ -1,6 +1,6 @@{"name": "showtime",- "version": "0.4.0",+ "version": "0.4.1","description": "A local video studio for your coding agent. Describe a video. Your agent directs. Your machine renders. Motion graphics, voice-over, music, footage editing, captions and platform-ready exports, with no cloud AI services or API keys.","mcpServers": {"showtime": {diff --git a/packages/npm/package.json b/packages/npm/package.jsonindex f408018..20bc680 100644--- a/packages/npm/package.json+++ b/packages/npm/package.json@@ -1,6 +1,6 @@{"name": "@faviovazquez/showtime-mcp",- "version": "0.4.0",+ "version": "0.4.1","mcpName": "io.github.FavioVazquez/showtime","description": "A local video studio for your coding agent: showtime's MCP server and command line. Describe a video. Your agent directs. Your machine renders.","license": "MIT",diff --git a/plugin.json b/plugin.jsonindex 305be31..c5b6133 100644--- a/plugin.json+++ b/plugin.json@@ -1,7 +1,7 @@{"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json","name": "showtime",- "version": "0.4.0",+ "version": "0.4.1","description": "A local video studio for your coding agent. Describe a video. Your agent directs. Your machine renders. Motion graphics, voice-over, music, footage editing, captions and platform-ready exports, with no cloud AI services or API keys.","author": {"name": "Favio Vazquez",diff --git a/scripts/nightly_report.py b/scripts/nightly_report.pynew file mode 100644index 0000000..01b6011--- /dev/null+++ b/scripts/nightly_report.py@@ -0,0 +1,278 @@+#!/usr/bin/env python3+"""Open, update or close the "Nightly failing on main" issue after the nightly tier of ci.yml.++The nightly-report job in .github/workflows/ci.yml runs this once the nightly matrix is done, with the+workflow's own GITHUB_TOKEN (issues: write, actions: read) and no other secret:++ failed run : comments the failed jobs, their failed steps and test files (and the tests inside them)+ plus the run link on the open issue labelled `ci: nightly`, or opens that issue+ green run : closes the open issue with "Green again: <run link>" (only a run that covered every OS+ image closes it; a manual run on fewer images can report a failure but not close it)+ cancelled or skipped: does nothing++ python scripts/nightly_report.py --repo OWNER/NAME --run-id ID --result failure+ python scripts/nightly_report.py --repo OWNER/NAME --run-id ID --result success --full+ python scripts/nightly_report.py --repo OWNER/NAME --run-id ID --result failure --dry-run # print only++The comment is built from the run's jobs (GitHub's API) and the failed jobs' logs: the test runner's+"[n/N] FAIL <file>" lines and the unittest "FAIL:" / "ERROR:" lines under each file's failure block. Only test+names, file names, step names and exception class names are copied from a log, never its other text.+Needs the gh command line (preinstalled on GitHub's runners) and GH_TOKEN.+"""+from __future__ import annotations++import argparse+import json+import os+import re+import subprocess+import sys+from typing import Callable, Dict, List, Optional++TITLE = "Nightly failing on main"+LABEL = "ci: nightly"+BOT = "app/github-actions" # the author of the issues this job opens (GITHUB_TOKEN)+EXTRA_LABELS = ["type: chore"]+JOB_PREFIX = "nightly ("+MAX_TESTS_PER_FILE = 10+MAX_FILES_PER_JOB = 20++_STAMP = re.compile(r"^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?Z ")+_LABEL = r"(test_\w+\.py(?:\[\d+/\d+\])?)"+# run_all.py -j N: "[56/64] FAIL test_signatures.py 900.7s rc=124 timed out after 900s"+_PROGRESS = re.compile(r"^\[\s*\d+/\d+\] FAIL %s\s+([\d.]+)s\s*(.*)$" % _LABEL)+# run_all.py -j 1 streams each file between "=== test_x.py (--fast)" and "=== test_x.py FAIL (rc=1) in 3.2s note"+_START = re.compile(r"^=== %s(?: \(--fast\))?\s*$" % _LABEL)+_SERIAL = re.compile(r"^=== %s FAIL \(rc=(-?\d+)\) in ([\d.]+)s\s*(.*)$" % _LABEL)+# the block run_all.py prints for each failed file after a parallel run+_BLOCK = re.compile(r"^={10,} %s FAIL \(rc=-?\d+\)" % _LABEL)+_UNITTEST = re.compile(r"^(FAIL|ERROR): (\w+) \(")+_EXC = re.compile(r"^((?:[A-Za-z_]\w*\.)*[A-Za-z_]\w*(?:Error|Exception|Expired|Exit|Interrupt|Failure))\b")+_RC = re.compile(r"^rc=-?\d+\s*")+++Gh = Callable[[List[str], Optional[str]], str]+++def run_gh(args: List[str], stdin: Optional[str] = None) -> str:+ """gh <args>; its stdout. Raises RuntimeError with gh's own error on failure."""+ cp = subprocess.run(["gh"] + args, input=stdin, capture_output=True, text=True, encoding="utf-8",+ errors="replace")+ if cp.returncode != 0:+ raise RuntimeError("gh %s failed (%d): %s" % (" ".join(args[:3]), cp.returncode, cp.stderr.strip()[:500]))+ return cp.stdout+++def clean_note(text: str) -> str:+ """A runner note ("timed out after 900s") kept short and inert in Markdown."""+ text = _RC.sub("", text.strip())+ text = re.sub(r"[`|<>\[\]*_\\]", "", text)+ return text[:120].strip()+++def parse_log(text: str) -> Dict[str, dict]:+ """{file label: {"seconds": float|None, "note": str, "tests": [[kind, name, exception]]}} from a job log."""+ files: Dict[str, dict] = {}+ current: Optional[str] = None # the file whose output the lines belong to+ tests: List[list] = [] # its unittest failures so far+ pending: Optional[list] = None # the unittest entry waiting for its exception line++ def entry(label: str, seconds=None, note: str = "") -> dict:+ e = files.setdefault(label, {"seconds": seconds, "note": note, "tests": []})+ if e["seconds"] is None and seconds is not None:+ e["seconds"], e["note"] = seconds, note or e["note"]+ return e++ for raw in text.splitlines():+ line = _STAMP.sub("", raw.rstrip("\r"))+ m = _PROGRESS.match(line)+ if m:+ entry(m.group(1), float(m.group(2)), clean_note(m.group(3)))+ continue+ m = _BLOCK.match(line)+ if m:+ current, pending = m.group(1), None+ tests = entry(current)["tests"]+ continue+ m = _START.match(line)+ if m:+ current, tests, pending = m.group(1), [], None+ continue+ m = _SERIAL.match(line)+ if m:+ e = entry(m.group(1), float(m.group(3)), clean_note(m.group(4)))+ if current == m.group(1):+ e["tests"].extend(t for t in tests if t not in e["tests"])+ current, tests, pending = None, [], None+ continue+ if (line.startswith("test file ") and "result" in line) or line.startswith("=== "):+ # the summary table ends the failure blocks; a passing -j 1 file ends with "=== <file> PASS"+ current, tests, pending = None, [], None+ continue+ if current is None:+ continue+ m = _UNITTEST.match(line)+ if m:+ pending = [m.group(1), m.group(2), ""]+ if m.group(2) not in [t[1] for t in tests]:+ tests.append(pending)+ continue+ if pending is not None and not pending[2]:+ m = _EXC.match(line)+ if m:+ pending[2] = m.group(1)+ return files+++def failed_steps(job: dict) -> List[str]:+ return [s.get("name", "?") for s in job.get("steps") or [] if s.get("conclusion") == "failure"]+++def nightly_jobs(jobs: List[dict]) -> List[dict]:+ return [j for j in jobs if str(j.get("name", "")).startswith(JOB_PREFIX)]+++def os_of(job: dict) -> str:+ name = str(job.get("name", ""))+ return name[len(JOB_PREFIX):].rstrip(")") if name.startswith(JOB_PREFIX) else name+++def build_comment(jobs: List[dict], logs: Dict[int, str], run_url: str, commit_url: str = "") -> str:+ """The Markdown comment (or issue body) for a failed nightly run."""+ nj = nightly_jobs(jobs)+ bad = [j for j in nj if j.get("conclusion") not in ("success", "skipped")]+ good = [os_of(j) for j in nj if j.get("conclusion") == "success"]+ lines = ["The nightly run failed: %s" % run_url]+ if commit_url:+ lines.append("Commit: %s" % commit_url)+ lines.append("")+ if not bad:+ lines.append("No nightly job reported a failure (the run failed before or around them); see the run.")+ for j in bad:+ steps = failed_steps(j)+ head = "**%s**: %s" % (os_of(j), j.get("conclusion") or j.get("status") or "unknown")+ if steps:+ head += ", failed step%s: %s" % ("s" if len(steps) > 1 else "", ", ".join(steps))+ if j.get("html_url"):+ head += " ([log](%s))" % j["html_url"]+ lines.append(head)+ files = parse_log(logs.get(j.get("id"), "") or "")+ for i, (label, info) in enumerate(sorted(files.items())):+ if i == MAX_FILES_PER_JOB:+ lines.append("- ... and %d more test files" % (len(files) - MAX_FILES_PER_JOB))+ break+ bits = ["`%s`" % label]+ extra = [x for x in (info["note"], ("%.0f s" % info["seconds"]) if info["seconds"] is not None else "")+ if x]+ if extra:+ bits.append("(%s)" % ", ".join(extra))+ tests = info["tests"]+ if tests:+ shown = ["`%s`%s" % (name, (" " + exc) if exc else (" " + kind.lower() if kind == "ERROR" else ""))+ for kind, name, exc in tests[:MAX_TESTS_PER_FILE]]+ if len(tests) > MAX_TESTS_PER_FILE:+ shown.append("and %d more" % (len(tests) - MAX_TESTS_PER_FILE))+ bits.append(": " + ", ".join(shown))+ lines.append("- " + " ".join(bits).replace(" : ", ": "))+ lines.append("")+ if good:+ lines.append("Passed: %s." % ", ".join(good))+ return "\n".join(lines).rstrip() + "\n"+++def decide(result: str, full: bool, open_issue: Optional[int]) -> str:+ """create | comment | close | none."""+ if result == "failure":+ return "comment" if open_issue else "create"+ if result == "success" and full and open_issue:+ return "close"+ return "none"+++def find_issue(repo: str, gh: Gh) -> Optional[int]:+ out = gh(["issue", "list", "-R", repo, "--label", LABEL, "--state", "open", "--json", "number,title",+ "--limit", "20"], None)+ items = json.loads(out or "[]")+ if not items: # opened without its label (the label was missing): match the title, on issues this job opened+ out = gh(["issue", "list", "-R", repo, "--state", "open", "--author", BOT, "--search", '"%s" in:title' % TITLE,+ "--json", "number,title", "--limit", "20"], None)+ items = [i for i in json.loads(out or "[]") if i.get("title") == TITLE]+ return min(i["number"] for i in items) if items else None+++def fetch_jobs(repo: str, run_id: str, gh: Gh) -> List[dict]:+ out = gh(["api", "repos/%s/actions/runs/%s/jobs?per_page=100&filter=latest" % (repo, run_id)], None)+ return json.loads(out or "{}").get("jobs", [])+++def fetch_logs(repo: str, jobs: List[dict], gh: Gh) -> Dict[int, str]:+ logs: Dict[int, str] = {}+ for j in nightly_jobs(jobs):+ if j.get("conclusion") in ("success", "skipped") or not j.get("id"):+ continue+ try:+ logs[j["id"]] = gh(["api", "repos/%s/actions/jobs/%s/logs" % (repo, j["id"])], None)+ except RuntimeError as e: # logs can expire or be missing; the job line still says what failed+ print("note: no log for job %s: %s" % (j["id"], e), file=sys.stderr)+ return logs+++def main(argv: Optional[List[str]] = None, gh: Gh = run_gh) -> int:+ ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0],+ formatter_class=argparse.RawDescriptionHelpFormatter,+ epilog="Examples:\n"+ " python scripts/nightly_report.py --repo FavioVazquez/showtime "+ "--run-id 123 --result failure --dry-run")+ ap.add_argument("--repo", default=os.environ.get("GITHUB_REPOSITORY"), help="OWNER/NAME")+ ap.add_argument("--run-id", default=os.environ.get("GITHUB_RUN_ID"), help="the workflow run")+ ap.add_argument("--result", required=True, help="needs.nightly.result: success, failure, cancelled or skipped")+ ap.add_argument("--full", action="store_true", help="the run covered every OS image (a green one may close)")+ ap.add_argument("--server", default=os.environ.get("GITHUB_SERVER_URL", "https://github.com"))+ ap.add_argument("--dry-run", action="store_true", help="print what would be posted; write nothing")+ args = ap.parse_args(argv)+ if not args.repo or not args.run_id:+ ap.error("--repo and --run-id are needed (or GITHUB_REPOSITORY and GITHUB_RUN_ID)")+ run_url = "%s/%s/actions/runs/%s" % (args.server, args.repo, args.run_id)+ issue = find_issue(args.repo, gh)+ action = decide(args.result, args.full, issue)+ print("nightly result %s, full=%s, open issue %s: %s" % (args.result, args.full, issue or "none", action))+ if action == "none":+ return 0+ if action == "close":+ text = "Green again: %s\n" % run_url+ cmd = ["issue", "close", str(issue), "-R", args.repo, "--comment", text]+ if args.dry_run:+ print("would run: gh " + " ".join(cmd[:5]) + "\n" + text)+ else:+ gh(cmd, None)+ return 0+ jobs = fetch_jobs(args.repo, args.run_id, gh)+ logs = fetch_logs(args.repo, jobs, gh)+ sha = next((j.get("head_sha") for j in jobs if j.get("head_sha")), "")+ commit_url = "%s/%s/commit/%s" % (args.server, args.repo, sha) if sha else ""+ body = build_comment(jobs, logs, run_url, commit_url)+ if action == "comment":+ cmd = ["issue", "comment", str(issue), "-R", args.repo, "--body-file", "-"]+ else:+ cmd = ["issue", "create", "-R", args.repo, "--title", TITLE, "--body-file", "-", "--label", LABEL]+ for lab in EXTRA_LABELS:+ cmd += ["--label", lab]+ if args.dry_run:+ print("would run: gh " + " ".join(cmd) + "\n---\n" + body)+ return 0+ try:+ print(gh(cmd, body).strip())+ except RuntimeError:+ if action != "create":+ raise+ # a label that does not exist fails the create: open it without labels (found again by its title)+ print(gh(["issue", "create", "-R", args.repo, "--title", TITLE, "--body-file", "-"], body).strip())+ return 0+++if __name__ == "__main__":+ try:+ sys.exit(main())+ except RuntimeError as e:+ print("error: %s" % e, file=sys.stderr)+ sys.exit(1)diff --git a/scripts/render_speed.py b/scripts/render_speed.pyindex 750becc..cc4071a 100644--- a/scripts/render_speed.py+++ b/scripts/render_speed.py@@ -1,7 +1,7 @@#!/usr/bin/env python3"""Render speed, before and after: the same projects rendered by two showtime versions, interleaved, best of N.- python scripts/render_speed.py --out ~/rs # integ/0.4.1 vs this checkout+ python scripts/render_speed.py --out ~/rs # v0.4.0 vs this checkoutpython scripts/render_speed.py --out ~/rs --before v0.4.0 --after HEAD --reps 2python scripts/render_speed.py --out ~/rs --gpu off --workers auto,3,8,16 # a machine without a GPUpython scripts/render_speed.py --out ~/rs --variants seq,medium,prewarm,noflag --templates showreel@@ -170,7 +170,7 @@ def render(skill: Path, proj: Path, out: Path, args: List[str], env_extra: Dict[def main() -> int:ap = argparse.ArgumentParser(description=__doc__.split("\n")[0])ap.add_argument("--out", required=True, help="results folder (renders go to OUT/renders, deleted unless --keep)")- ap.add_argument("--before", default="integ/0.4.1", help="git ref or skill folder (default integ/0.4.1)")+ ap.add_argument("--before", default="v0.4.0", help="git ref or skill folder (default v0.4.0, the previous release)")ap.add_argument("--after", default=str(REPO / "skills" / "showtime"), help="git ref or skill folder (default: this checkout)")ap.add_argument("--templates", default="showreel,dom,launch")ap.add_argument("--projects", help="folder with one project per template name (default: showtime new)")diff --git a/server.json b/server.jsonindex 2db20a7..4bcad1d 100644--- a/server.json+++ b/server.json@@ -3,7 +3,7 @@"name": "io.github.FavioVazquez/showtime","title": "showtime","description": "Local video studio for your coding agent: scenes, voice, music and captions, on your machine.",- "version": "0.4.0",+ "version": "0.4.1","websiteUrl": "https://faviovazquez.github.io/showtime/","repository": {"url": "https://github.com/FavioVazquez/showtime",@@ -26,7 +26,7 @@"registryType": "npm","registryBaseUrl": "https://registry.npmjs.org","identifier": "@faviovazquez/showtime-mcp",- "version": "0.4.0",+ "version": "0.4.1","runtimeHint": "npx","transport": {"type": "stdio"diff --git a/site/build.py b/site/build.pyindex e894518..2e49008 100644--- a/site/build.py+++ b/site/build.py@@ -336,7 +336,11 @@ class Site:if dst not in self.copied:p = self.out / dstp.parent.mkdir(parents=True, exist_ok=True)- shutil.copy2(src, p)+ if is_html and src.name == "index.html" and (src.parent / "assets" / "vfs.js").is_file():+ # a folder export (export html --folder): index.html loads assets/ beside it, so copy the folder+ shutil.copytree(str(src.parent), str(p.parent), dirs_exist_ok=True)+ else:+ shutil.copy2(src, p)self.copied[dst] = repo_relreturn dst, fallback@@ -581,11 +585,16 @@ def art(site: Site, page: str, name: str, alt: str, narrow: bool = True, max_wid# ----------------------------------------------------------------------------------------------- examples+EX_ID = r"(\d\d|[a-z][a-z0-9-]*)" # a numbered example (ex-07), or a named demo card (ex-looks: examples/_looks)+ALSO_RE = r'Also in this group: <a href="#ex-%s"' % EX_ID++def parse_examples() -> Tuple[List[Tuple[str, str]], List[dict]]:- """Cards from examples/README.md (the single source of the gallery): groups, then examples."""+ """Cards from examples/README.md (the single source of the gallery): groups, then examples. A card's id is its+ number, or a name for a demo folder (examples/_looks); demos sort after the numbered examples."""txt = (EXAMPLES / "README.md").read_text(encoding="utf-8")groups, exs, cur = [], {}, None- order = []+ order, also = [], [] # also: (card, group) from "Also in this group" lines, applied once every card is readfor block in re.split(r"(?=^## |<a id=\"ex-)", txt, flags=re.M):m = re.match(r"^## (.+)$", block, re.M)if block.startswith("## ") and m:@@ -595,16 +604,15 @@ def parse_examples() -> Tuple[List[Tuple[str, str]], List[dict]]:continuecur = re.sub(r"[^a-z0-9]+", "-", name.lower()).strip("-")groups.append((cur, name))- for n in re.findall(r'Also in this group: <a href="#ex-(\d\d)"', block):- exs[n]["tags"].append(cur)+ also += [(n, cur) for n in re.findall(ALSO_RE, block)]continue- m = re.match(r'<a id="ex-(\d\d)"></a>', block)+ m = re.match(r'<a id="ex-%s"></a>' % EX_ID, block)if not m or not cur:continuen = m.group(1)folder = re.search(r'<a href="([^"/]+)/"><img', block).group(1)alt = html.unescape(re.search(r'<img src="[^"]+" width="100%" alt="([^"]*)"', block).group(1))- meta = html.unescape(re.search(r"<sub>\d\d · (.+?)</sub><br>", block).group(1))+ meta = html.unescape(re.search(r"<sub>(?:\d\d|Demo) · (.+?)</sub><br>", block).group(1))title = html.unescape(re.search(r'<b><a href="[^"]+/">(.+?)</a></b>', block).group(1))prompt = html.unescape(re.search(r"<i>“(.*?)”</i>", block, re.S).group(1))what = html.unescape(re.search(r"WHAT IT SHOWS</sub><br>(.*?)</p>", block, re.S).group(1))@@ -617,11 +625,18 @@ def parse_examples() -> Tuple[List[Tuple[str, str]], List[dict]]:"watch": watch, "html": hv, "tags": tags}exs[n] = eorder.append(n)- for n in re.findall(r'Also in this group: <a href="#ex-(\d\d)"', txt):- pass+ also += [(a, cur) for a in re.findall(ALSO_RE, block)] # a line under this card, still in its group+ for n, g in also:+ if n in exs and g not in exs[n]["tags"]:+ exs[n]["tags"].append(g)return groups, [exs[n] for n in sorted(order)]+def ex_label(e: dict) -> str:+ """How a card is named in crumbs and search: its number (07), or Demo for a named demo card."""+ return e["num"] if e["num"].isdigit() else "Demo"++RELEASE_LINK = re.compile(r"^(?:\{\{RELEASE_URL\}\}|https://github\.com/[^/]+/[^/]+/releases/download/[^/]+)/(.+)$")@@ -772,15 +787,18 @@ def build_example_pages(site: Site, exs) -> None:hl, hfb = site.media(ex_path(h), folder)name = h.split("/")[-1]if hl:- embeds.append('<h2 id="html-video" style="margin-top:0">The HTML video</h2><p><code>%s</code> is the single-file export, '+ folder_export = name == "index.html" and (src_path(ex_path(h)).parent / "assets" / "vfs.js").is_file()+ what = ("<code>%s/</code> is the folder export (<code>index.html</code> and <code>assets/</code>)" % esc(h.split("/")[-2])+ if folder_export else "<code>%s</code> is the single-file export" % esc(name))+ embeds.append('<h2 id="html-video" style="margin-top:0">The HTML video</h2><p>%s, ''playing right here. Click it, then press <kbd>?</kbd> for the keys, or <a href="%s">open it on its own</a>.</p>''<div class="htmlvid"><iframe src="%s" title="HTML video: %s" loading="lazy" allow="fullscreen"></iframe></div>'- % (esc(name), rel(page, hl), rel(page, hl), esc(e["title"])))+ % (what, rel(page, hl), rel(page, hl), esc(e["title"])))breakhead = ('<div class="wrap"><div class="ex-head"><div class="crumbs"><a href="%s">Examples</a> / %s</div>''<p class="spec">%s</p><h1 class="title">%s</h1><p class="ask">\u201c%s\u201d</p></div>''<div class="players">%s</div></div>'- % (rel(page, "gallery.html"), esc(e["num"]), esc(e["meta"]), esc(e["title"]), esc(e["prompt"]), "".join(players)))+ % (rel(page, "gallery.html"), esc(ex_label(e)), esc(e["meta"]), esc(e["title"]), esc(e["prompt"]), "".join(players)))more = ""if site.repo:more = '<p class="edit"><a href="%s">The project files on GitHub</a></p>' % esc(site.gh("examples/" + folder, True))@@ -788,7 +806,7 @@ def build_example_pages(site: Site, exs) -> None:"".join(embeds), body_html, more)write(site, page, shell(site, page, e["title"], body, "gallery", what_sentence(e)))site.h2_expect[page] = ("examples/%s/README.md" % folder, md_h2_count(text) + len(embeds))- site.search.append(search_entry(site, "Example %s: %s" % (e["num"], e["title"]), page, text, heads,+ site.search.append(search_entry(site, ("Example %s: %s" if e["num"].isdigit() else "%s: %s") % (ex_label(e), e["title"]), page, text, heads,lead=e["prompt"] + "\n" + e["what"]))@@ -1166,8 +1184,8 @@ calls the video done.</p></div>{pipeline}<div class="split" id="works-with"><div><h3>Install it in your agent</h3><p>You need <a href="https://docs.astral.sh/uv/">uv</a> and <a href="https://nodejs.org">Node.js</a> 24 or 22 LTS (20 or newer works).-The first request checks what is missing and tells you the size and time, about 0.6 to 0.8 GB into <code>~/.showtime</code> and 2 to 6-minutes, then runs setup once you say yes. Bigger pieces, like Whisper for transcripts, come the first time a video needs them.</p>+The first request checks what is missing and tells you the size and time, about 0.5 to 0.75 GB to download (1.4 to 1.8 GB in+<code>~/.showtime</code> once installed) and 2 to 6 minutes, then runs setup once you say yes. Bigger pieces, like Whisper for transcripts, come the first time a video needs them.</p><p>Every request gets its own folder with <code>final.mp4</code>, a poster, captions, exports and share copy. Nothing is overwritten.</p><p><a class="link-arrow" href="docs/agents.html">Exact steps for Claude Code, Codex, Cursor, Devin, OpenCode and more <span>→</span></a></p></div><div class="copy install"><pre><code># Claude Code@@ -1285,9 +1303,9 @@ def tag_html_videos(site: Site, exs: List[dict]) -> List[str]:e = by_folder.get(folder)board = "studio-board" in dstif e:- desc = describe("%s made with showtime, example %s. %s" % (+ desc = describe("%s made with showtime, %s. %s" % ("The studio board of a video job, one HTML file," if board else "An interactive HTML video",- e["num"], what_sentence(e)))+ ("example " + e["num"]) if e["num"].isdigit() else "a demo", what_sentence(e)))else:desc = describe(html.unescape(own.group(1))) if own else "An interactive HTML video made with showtime."# the poster beside the page's source (a series episode has its own), else the example'sdiff --git a/site/content/previews.json b/site/content/previews.jsonindex d42dd72..bdd10c5 100644--- a/site/content/previews.json+++ b/site/content/previews.json@@ -88,6 +88,46 @@"22-manim-circle-area": {"from": 3.93,"dur": 4.0+ },+ "23-talking-head-cards-nasa": {+ "from": 39.8,+ "dur": 4.0+ },+ "24-highlights-apollo17-panel": {+ "from": 6.0,+ "dur": 4.0+ },+ "25-nobel-physics-ice-telescope": {+ "from": 36.0,+ "dur": 4.0+ },+ "26-nobel-chemistry-en-es": {+ "from": 21.0,+ "dur": 4.0+ },+ "28-claude-design-to-mp4": {+ "from": 4.6,+ "dur": 4.0+ },+ "29-pr-video-showtime": {+ "from": 17.6,+ "dur": 4.0+ },+ "30-showreel-four-shapes": {+ "from": 1.0,+ "dur": 4.0+ },+ "32-twelve-looks": {+ "from": 0.8,+ "dur": 4.0+ },+ "_looks": {+ "from": 14.4,+ "dur": 4.0+ },+ "_blur": {+ "from": 3.5,+ "dur": 4.0}}-}\ No newline at end of file+}diff --git a/skills/showtime/SKILL.md b/skills/showtime/SKILL.mdindex 501acf9..4280b3f 100644--- a/skills/showtime/SKILL.md+++ b/skills/showtime/SKILL.md@@ -129,7 +129,7 @@ Log each stage boundary: `showtime job note <job> --stage <name> --verified ...|---|---|| "The render exited 0, so it's fine" | Run `showtime qa <job>`; the log proves frames were written, not that the file is right || "I'll wait for a yes before the final" (quick mode) | Show the first look and keep going; confirm only destructive or costly steps |-| "The template is close enough" | `--duration <len>` (or `showtime retime`); no placeholder left (74 %, northwind.app) |+| "The template is close enough" | `--duration <len>` (or `showtime retime`); no placeholder left (74 %, northwind.example) || "check passed with warnings" | Read every WARN; `short_text`, still holds and `slow_scene` are real defects: fix them || "I'll call ffmpeg directly" | `footage trim`, `snap <video>`, `deliver exports --max-mb` (or `--targets gif,webp`) || "A stat or a plausible detail would help" | Only sourced specifics: docs or a saved run (`references/story.md` §6); label sample data |diff --git a/skills/showtime/bin/showtime b/skills/showtime/bin/showtimeindex 6486140..0f374e3 100755--- a/skills/showtime/bin/showtime+++ b/skills/showtime/bin/showtime@@ -15,8 +15,11 @@ bin_dir=$(cd "$(dirname "$self")" && pwd -P)launcher="$bin_dir/../lib/st/launcher.py"st_home="${SHOWTIME_HOME:-$HOME/.showtime}"-# Fast path: the showtime venv interpreter (Linux/macOS layout, then Git Bash on Windows).-for py in "$SHOWTIME_PYTHON" "$st_home/venv/bin/python" "$st_home/venv/Scripts/python.exe"; do+# Fast path: the showtime venv interpreter (Linux/macOS layout, then Git Bash on Windows). Not for+# `setup` on Windows: setup may rebuild the venv, and Windows cannot delete a running python.exe.+win_venv="$st_home/venv/Scripts/python.exe"+[ "$1" = "setup" ] && win_venv=""+for py in "$SHOWTIME_PYTHON" "$st_home/venv/bin/python" "$win_venv"; doif [ -n "$py" ] && [ -x "$py" ]; thenexec "$py" "$launcher" "$@"fi@@ -38,6 +41,10 @@ for uv in "$(command -v uv 2>/dev/null)" "${XDG_BIN_HOME:-}/uv" "$HOME/.local/bifidone+if [ -x "$st_home/venv/Scripts/python.exe" ]; then+ exec "$st_home/venv/Scripts/python.exe" "$launcher" "$@"+fi+# the plugin's Stop hook (receipt --hook) must never fail a turn, even before Python is installedcase " $* " in *" receipt "*" --hook "*) exit 0 ;; esacdiff --git a/skills/showtime/bin/showtime.cmd b/skills/showtime/bin/showtime.cmdindex 3cb500f..86c6eda 100644--- a/skills/showtime/bin/showtime.cmd+++ b/skills/showtime/bin/showtime.cmd@@ -7,7 +7,10 @@ set "ST_LAUNCHER=%~dp0..\lib\st\launcher.py"set "ST_HOME=%USERPROFILE%\.showtime"if defined SHOWTIME_HOME set "ST_HOME=%SHOWTIME_HOME%"if defined SHOWTIME_PYTHON goto custom+rem setup may rebuild the venv, and Windows cannot delete a running python.exe: run it with a Python outside the venv+if /i "%~1"=="setup" goto findpyif exist "%ST_HOME%\venv\Scripts\python.exe" goto venv+:findpywhere py >nul 2>nul && py -3 -c "import sys; sys.exit(0 if sys.version_info >= (3, 8) else 1)" >nul 2>nul && goto pylauncherwhere python >nul 2>nul && python -c "import sys; sys.exit(0 if sys.version_info >= (3, 8) else 1)" >nul 2>nul && goto pythonwhere uv >nul 2>nul && goto uv@@ -18,6 +21,7 @@ set "ST_UV=%USERPROFILE%\.cargo\bin\uv.exe"if exist "%ST_UV%" goto uvpathset "ST_UV=%LOCALAPPDATA%\Microsoft\WinGet\Links\uv.exe"if exist "%ST_UV%" goto uvpath+if exist "%ST_HOME%\venv\Scripts\python.exe" goto venvecho showtime: no Python 3.8+ found. 1>&2echo Install uv: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" 1>&2echo or Python 3 from https://www.python.org/downloads/ , then run: showtime setup 1>&2diff --git a/skills/showtime/bin/showtime.ps1 b/skills/showtime/bin/showtime.ps1index d86eb73..8bc4c3c 100644--- a/skills/showtime/bin/showtime.ps1+++ b/skills/showtime/bin/showtime.ps1@@ -16,7 +16,9 @@ if ($env:SHOWTIME_PYTHON) {}$venvPy = Join-Path $stHome 'venv\Scripts\python.exe'if (-not (Test-Path $venvPy)) { $venvPy = Join-Path $stHome 'venv/bin/python' }-if (Test-Path $venvPy) {+# setup may rebuild the venv, and Windows cannot delete a running python.exe: run it with a Python outside the venv+$isSetup = ($args.Count -gt 0 -and "$($args[0])" -eq 'setup')+if ((Test-Path $venvPy) -and -not $isSetup) {& $venvPy $launcher @args; exit $LASTEXITCODE}if ((Get-Command py -ErrorAction SilentlyContinue) -and (Test-Python 'py' @('-3'))) {@@ -39,6 +41,9 @@ if (-not $uv) {if ($uv) {& $uv run --no-project --python 3.12 python $launcher @args; exit $LASTEXITCODE}+if (Test-Path $venvPy) {+ & $venvPy $launcher @args; exit $LASTEXITCODE+}Write-Error ("showtime: no Python 3.8+ found. Install uv: " +'powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"' +" (or Python 3 from https://www.python.org/downloads/), then run: showtime setup. " +diff --git a/skills/showtime/lib/st/__init__.py b/skills/showtime/lib/st/__init__.pyindex 01d1244..1d5fd17 100644--- a/skills/showtime/lib/st/__init__.py+++ b/skills/showtime/lib/st/__init__.py@@ -7,7 +7,7 @@ inside the showtime virtualenv (~/.showtime/venv, Python 3.12)."""import os-__version__ = "0.4.0"+__version__ = "0.4.1"# onnxruntime (Kokoro, alignment, stem separation, rembg) ships Microsoft's telemetry client on Linux# and starts it at import; this turns it off for every process that imports st, and for its children.diff --git a/skills/showtime/lib/st/audio/meter.py b/skills/showtime/lib/st/audio/meter.pyindex b8646c0..d9d7e4e 100644--- a/skills/showtime/lib/st/audio/meter.py+++ b/skills/showtime/lib/st/audio/meter.py@@ -241,6 +241,8 @@ def ffmpeg_ebur128(path) -> Dict[str, Optional[float]]:cp = ff.run_ffmpeg(["-nostats", "-i", str(path), "-vn", "-af", "ebur128=peak=true", "-f", "null", "-"],loglevel="info", overwrite=False, check=False)e = cp.stderr or ""+ if cp.returncode != 0: # a failed run still prints a Summary of zeros (I: 0.0 LUFS)+ return {"integrated_lufs": None, "lra": None, "true_peak_dbtp": None}summary = e[e.rfind("Summary:"):] if "Summary:" in e else edef g(pat: str) -> Optional[float]:diff --git a/skills/showtime/lib/st/audio/mix.py b/skills/showtime/lib/st/audio/mix.pyindex 96859f8..7f3f21b 100644--- a/skills/showtime/lib/st/audio/mix.py+++ b/skills/showtime/lib/st/audio/mix.py@@ -36,6 +36,9 @@ Track fieldsat, align place the source's hit|start|end|peak at `at` (hit is measured or given as `hit`)loop true: loop (bar-aligned when a beat grid is known) to fill the windowfit true: loop or trim musically to exactly fill the window (music)+ ending with fit, how a trimmed track ends (as `audio fit --ending`): "auto" (default: on a+ downbeat, with a short decay), "song" (the track's own last bars spliced in at a downbeat,+ so it ends on its cadence and final hit) or "fade"; an ending implies fitfade_in, fade_out, pan (-1..1)duck {"under": kinds or track ids, "depth_db": 12, "attack": 0.08, "release": 0.5,"hold": 0.3, "lookahead": 0.12, "carve": 0..1}; the key can be any tracks (voice, a@@ -706,6 +709,9 @@ def source_offset(tr: dict, idx: int, meta: dict) -> Tuple[float, Optional[str]]return _num(v, "offset", idx, 0.0, 0.0), None+ENDINGS = ("auto", "song", "fade") # a fitted track's ending (fit.fit, audio fit --ending)++def place(tr: dict, idx: int, src: Source, kind: str, N: int, mix_dur: float) -> Tuple[np.ndarray, Dict]:x = src.audiometa = src.meta@@ -741,7 +747,13 @@ def place(tr: dict, idx: int, src: Source, kind: str, N: int, mix_dur: float) ->dur = _num(tr.get("dur"), "dur", idx, None, 0.0)if dur is not None and end is None:end = start + dur- want_fill = bool(tr.get("loop") or tr.get("fit"))+ ending = tr.get("ending")+ if ending is not None:+ ending = str(ending).strip().lower()+ if ending not in ENDINGS:+ raise ShowtimeError('track %d: "ending" must be %s' % (idx, ", ".join('"%s"' % e for e in ENDINGS)),+ hint='"ending": "song" keeps the track\'s own last bars (as audio fit --ending song)')+ want_fill = bool(tr.get("loop") or tr.get("fit") or ending)if end is None:end = mix_dur if want_fill else min(mix_dur, start + src_dur)win = max(0.0, end - start)@@ -750,7 +762,8 @@ def place(tr: dict, idx: int, src: Source, kind: str, N: int, mix_dur: float) ->if want_fill:from . import fit as fitmod# the grid must match the audio after `offset` (it used to be the file's own, off by the offset)- y, finfo = fitmod.fit(x, win, fitmod.shift_beats(meta.get("beats"), offset or 0.0), fade_out=tr.get("fade_out"))+ y, finfo = fitmod.fit(x, win, fitmod.shift_beats(meta.get("beats"), offset or 0.0), fade_out=tr.get("fade_out"),+ ending=ending or "auto")info["fit"] = finfoelse:y = x[: int(round(win * SR))]@@ -1006,7 +1019,7 @@ SPEAKER_HP_HZ = 40.0SPEAKER_SHELF_HZ = 160.0 # the bass of a bed (kick, bass line) sits at 60-250 Hz; a phone plays from ~300SPEAKER_MAX_CUT_DB = 12.0SPEAKER_SUB_SFX_LU = 15.0 # an effect whose loudest moment is this far over its own loudest above 300 Hz (a boom,- # a sub drop, a cinematic impact): measured 17-30 LU, a whoosh or riser 0-4, a thock 11+ # a sub drop, a cinematic impact): measured 17-30 LU, a whoosh or riser 0-4, a thock 9-11def _sos_hp(fc: float, fs: int = SR) -> np.ndarray:@@ -1083,7 +1096,7 @@ def _sub_only(per_track: List[Dict], tracks: List[dict], sub_ids: List[str]) ->def _sub_note(alone: List[Dict]) -> str:return ("%s %s: %s louder in full than above 300 Hz, so a phone or laptop speaker hardly plays %s. Layer a mid "- "transient on the same hit (metal-hit, glitch or static-burst at -8 to -12 dB with \"layer\": \"<id>\"), "+ "transient on the same hit (static-burst, glitch or tick at -8 to -12 dB with \"layer\": \"<id>\"), ""or land it on the bed's crash" % ("effect" if len(alone) == 1 else "effects",", ".join("%s (%s%s)" % (a["id"], a["name"], " at %.2fs" % a["t"] if a["t"] is not None else "")diff --git a/skills/showtime/lib/st/cli.py b/skills/showtime/lib/st/cli.pyindex 4e42440..b7af8a4 100644--- a/skills/showtime/lib/st/cli.py+++ b/skills/showtime/lib/st/cli.py@@ -168,6 +168,13 @@ def explain(exc: BaseException) -> ShowtimeError:return ShowtimeError("a Python package is missing: %s" % exc.name,why="the showtime environment is incomplete or this feature needs an optional extra",hint="run `showtime doctor`; `showtime setup` installs what is missing")+ if isinstance(exc, ImportError):+ from . import platform as _plat+ fix = _plat.explain_dll_error(str(exc))+ if fix:+ return ShowtimeError("a Python package could not load its DLLs: %s" % exc.name if exc.name else+ "a Python package could not load its DLLs",+ why=str(exc).splitlines()[0][:200], hint=fix)where = ""tb = exc.__traceback__while tb is not None and tb.tb_next is not None:diff --git a/skills/showtime/lib/st/cli_core.py b/skills/showtime/lib/st/cli_core.pyindex 15ac4c3..a8c67c9 100644--- a/skills/showtime/lib/st/cli_core.py+++ b/skills/showtime/lib/st/cli_core.py@@ -211,7 +211,9 @@ def register_new(sub: argparse._SubParsersAction) -> None:"starts. Canvas projects: every number in the `var CUE = {...}` table of the\n""project's *.js files is scaled (except cps), and bpm is adjusted so the cues stay on\n""bar lines. A scene stretched more than %gx gets a warning: it now holds still after\n"- "its last animation, so give it more content or motion.\n\n"+ "its last animation, so give it more content or motion. A scene marked\n"+ "data-stretch=\"spread\" spreads instead: its component start times scale with it and\n"+ "their lengths stay, so its beats move apart at the same speed.\n\n""--from-voice <timeline.json> (from `showtime voice script`) sets the scene lengths from\n""the narration instead: lines are matched to scenes by id (a line \"bars\" narrates the\n""scene id=\"bars\"), else in order, else by --map. Each narrated scene becomes --pad +\n"@@ -735,6 +737,8 @@ _INNER_TIMES = ("data-at", "data-dur", "data-exit-at", "data-exit-dur", "data-ho# typewriter / code-block: finish typing within this many seconds (ken-burns' data-fit# is a word, "cover"/"contain", and never matches the number test)"data-fit")+# the start times among them: what a data-stretch="spread" scene moves apart when it gets longer+_SPREAD_TIMES = ("data-at", "data-exit-at", "data-diff-at")_NUM = r"-?\d+(?:\.\d+)?|-?\.\d+"@@ -879,11 +883,15 @@ class _SceneMap:`pairs` = [((old_start, old_end), (new_start, new_end)), ...] for the top-level scenes. A timeinside a scene keeps its offset from the scene start when the scene gets longer (animations runat the same speed, the scene holds longer) and is scaled with the scene when it gets shorter.- Times outside every scene are interpolated between the scene boundaries.+ A scene marked data-stretch="spread" (indexes in `spread`) spreads its times over a longer length+ too: its beats move apart, its animations keep their speed. Times outside every scene are+ interpolated between the scene boundaries."""- def __init__(self, pairs: List[Any], old: float, new: float) -> None:- self.pairs = [p for p in pairs if p[0][0] == p[0][0] and p[1][0] == p[1][0]]+ def __init__(self, pairs: List[Any], old: float, new: float, spread: Any = ()) -> None:+ keep = [i for i, p in enumerate(pairs) if p[0][0] == p[0][0] and p[1][0] == p[1][0]]+ self.pairs = [pairs[i] for i in keep]+ self.spreads = {j for j, i in enumerate(keep) if i in set(spread)}self.old, self.new = old, newpts: Dict[float, float] = {0.0: 0.0}for (os_, oe), (ns, ne) in self.pairs:@@ -899,6 +907,13 @@ class _SceneMap:return 1.0return min(1.0, (ne - ns) / (oe - os_))+ def spread(self, i: int) -> float:+ """How far a data-stretch="spread" scene's beats move apart (its new length over its old), else 1."""+ (os_, oe), (ns, ne) = self.pairs[i]+ if i not in self.spreads or oe == _INF or ne == _INF or oe - os_ <= 1e-9:+ return 1.0+ return max(1.0, (ne - ns) / (oe - os_))+def scene_of(self, t: float) -> Optional[int]:best = Nonefor i, ((os_, oe), _) in enumerate(self.pairs):@@ -923,7 +938,7 @@ class _SceneMap:if i is None:return self._lerp(t)(os_, oe), (ns, ne) = self.pairs[i]- v = ns + (t - os_) * self.factor(i)+ v = ns + (t - os_) * self.factor(i) * self.spread(i)return min(v, ne) if ne != _INF else v@@ -992,7 +1007,8 @@ def _retime_html(text: str, old: float, new: float, plan: Optional[List[Any]] =targets.append((ns, ne))else:targets = list(plan)- smap = _SceneMap([((c["t0"], c["t1"]), tg) for c, tg in zip(scenes, targets)], old, new)+ spread = [i for i, c in enumerate(scenes) if (c["attrs"].get("data-stretch") or "").strip().lower() == "spread"]+ smap = _SceneMap([((c["t0"], c["t1"]), tg) for c, tg in zip(scenes, targets)], old, new, spread)index = {id(c): i for i, c in enumerate(scenes)}edits: List[Any] = []for t in doc.tags:@@ -1001,6 +1017,7 @@ def _retime_html(text: str, old: float, new: float, plan: Optional[List[Any]] =inside = t["parent"] is not Nonesc = _top_of(t)kin = smap.factor(index[id(sc)]) if sc is not None and id(sc) in index else k+ ksp = smap.spread(index[id(sc)]) if sc is not None and id(sc) in index else 1.0if t["clip"] and top and id(t) in over_ids:# an overlay: its start and end follow the scenes they fall in (a credit across two scenes)sp = _CLIP_TIME.match(a.get("data-start") or "")@@ -1071,6 +1088,17 @@ def _retime_html(text: str, old: float, new: float, plan: Optional[List[Any]] =if m:x = float(m.group(2)) # a shorter handoff, but not a jump cutraw = _set_attr(raw, "data-transition", tr[:m.start(2)] + _fmt(max(x * kin, min(x, 0.35))))+ elif ksp > 1 and inside:+ # a longer data-stretch="spread" scene: the component start times spread with it (beats move+ # apart), the lengths stay (each animation keeps its speed)+ for name in _SPREAD_TIMES:+ if a.get(name) not in (None, "") and re.match(r"^\s*(%s)\s*$" % _NUM, a[name]):+ raw = _set_attr(raw, name, _fmt(float(a[name]) * ksp))+ for name, v in a.items():+ if name.startswith("data-") and v and v.lstrip()[:1] in "[{" and name != "data-st":+ nv = _scale_json_times(v, ksp, name)+ if nv != v:+ raw = _set_attr(raw, name, nv.replace('"', """) if _quote_of(t["raw"], name) == '"' else nv)elif not inside and not t["clip"] and a.get("data-at") not in (None, ""):# a component outside every clip: its start is absolutetry:@@ -1101,8 +1129,9 @@ def _retime_html(text: str, old: float, new: float, plan: Optional[List[Any]] =final = _split_tops(_Tags(out).resolve())[0]info = {"scenes": [{"name": c["id"] or c["attrs"].get("data-name") or c["tag"],"from": [_r(o["t0"]), _r(o["t1"]) if o["t1"] != _INF else None],- "to": [_r(c["t0"]), _r(c["t1"]) if c["t1"] != _INF else None]}- for o, c in zip(scenes, final)] if len(final) == len(scenes) else []}+ "to": [_r(c["t0"]), _r(c["t1"]) if c["t1"] != _INF else None],+ **({"spread": True} if i in spread else {})}+ for i, (o, c) in enumerate(zip(scenes, final))] if len(final) == len(scenes) else []}words = [t["attrs"].get("data-src") for t in doc.tagsif t["attrs"].get("data-st") in ("caption-karaoke", "captions") and t["attrs"].get("data-src")]return out, smap, info, words@@ -1279,7 +1308,7 @@ def _stretch_notes(scenes: List[Dict[str, Any]]) -> List[str]:continueratio = (b1 - b0) / (a1 - a0)extra = (b1 - b0) - (a1 - a0)- if ratio > STRETCH_WARN and extra >= 1.0:+ if ratio > STRETCH_WARN and extra >= 1.0 and not sc.get("spread"):long.append("%s x%.1f (+%.1fs)" % (sc["name"], ratio, extra))if not long:return []diff --git a/skills/showtime/lib/st/cli_footage.py b/skills/showtime/lib/st/cli_footage.pyindex 2fcbef8..f0619ea 100644--- a/skills/showtime/lib/st/cli_footage.py+++ b/skills/showtime/lib/st/cli_footage.py@@ -1674,6 +1674,8 @@ def cmd_grade(args) -> int:out.parent.mkdir(parents=True, exist_ok=True)vf = ("split=2[a][b];[b]%s[g];[a]scale=960:-2,drawbox=w=iw:h=ih:c=black@0:t=0[a2];[g]scale=960:-2[g2];""[a2][g2]hstack" % (chain or "null"))+ if out.suffix.lower() in (".jpg", ".jpeg"):+ vf += "," + ff.JPEG_VF # JPEG's own colours (BT.601 full range), as postersff.run_ffmpeg(["-ss", "%.3f" % t, "-i", str(src), "-frames:v", "1", "-filter_complex", vf, str(out)])if args.json:print_json({"png": str(out), "filter": chain})diff --git a/skills/showtime/lib/st/common.py b/skills/showtime/lib/st/common.pyindex 8119159..9671f1e 100644--- a/skills/showtime/lib/st/common.py+++ b/skills/showtime/lib/st/common.py@@ -439,6 +439,9 @@ def write_json(path: PathLike, data: Any, indent: int = 2) -> Path:return p+_WINDOWS = os.name == "nt"++def part_path(path: PathLike) -> Path:"""A temporary sibling for writing `path` and then os.replace-ing it into place.@@ -447,7 +450,11 @@ def part_path(path: PathLike) -> Path:kept last so tools that infer the format from it (ffmpeg, soundfile) still work."""import uuidp = Path(path)- return p.with_name(".%s.%d-%s.part%s" % (p.stem, os.getpid(), uuid.uuid4().hex[:8], p.suffix))+ tmp = p.with_name(".%s.%d-%s.part%s" % (p.stem, os.getpid(), uuid.uuid4().hex[:8], p.suffix))+ if _WINDOWS and len(str(tmp)) >= 255:+ # Windows with long paths off (LongPathsEnabled=0) cannot open a path of 260 characters or more+ tmp = p.with_name(".%d-%s.part%s" % (os.getpid(), uuid.uuid4().hex[:8], p.suffix))+ return tmp@contextlib.contextmanager@@ -537,14 +544,21 @@ def output_dir(name: str, base: Optional[PathLike] = None, create: bool = True)if root.name != "showtime-out":root = root / "showtime-out"stem = "%s-%s" % (slugify(name), timestamp())- d = root / stem- n = 2- while d.exists():- d = root / ("%s-%d" % (stem, n))- n += 1if create:- d.mkdir(parents=True, exist_ok=False)- return d+ root.mkdir(parents=True, exist_ok=True)+ n = 1+ while True:+ d = root / (stem if n == 1 else "%s-%d" % (stem, n))+ n += 1+ if not create:+ if not d.exists():+ return d+ continue+ try:+ d.mkdir() # claimed by an exclusive mkdir: two runs in the same second never share a folder+ return d+ except FileExistsError:+ continue# --------------------------------------------------------------------------diff --git a/skills/showtime/lib/st/deliver/exports.py b/skills/showtime/lib/st/deliver/exports.pyindex 006e2a4..70f9d98 100644--- a/skills/showtime/lib/st/deliver/exports.py+++ b/skills/showtime/lib/st/deliver/exports.py@@ -430,7 +430,9 @@ def export_one(src: PathLike, target: Target, out: PathLike, fit: str = "auto",if tp["attempts"]:loud["peak_repair"] = tp["attempts"]if not tp["fixed"]:- warnings.append("true peak %.1f dBTP is above the %.1f dBTP ceiling" % (tp["after"], target.true_peak))+ warnings.append("true peak %.1f dBTP is above the %.1f dBTP ceiling" % (tp["after"], target.true_peak)+ if tp["after"] is not None else "the true peak could not be measured after the repair "+ "(it was %.1f dBTP, ceiling %.1f)" % (tp["before"], target.true_peak))res = ff.probe(out)rect = picture_rect(sw, sh, target.width, target.height, mode)side = Path(str(out) + ".export.json")diff --git a/skills/showtime/lib/st/deliver/poster.py b/skills/showtime/lib/st/deliver/poster.pyindex 8b9971c..dab496b 100644--- a/skills/showtime/lib/st/deliver/poster.py+++ b/skills/showtime/lib/st/deliver/poster.py@@ -32,10 +32,8 @@ def extract_frame(video: PathLike, t: float, out: PathLike, width: Optional[int]t = min(t, max(0.0, dur - 1.0 / fps)) if dur else tout = Path(out)out.parent.mkdir(parents=True, exist_ok=True)- vf = "scale=%d:-2:flags=lanczos" % width if width else "null"- args: List[str] = ["-ss", "%.6f" % t, "-i", os.fspath(video), "-frames:v", "1", "-vf", vf]- if out.suffix.lower() in (".jpg", ".jpeg"):- args += ["-q:v", "2"]+ # a .jpg gets the frame in JPEG's own colours (BT.601 full range), not the video's BT.709 tv range+ args: List[str] = ["-ss", "%.6f" % t, "-i", os.fspath(video), "-frames:v", "1"] + ff.still_args(out, width)ff.run_ffmpeg(args + ["-update", "1", os.fspath(out)])if not out.is_file():raise ShowtimeError("could not extract a frame at %.3fs from %s" % (t, video))diff --git a/skills/showtime/lib/st/deliver/thumbs.py b/skills/showtime/lib/st/deliver/thumbs.pyindex 95b4117..c765086 100644--- a/skills/showtime/lib/st/deliver/thumbs.py+++ b/skills/showtime/lib/st/deliver/thumbs.py@@ -58,11 +58,13 @@ def thumbnail(src: PathLike, out: Optional[PathLike] = None, at: Optional[float]"," + ff.BT709_VF + ",format=yuv420p", "")out_p.parent.mkdir(parents=True, exist_ok=True)ext = out_p.suffix.lower()+ if ext in (".jpg", ".jpeg") and graph.endswith("[v]"):+ graph = graph[:-3] + "," + ff.JPEG_VF + "[v]" # JPEG's own colours (BT.601 full range), as postersq = 2while True:args = ["-i", os.fspath(frame), "-filter_complex", graph, "-map", "[v]", "-frames:v", "1"]if ext in (".jpg", ".jpeg"):- args += ["-q:v", str(q), "-pix_fmt", "yuvj420p"]+ args += ["-q:v", str(q)]elif ext == ".webp":args += ["-quality", str(max(50, 95 - 5 * (q - 2)))]ff.run_ffmpeg(args + ["-update", "1", os.fspath(out_p)])diff --git a/skills/showtime/lib/st/doctor.py b/skills/showtime/lib/st/doctor.pyindex a7e4118..23087f0 100644--- a/skills/showtime/lib/st/doctor.py+++ b/skills/showtime/lib/st/doctor.py@@ -369,6 +369,13 @@ class Doctor:if not vpy.exists():self.add("python venv", FAIL, "%s missing" % vpy, "run `showtime setup`")return+ vc_missing = plat.missing_vc_runtime(vpy) if plat.IS_WINDOWS else []+ if vc_missing:+ # before the imports: onnxruntime's "DLL load failed" says nothing about the cause+ self.add("vc++ runtime", FAIL, "Microsoft Visual C++ 2015-2022 x64 runtime not found (%s do not load)"+ % ", ".join(vc_missing), plat.vc_runtime_fix(vc_missing))+ elif plat.IS_WINDOWS:+ self.add("vc++ runtime", PASS, "Microsoft Visual C++ 2015-2022 runtime (%s)" % ", ".join(plat.VC_DLLS))mods = REQUIRED_MODULES + OPTIONAL_MODULES + (MAC_MODULES if plat.IS_MAC else [])extras = set((self.state.get("installed") or {}).get("extras", []))if "supertonic" in extras:@@ -407,8 +414,10 @@ class Doctor:if res.get(m, {}).get("ok") and m in ("numpy", "onnxruntime", "ctranslate2", "faster_whisper","kokoro_onnx", "sherpa_onnx", "cv2", "librosa"))if bad_req:+ errs = " ".join(str(res.get(m, {}).get("error", "")) for m in bad_req)+ dll = plat.vc_runtime_fix(vc_missing) if vc_missing and "DLL load failed" in errs else plat.explain_dll_error(errs)self.add("python packages", FAIL, "; ".join("%s (%s)" % (m, res.get(m, {}).get("error", "?")) for m in bad_req),- "run `showtime setup --force`")+ dll or "run `showtime setup --force`")else:self.add("python packages", PASS, "%d required imports OK in %.1fs (%s)" % (len(REQUIRED_MODULES), time.time() - t0, vers), versions={m: res[m].get("version") for m in res@@ -489,6 +498,10 @@ class Doctor:else:self.add("ffmpeg features", PASS, "libx264, libass (subtitles/ass), drawtext, loudnorm, ebur128, xfade, ""zscale, vid.stab, arnndn, rubberband")+ if caps.get("too_old"):+ self.add("ffmpeg version", WARN, "%s is too old for showtime (%s): footage splices, rotated phone video "+ "and some audio steps fail with it" % (info.version, ", ".join(caps["too_old"])),+ ff.TOO_OLD_FIX + " (ffmpeg %d.%d or newer works)" % ff.MIN_VERSION)if self.args.quick:returnt0 = time.time()diff --git a/skills/showtime/lib/st/ff.py b/skills/showtime/lib/st/ff.pyindex 462e682..6843eba 100644--- a/skills/showtime/lib/st/ff.py+++ b/skills/showtime/lib/st/ff.py@@ -46,6 +46,17 @@ REQUIRED_FILTERS = ["subtitles", "ass", "drawtext", "loudnorm", "ebur128", "xfadRECOMMENDED_FILTERS = ["zscale", "vidstabdetect", "vidstabtransform", "arnndn", "lut3d","rubberband", "minterpolate", "afftdn"]RECOMMENDED_ENCODERS = ["libvpx-vp9", "libopus", "prores_ks", "libmp3lame", "libwebp"]+# Options of newer ffmpeg builds that showtime's commands use, probed from the build's own help: a build+# without the required ones is too old (Ubuntu 22.04's 4.4.2 has none of them, and splices, rotated phone+# footage and some audio paths fail on it). Setup then prefers its static build; doctor says how to switch.+# (name, help topic, pattern in that help, required)+FEATURE_PROBES = [+ ("setts duration", "bsf=setts", r"(?m)^\s*-duration\b", True),+ ("display_rotation", "long", r"-display_rotation\b", True),+ ("ebur128 framelog=quiet", "filter=ebur128", r"(?m)^\s+quiet\s+-8\b", False), # the meter falls back without it+]+MIN_VERSION = (6, 0)+TOO_OLD_FIX = "use showtime's own build: `showtime setup --ffmpeg static`"@dataclass@@ -216,8 +227,43 @@ def _list_names(exe_path: str, what: str) -> List[str]:return names+def _help_text(exe_path: str, topic: str) -> str:+ try:+ cp = subprocess.run([exe_path, "-hide_banner", "-h", topic], stdout=subprocess.PIPE, stderr=subprocess.PIPE,+ timeout=60, encoding="utf-8", errors="replace")+ except (OSError, subprocess.SubprocessError):+ return ""+ return (cp.stdout or "") + (cp.stderr or "")+++def probe_features(exe_path: str) -> Dict[str, bool]:+ """{feature: present} for FEATURE_PROBES, read from the build's `-h` pages."""+ pages: Dict[str, str] = {}+ out = {}+ for name, topic, pattern, _req in FEATURE_PROBES:+ if topic not in pages:+ pages[topic] = _help_text(exe_path, topic)+ out[name] = bool(re.search(pattern, pages[topic]))+ return out+++def version_tuple(version: str) -> Optional[Tuple[int, int]]:+ """(major, minor) of '4.4.2-0ubuntu0.22.04.1', 'n7.1', '9.0.2-tessus'; None for git builds ('N-112345-g...')."""+ m = re.match(r"^n?(\d+)\.(\d+)", str(version or ""))+ return (int(m.group(1)), int(m.group(2))) if m else None+++def too_old(version: str, features: Dict[str, bool]) -> List[str]:+ """Why this build is too old for showtime ([] when it is not): the required features it lacks."""+ miss = [n for n, _t, _p, req in FEATURE_PROBES if req and not features.get(n, True)]+ vt = version_tuple(version)+ if miss and vt is not None and vt < MIN_VERSION:+ miss.insert(0, "version %s < %d.%d" % (version, MIN_VERSION[0], MIN_VERSION[1]))+ return miss++def capabilities(exe_path: Optional[str] = None, use_cache: bool = True) -> Dict[str, Any]:- """{'filters': [...], 'encoders': [...], 'version': str}; cached per binary."""+ """{'filters': [...], 'encoders': [...], 'features': {name: bool}, 'version': str}; cached per binary."""exe_path = exe_path or ffmpeg_path()try:st = os.stat(exe_path)@@ -231,12 +277,13 @@ def capabilities(exe_path: Optional[str] = None, use_cache: bool = True) -> Dictcache = read_json(cache_file, {})except ShowtimeError:cache = {}- if key in cache:+ if key in cache and "features" in cache[key]:return cache[key]caps = {"version": _version_of(exe_path) or "","filters": _list_names(exe_path, "filters"),"encoders": _list_names(exe_path, "encoders"),+ "features": probe_features(exe_path),}if use_cache and caps["filters"]:cache = {k: v for k, v in cache.items() if not k.startswith(os.path.realpath(exe_path) + "|")}@@ -260,9 +307,12 @@ def check_capabilities(exe_path: Optional[str] = None) -> Dict[str, List[str]]:"""Missing required/recommended filters and encoders for a binary."""caps = capabilities(exe_path)f, e = set(caps["filters"]), set(caps["encoders"])+ feats = caps.get("features") or {}return {"missing_required": [x for x in REQUIRED_FILTERS if x not in f] + [x for x in REQUIRED_ENCODERS if x not in e],"missing_recommended": [x for x in RECOMMENDED_FILTERS if x not in f] + [x for x in RECOMMENDED_ENCODERS if x not in e],+ "too_old": too_old(caps.get("version", ""), feats),+ "missing_optional_features": [n for n, _t, _p, req in FEATURE_PROBES if not req and not feats.get(n, True)],}@@ -414,6 +464,24 @@ def _probe_with_ffmpeg(p: Path) -> Dict[str, Any]:BT709_VF = "scale=out_color_matrix=bt709:out_range=tv"BT709_TAGS = ["-colorspace", "bt709", "-color_primaries", "bt709", "-color_trc", "bt709","-color_range", "tv"]+# Stills from a video. The conversion out of the video's 4:2:0 runs with exact rounding and full chroma+# interpolation: ffmpeg's default drew a saturated gradient (example 28's purple to orange) 1-2 levels darker.+STILL_FLAGS = "accurate_rnd+full_chroma_int"+# A JPEG still: viewers decode a JPEG as BT.601 full range, so the frame goes to exactly that. Without it a+# BT.709 tv-range video frame went into the JPEG with its own matrix (ffmpeg converts yuv to yuv keeping the+# 709 matrix, and from RGB too when the frame still carries the video's tags) under JPEG's BT.601 tag:+# saturated colours shifted (example 28's poster ~6 levels darker than its frame, purple's green 19 levels).+JPEG_VF = "scale=flags=%s:out_color_matrix=bt601:out_range=pc,format=yuvj420p" % STILL_FLAGS+++def still_args(out: PathLike, width: Optional[int] = None, q: int = 2) -> List[str]:+ """-vf (and -q:v) for a still of a video or image written to `out`, `width` wide (lanczos) or full size:+ a .jpg/.jpeg in JPEG's own colours (BT.601 full range), a PNG/WebP in RGB by the frame's own tags; both+ with STILL_FLAGS."""+ scale = "scale=%d:-2:flags=lanczos+%s" % (width, STILL_FLAGS) if width else "scale=flags=" + STILL_FLAGS+ if os.fspath(out).lower().endswith((".jpg", ".jpeg")):+ return ["-vf", scale + ":out_color_matrix=bt601:out_range=pc,format=yuvj420p", "-q:v", str(q)]+ return ["-vf", scale]@dataclass@@ -610,7 +678,8 @@ def audio_levels(path: PathLike) -> Dict[str, Optional[float]]:cp = run_ffmpeg(["-nostats", "-i", os.fspath(path), "-vn", "-af", "ebur128=peak=true", "-f", "null", "-"],loglevel="info", overwrite=False, check=False)txt = cp.stderr or ""- summary = txt[txt.rfind("Summary:"):] if "Summary:" in txt else ""+ # a run that failed still prints a Summary of zeros (I: 0.0 LUFS): never read it as a level+ summary = txt[txt.rfind("Summary:"):] if "Summary:" in txt and cp.returncode == 0 else ""def grab(pat: str) -> Optional[float]:m = re.findall(pat, summary)@@ -625,14 +694,16 @@ def audio_levels(path: PathLike) -> Dict[str, Optional[float]]:def ensure_true_peak(path: PathLike, ceiling: float = -1.0, audio_source: Optional[PathLike] = None,- af: Optional[str] = None, bitrate: str = AAC_BITRATE, tolerance: float = 0.1,+ af: Optional[str] = None, bitrate: str = AAC_BITRATE, tolerance: float = 0.0,audio_stream: int = 0) -> Dict[str, Any]:"""Re-check an AAC file's true peak and repair it in place when over `ceiling`.Repairs keep the video stream (copied) and re-encode only the audio from`audio_source` (default: the file itself) through `af`, first with theother AAC coder (twoloop), then with the fast coder and extra gain reduction. Returns- {"before", "after", "ceiling", "fixed", "attempts"} (dBTP values).+ {"before", "after", "ceiling", "fixed", "attempts"} (dBTP values). ebur128 reads to 0.1 dB, so with+ the default tolerance (0) a file that reads -0.9 dBTP against a -1 dBTP ceiling is repaired (a 0.1 dB+ allowance let a GitHub export copy ship at -0.9)."""p = Path(path)before = audio_levels(p).get("true_peak_dbtp")@@ -662,7 +733,10 @@ def ensure_true_peak(path: PathLike, ceiling: float = -1.0, audio_source: Optionrep["attempts"].append({"gain_db": round(-gain, 2), "coder": coder, "true_peak": tp})os.replace(str(tmp), str(p))rep["after"] = tp- if tp is None or tp <= ceiling + tolerance:+ if tp is None: # not measured: never called fixed+ rep["unmeasured"] = True+ break+ if tp <= ceiling + tolerance:rep["fixed"] = Truebreakfinally:@@ -673,6 +747,10 @@ def ensure_true_peak(path: PathLike, ceiling: float = -1.0, audio_source: Optionpassif rep["fixed"]:debug("true peak %.2f -> %.2f dBTP (ceiling %.1f) in %s" % (before, rep["after"] or -99, ceiling, p.name))+ elif rep.get("unmeasured"):+ from .common import warn+ warn("%s: the true peak could not be measured after re-encoding (it was %.2f dBTP, ceiling %.1f)"+ % (p.name, before, ceiling))else:from .common import warnwarn("%s: true peak %.2f dBTP is still above the %.1f dBTP ceiling after re-encoding"diff --git a/skills/showtime/lib/st/footage/cards.py b/skills/showtime/lib/st/footage/cards.pyindex 7f32eb1..1dbf430 100644--- a/skills/showtime/lib/st/footage/cards.py+++ b/skills/showtime/lib/st/footage/cards.py@@ -1354,7 +1354,8 @@ def render_reel(cards: List[Dict[str, Any]], width: int, height: int, fps: Fractdef overlays_for(reel: Path, plan: List[Dict[str, Any]]) -> List[Dict[str, Any]]:- """Internal overlay entries (edl.normalize's shape) that place each card of the reel at its output time."""+ """Internal overlay entries (edl.normalize's shape) that place each card of the reel at its output time,+ frame for frame (reel_frames)."""from . import util as Upr = U.probe(reel)out = []@@ -1363,7 +1364,9 @@ def overlays_for(reel: Path, plan: List[Dict[str, Any]]) -> List[Dict[str, Any]]out.append({"index": "card%d" % c["index"], "file": reel, "image": False, "probe": pr, "start": c["start"],"duration": p["dur"], "offset": p["offset"], "position": "full", "x": None, "y": None,"width": None, "height": None, "scale": None, "opacity": 1.0, "fade": 0.0, "margin": 0.0,- "fit": "cover", "audio": False, "volume_db": 0.0, "duck_db": None, "card": c["index"]})+ "fit": "cover", "audio": False, "volume_db": 0.0, "duck_db": None, "card": c["index"],+ # frame-exact placement (render_edl._overlay_graph): the reel's first frame and frame count+ "reel_frames": [p["offset_frames"], p["frames"]]})return outdiff --git a/skills/showtime/lib/st/footage/render_edl.py b/skills/showtime/lib/st/footage/render_edl.pyindex 2916e94..65faae2 100644--- a/skills/showtime/lib/st/footage/render_edl.py+++ b/skills/showtime/lib/st/footage/render_edl.py@@ -723,6 +723,23 @@ def _overlay_graph(ctx: Ctx, first_input: int) -> Tuple[List[str], List[str], st% (cur, n, o["start"], o["start"] + o["duration"], n))cur = "[vo%d]" % ncontinue+ if o.get("reel_frames"):+ # a card of the card reel: its frames by number, on the output's frames by number. Seeking by time+ # (-ss offset, then setpts start/TB) could skip the card's first reel frame or truncate its start a+ # frame early, so its last frame went missing (a behind card's speaker on a bare plate for a frame)+ from . import behind as BH+ from .cutout import seek_for_frame+ at, nf = o["reel_frames"]+ f0 = int(round(o["start"] * float(ctx.fps)))+ args += ["-ss", "%.6f" % seek_for_frame(at, ctx.fps), "-t", "%.6f" % float(Fraction(nf + 1) / ctx.fps),+ "-i", str(o["file"])]+ parts.append("[%d:v]format=rgba,scale=%d:%d,trim=end_frame=%d,settb=expr=%s,setpts=N+%d[ov%d]"+ % (k, W, H, nf, BH.fps_tb(ctx.fps), f0, n))+ parts.append("%s[ov%d]overlay=x=0:y=0:eof_action=pass:enable='between(n,%d,%d)'[vo%d]"+ % (cur, n, f0, f0 + nf - 1, n))+ cur = "[vo%d]" % n+ k += 1+ continueif o["image"]:args += ["-loop", "1", "-framerate", fps, "-t", "%.6f" % o["duration"], "-i", str(o["file"])]else:@@ -914,7 +931,9 @@ def render(edl_path, out=None, *, preview: bool = False, overwrite: bool = Falseinfo("replacing %s (--overwrite)" % out.name)ensure_dir(out.parent)shared = ensure_dir(base_dir / "work" / edl_path.stem)- work = ensure_dir(shared / out.stem)+ # per-output intermediates; a clip is named like its EDL (01-<title>.json -> 01-<title>.mp4), and the name twice+ # put its temp files past Windows' 260-character path limit when long paths are off (LibsndfileError)+ work = ensure_dir(shared / (out.stem if out.stem != edl_path.stem else "render"))# captions and cards need transcripts: fail early, before any encodetranscripts = E.load_transcripts(edl, required=bool(captions and edl["captions"]) or bool(edl.get("cards")))cards: List[Dict[str, Any]] = []diff --git a/skills/showtime/lib/st/platform.py b/skills/showtime/lib/st/platform.pyindex a6f7eb1..6e40de8 100644--- a/skills/showtime/lib/st/platform.py+++ b/skills/showtime/lib/st/platform.py@@ -515,6 +515,54 @@ def cpu_count() -> int:return os.cpu_count() or 2+# Windows: onnxruntime (voices, transcription, cutouts) needs the Microsoft Visual C++ 2015-2022 runtime.+# Python ships vcruntime140*.dll next to python.exe, but not msvcp140.dll, so a machine without the+# runtime fails with an unclear "DLL load failed while importing onnxruntime_pybind11_state".+VC_REDIST_URL = "https://aka.ms/vs/17/release/vc_redist.x64.exe"+VC_DLLS = ("msvcp140.dll", "vcruntime140.dll", "vcruntime140_1.dll")+# the same probe as a snippet for another interpreter (the venv's Python can be x64 under an arm64 launcher)+VC_CHECK_CODE = ("import ctypes, json\nbad = []\nfor d in %r:\n try: ctypes.WinDLL(d)\n"+ " except OSError: bad.append(d)\nprint(json.dumps(bad))" % (VC_DLLS,))+++def missing_vc_runtime(python: Optional[PathLike] = None) -> List[str]:+ """The Visual C++ runtime DLLs that do not load (Windows only; [] elsewhere or when the probe cannot run).+ With `python`, probes in that interpreter (the venv's), else in this process."""+ if not IS_WINDOWS:+ return []+ if python is None:+ import ctypes+ bad = []+ for d in VC_DLLS:+ try:+ ctypes.WinDLL(d) # type: ignore[attr-defined]+ except OSError:+ bad.append(d)+ return bad+ try:+ cp = subprocess.run([os.fspath(python), "-c", VC_CHECK_CODE], stdout=subprocess.PIPE, stderr=subprocess.PIPE,+ encoding="utf-8", errors="replace", timeout=60)+ return [str(x) for x in json.loads((cp.stdout or "").strip().splitlines()[-1])]+ except (OSError, ValueError, IndexError, subprocess.SubprocessError):+ return []+++def vc_runtime_fix(missing: Iterable[str] = ()) -> str:+ names = ", ".join(missing)+ return ("install the Microsoft Visual C++ 2015-2022 x64 runtime%s: %s (run it, then run the command again)"+ % ((" (missing %s)" % names) if names else "", VC_REDIST_URL))+++def explain_dll_error(message: str) -> Optional[str]:+ """A fix for Windows' "DLL load failed" import errors (onnxruntime, cv2, av ...), or None."""+ if not IS_WINDOWS or "DLL load failed" not in str(message):+ return None+ missing = missing_vc_runtime()+ if missing or "onnxruntime" in str(message):+ return vc_runtime_fix(missing)+ return None++XVFB_FIX = ("install Xvfb (a virtual display): Debian/Ubuntu: sudo apt install xvfb; Fedora: sudo dnf install ""xorg-x11-server-Xvfb; Arch: sudo pacman -S xorg-server-xvfb")diff --git a/skills/showtime/lib/st/pr_video.py b/skills/showtime/lib/st/pr_video.pyindex 0754f1b..415e574 100644--- a/skills/showtime/lib/st/pr_video.py+++ b/skills/showtime/lib/st/pr_video.py@@ -196,7 +196,8 @@ def mask_diff(files: List[Dict[str, Any]]) -> List[Dict[str, Any]]:# ---------------------------------------------------------------------------# sections of a PR template that are not the change itself (the evidence scenes show the tests)-SKIP_HEAD = re.compile(r"\b(test(s|ing|ed)?|checklist|check ?list|screenshots?|screen ?recordings?|videos?|demo|"+SKIP_HEAD = re.compile(r"^(checks|verification|validation)$|"+ r"\b(test(s|ing|ed)?|checklist|check ?list|screenshots?|screen ?recordings?|videos?|demo|"r"how (to|did you|was)|reviewers?|review notes|authorship|follow[- ]?up|related|issues?|"r"tickets?|todo|to do|pre-?merge|type of change|ai|disclosure|contributor|license|"r"acknowledg|thanks|references?|links?|deploy|rollout|rollback|appendix|metadata)\b", re.I)@@ -212,10 +213,13 @@ def _sentences(par: str) -> List[str]:def parse_body(md: str) -> Dict[str, Any]:- """A PR description -> {summary: [lines], impact: {title, lines} or None, refs: ["Fixes #12"]}.+ """A PR description -> {summary: [lines], items: [{text, show, bullet}], impact: {title, lines} or None,+ refs: ["Fixes #12"]}.The summary is the description's own prose (one sentence per line) and top-level bullets, from the- opening text and from sections that are not template chrome (test plans, checklists, reviewer notes)."""+ opening text and from sections that are not template chrome (test plans, checklists, reviewer notes).+ items holds the same lines with what goes on screen: a bullet's bold lead (`- **Fixed the race.** Details`)+ or, without one, its first sentence; a prose line as it is."""md = re.sub(r"<!--.*?-->", "", md or "", flags=re.S)md = re.sub(r"<!--.*$", "", md, flags=re.S) # an unclosed comment hides the restmd = re.sub(r"```.*?```", "", md, flags=re.S)@@ -228,7 +232,7 @@ def parse_body(md: str) -> Dict[str, Any]:if para:text = rv._plain(" ".join(para))if text and not re.fullmatch(r"\W*", text):- sections[-1]["lines"] += _sentences(text)+ sections[-1]["lines"] += [{"text": x, "show": x, "bullet": False} for x in _sentences(text)]del para[:]for line in rv._join_continuations(md.splitlines()):@@ -257,22 +261,26 @@ def parse_body(md: str) -> Dict[str, Any]:text = rv._plain(b.group(2))text = rv._URL.sub("", text).strip(" -:;")if len(text) >= 3:- sections[-1]["lines"].append(text)+ lead = re.match(r"^(\*\*|__)(.+?)\1", b.group(2).strip())+ show = rv._URL.sub("", rv._plain(lead.group(2))).strip(" -:;") if lead else ""+ if len(show) < 3:+ show = (_sentences(text) or [text])[0]+ sections[-1]["lines"].append({"text": text, "show": show, "bullet": True})continueif re.fullmatch(r"\s*<?https?://\S+>?\s*", s) or re.fullmatch(r"\s*[^.!?]{1,60}:\s*", s):flush() # a bare link (an uploaded video) or a "Label:" linecontinuepara.append(s.strip())flush()- summary: List[str] = []+ items: List[Dict[str, Any]] = []impact = Nonefor sec in sections:- lines = [x for x in sec["lines"] if len(x) >= 3]+ lines = [x for x in sec["lines"] if len(x["text"]) >= 3]if sec["kind"] == "summary":- summary += lines+ items += lineselif sec["kind"] == "impact" and lines and impact is None:- impact = {"title": rv.shorten(sec["title"], 40), "lines": lines}- return {"summary": summary, "impact": impact, "refs": list(dict.fromkeys(refs))}+ impact = {"title": rv.shorten(sec["title"], 40), "lines": [x["text"] for x in lines]}+ return {"summary": [x["text"] for x in items], "items": items, "impact": impact, "refs": list(dict.fromkeys(refs))}# ---------------------------------------------------------------------------@@ -639,8 +647,16 @@ def plan(meta: Dict[str, Any], body: Dict[str, Any], stats: List[Dict[str, Any]]n_files = max(cf, len(stats)) if isinstance(cf, int) else len(stats)if max_seconds is None:max_seconds = length_budget(n_files, adds + dels)- total_lines = len(body["summary"])- sentences = [chunks(rv.shorten(x, 200)) for x in body["summary"][:max(0, max_items)]]+ items = body.get("items") or [{"text": x, "show": x, "bullet": False} for x in body["summary"]]+ bullets = [x for x in items if x["bullet"]]+ if bullets:+ # a description with a list: the list is the change, each item by its bold lead (or first sentence), and+ # "+ N more" counts the items left out. Prose around it stays only when it fits one frame: a long opening+ # paragraph cut into four frames took 45 % of PR #7's video while the fixes never showed+ items = [x for x in items if x["bullet"] or len(x["show"]) <= CHUNK_CHARS[1]]+ total_lines = len(bullets) if bullets else len(items)+ picked = items[:max(0, max_items)]+ sentences = [chunks(rv.shorten(x["show"], 200)) for x in picked]hunks = list(hunks)impact = Noneif body.get("impact"):@@ -695,7 +711,8 @@ def plan(meta: Dict[str, Any], body: Dict[str, Any], stats: List[Dict[str, Any]]sentences.pop()else:break- more = max(0, total_lines - len(sentences))+ shown = picked[:len(sentences)]+ more = max(0, total_lines - (sum(1 for x in shown if x["bullet"]) if bullets else len(shown)))scenes: List[Dict[str, Any]] = [{"id": "hook", "dur": hook_dur()}]k = 0for i, sent in enumerate(sentences):diff --git a/skills/showtime/lib/st/qa/hearing.py b/skills/showtime/lib/st/qa/hearing.pyindex 9856541..4520edc 100644--- a/skills/showtime/lib/st/qa/hearing.py+++ b/skills/showtime/lib/st/qa/hearing.py@@ -630,9 +630,13 @@ RULES = {"level_jump": "the level jumps more than 6 LU at a cut (bed with bed, or voice with voice)","abrupt_end": "the sound is still at full level on the last frame (music or a word cut off)","speaker_loudness": "on a phone or laptop speaker (the mix above 300 Hz) the video is far quieter than its "- "loudness says: a mix of bass and sub (WARN over 10 LU under the full mix, FAIL over 18)",+ "loudness says: a mix of bass and sub (WARN over 10 LU under the full mix, FAIL over 18 for "+ "a showtime mix; a soundtrack showtime did not mix, such as your own song or footage sound, "+ "stays WARN)","readback": "a name, acronym or number of the voice-over is heard differently from the script (the narration "- "transcribed again locally); FAIL for a name in the title, the brand or the project's lexicon",+ "transcribed again locally); FAIL for a name in the title, the brand or the project's lexicon that "+ "a second installed recognizer also hears differently; showtime.json \"readback\": {\"ok\": [...]} "+ "clears a word someone listened to",}@@ -663,25 +667,29 @@ def readback(video: Path, proj: Optional[Path]) -> Optional[Dict[str, Any]]:def check_readback(F: Any, rep: Optional[Dict[str, Any]]) -> None:- """The read-back as qa items: a WARN per word heard differently (FAIL for a name in the title, brand or- project lexicon), an INFO when it could not run."""+ """The read-back as qa items: a WARN per word heard differently, FAIL only for a name in the title, brand+ or project lexicon that a second installed recognizer also hears differently (one recognizer alone can+ respell a rare name the voice said right); an INFO when it could not run."""if not rep:returnfrom ..voice import readback as rbif rep.get("skipped"):- F.add("readback", "INFO", "the voice-over was not heard back: %s" % rep["skipped"],- fix="install the local recognizer to check names: %s" % rb.fetch_hint())+ why = str(rep["skipped"])+ F.add("readback", "INFO", "the voice-over was not heard back: %s" % why,+ fix=("install the local recognizer to check names: %s" % rb.fetch_hint()+ if why.startswith(rb.NOT_INSTALLED) else ""))returnsus = rep.get("suspects") or []if not sus:F.ok(rep.get("summary") or rb.summary(rep))returnfor s in sus[:8]:- F.add("readback", "FAIL" if s.get("critical") else "WARN",+ note = rb.tag(s)+ F.add("readback", "FAIL" if rb.is_fail(s) else "WARN","voice line %s: the script says \"%s\", the voice is heard as \"%s\"%s" % (- s.get("line"), s["word"], s.get("heard") or "nothing",- " (a name in the title, brand or lexicon)" if s.get("critical") else ""),- t=s.get("t"), fix=rb.fix_for(s, s.get("clip")), word=s["word"], heard=s.get("heard"))+ s.get("line"), s["word"], s.get("heard") or "nothing", " (%s)" % note if note else ""),+ t=s.get("t"), fix=rb.fix_for(s, s.get("clip")), word=s["word"], heard=s.get("heard"),+ confirmed=s.get("confirmed"))if len(sus) > 8:F.add("readback", "WARN", "%d more words heard differently (voice/readback.json, review-pack's audio.txt)"% (len(sus) - 8), t=sus[8].get("t"))@@ -705,19 +713,25 @@ def check_speaker(F: Any, h: Dict[str, Any]) -> None:returnmx = sp.get("mix") or {}by_choice = mx.get("on") is False and mx.get("set_by") not in (None, "default")- sev = "INFO" if by_choice else ("FAIL" if g > th["speaker_gap_fail_lu"] else "WARN")+ # a soundtrack showtime did not mix (no mix report, no ST.score bed: the user's song or footage sound) is+ # often the content itself: a WARN to know about, never a FAIL that blocks delivery+ ours = sp.get("showtime_mix", True) is not False+ sev = "INFO" if by_choice else ("FAIL" if g > th["speaker_gap_fail_lu"] and ours else "WARN")k1 = (" (above 1 kHz %.1f LUFS, %.1f LU under)" % (sp["above_1k_lufs"], sp["gap_1k_lu"])if sp.get("gap_1k_lu") is not None else "")msg = ("%s%s; the full mix is %.1f LUFS. Phones and laptops play little under 300 Hz and this mix's energy is ""bass and sub, so it plays about %.0f dB quieter there than a voice-led video at the same loudness" % (speaker_line(sp), k1, sp.get("integrated_lufs") or 0.0, max(1.0, g - 4.5)))+ if not ours and not mx:+ msg += " (showtime did not mix this soundtrack: if the song or the footage's own sound is the content, " \+ "this is for information)"if by_choice:msg += " (the speaker-safe step is off by choice: %s)" % mx.get("set_by")fix = "if the video is not only for headphones, remove \"speaker_safe\": false and render again"elif mx.get("on") and mx.get("capped"):fix = ("the mixer's speaker-safe step already cut the bed's lows by %g dB: pick a bed with more in the mids, "- "raise its mid parts (lead, keys), or layer a mid transient on sub hits (metal-hit, glitch at -8 to "- "-12 dB)" % abs(float(mx.get("shelf_db") or 12)))+ "raise its mid parts (lead, keys), or layer a mid transient on sub hits (static-burst, glitch or "+ "tick at -8 to -12 dB)" % abs(float(mx.get("shelf_db") or 12)))elif mx.get("on") is False:fix = "turn the mixer's speaker-safe step back on (\"master\": {\"speaker_safe\": true}) and render again"elif mx:@@ -963,6 +977,7 @@ def readback_text(rep: Optional[Dict[str, Any]]) -> List[str]:"""audio.txt's read-back table: every voice line as the script has it and as it was heard back."""if not rep:return []+ from ..voice import readback as rbL = ["", "## Read-back: the voice-over transcribed again and compared with the script (names, acronyms, numbers)"]if rep.get("skipped"):return L + ["(not run: %s)" % rep["skipped"]]@@ -972,7 +987,10 @@ def readback_text(rep: Optional[Dict[str, Any]]) -> List[str]:for s in sus:L.append("%7ss %s script: %s / heard: %s%s" % ("%.2f" % s["t"] if s.get("t") is not None else "?", s.get("line"), s["word"], s.get("heard") or "(nothing)",- " <- a name in the title, brand or lexicon" if s.get("critical") else ""))+ " <- " + rb.tag(s) if rb.tag(s) else ""))+ for s in rep.get("cleared") or []:+ L.append("%7ss %s script: %s / heard: %s <- cleared after listening (showtime.json readback.ok)" % (+ "%.2f" % s["t"] if s.get("t") is not None else "?", s.get("line"), s["word"], s.get("heard") or "(nothing)"))for ln in rep.get("lines") or []:t = ln.get("video_start", ln.get("start"))L.append("%7ss %s%s" % ("%.2f" % float(t) if t is not None else "?", ln.get("id"),diff --git a/skills/showtime/lib/st/qa/media.py b/skills/showtime/lib/st/qa/media.pyindex c58cf96..7ce9e01 100644--- a/skills/showtime/lib/st/qa/media.py+++ b/skills/showtime/lib/st/qa/media.py@@ -207,15 +207,13 @@ def extract_frames(video: PathLike, times: Sequence[float], out_dir: PathLike, *if stale:dest.unlink()if not dest.is_file():- vf = "scale=%d:-2:flags=lanczos" % width if width else "null"- args: List[str] = ["-ss", "%.6f" % tt, "-i", os.fspath(video), "-frames:v", "1", "-vf", vf]- if dest.suffix.lower() in (".jpg", ".jpeg"):- args += ["-q:v", "3"]+ still = ff.still_args(dest, width, q=3) # a .jpg in JPEG's colours (BT.601 full range)+ args: List[str] = ["-ss", "%.6f" % tt, "-i", os.fspath(video), "-frames:v", "1"] + stillcp = ff.run_ffmpeg(args + ["-update", "1", os.fspath(dest)], check=False)if cp.returncode != 0 or not dest.is_file():# accurate seek can land past the last decodable frame: step back once- ff.run_ffmpeg(["-sseof", "-0.2", "-i", os.fspath(video), "-frames:v", "1", "-vf", vf,- "-update", "1", os.fspath(dest)], check=False)+ ff.run_ffmpeg(["-sseof", "-0.2", "-i", os.fspath(video), "-frames:v", "1"] + still ++ ["-update", "1", os.fspath(dest)], check=False)if dest.is_file():paths.append(dest)else:@@ -236,12 +234,11 @@ def extract_run(video: PathLike, first_frame: int, count: int, fps: float, out_dif count <= 0:return []stem = "f%06d" % first_frame- vf = ("scale=%d:-2:flags=lanczos" % width) if width else "null"# seek a little before the first frame and select by frame number from theret0 = max(0.0, (first_frame - 0.5) / fps)pattern = out / (stem + "-%02d.jpg")- ff.run_ffmpeg(["-ss", "%.6f" % t0, "-i", os.fspath(video), "-frames:v", str(count), "-vf", vf, "-q:v", "3",- "-start_number", "0", os.fspath(pattern)], check=False)+ ff.run_ffmpeg(["-ss", "%.6f" % t0, "-i", os.fspath(video), "-frames:v", str(count)] + ff.still_args(pattern, width, q=3) ++ ["-start_number", "0", os.fspath(pattern)], check=False)res = []for i in range(count):p = out / ("%s-%02d.jpg" % (stem, i))@@ -269,18 +266,27 @@ def opening_diffs(video: PathLike, n: int = 3, size: Tuple[int, int] = (64, 36))def mean_luma(path: PathLike, at: Optional[float] = None, size: Tuple[int, int] = (64, 36)) -> Optional[float]:"""Mean grey level (0-255) of an image, or of a video's frame at `at` seconds, on a tiny copy decoded by- ffmpeg (which ignores PNG colour chunks, as a video player does). None when it cannot be decoded."""+ ffmpeg (which ignores PNG colour chunks, as a video player does). None when it cannot be decoded.+ Both are decoded to RGB first (each by its own matrix: BT.709 for the video, BT.601 for a JPEG) and weighed+ the same way, so the same picture gives the same level: grey straight from each file's Y channel differed by+ 3-4 levels on saturated colours (601 vs 709 luma), a false poster_mismatch on a colourful frame.+ The seek is the one the poster was taken with (deliver poster's extract_frame, "%.6f"): a poster time on the+ frame grid (render.json's frame/fps, 2/30 = 0.0667) rounded to 3 places (0.067) landed on the next frame."""import subprocessw, h = size- pre = ["-ss", "%.3f" % max(0.0, float(at))] if at is not None else []+ pre = ["-ss", "%.6f" % max(0.0, float(at))] if at is not None else []try:cp = subprocess.run([ff.ffmpeg_path(), "-hide_banner", "-nostdin", "-loglevel", "error"] + pre +- ["-i", os.fspath(path), "-frames:v", "1", "-vf", "scale=%d:%d:flags=area,format=gray" % (w, h),+ ["-i", os.fspath(path), "-frames:v", "1", "-vf",+ "scale=flags=accurate_rnd+full_chroma_int,format=rgb24,scale=%d:%d:flags=area" % (w, h),"-f", "rawvideo", "-"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=60)except (OSError, subprocess.SubprocessError):return None- buf = (cp.stdout or b"")[:w * h]- return sum(buf) / float(len(buf)) if len(buf) == w * h else None+ buf = (cp.stdout or b"")[:w * h * 3]+ if len(buf) != w * h * 3:+ return None+ r, g, b = sum(buf[0::3]), sum(buf[1::3]), sum(buf[2::3])+ return (0.2126 * r + 0.7152 * g + 0.0722 * b) / float(w * h)PNG_COLOUR_CHUNKS = (b"gAMA", b"cHRM", b"cICP", b"iCCP")diff --git a/skills/showtime/lib/st/qa/video.py b/skills/showtime/lib/st/qa/video.pyindex 9d242b9..48084a4 100644--- a/skills/showtime/lib/st/qa/video.py+++ b/skills/showtime/lib/st/qa/video.py@@ -977,6 +977,8 @@ def _check_hearing(F: Findings, vpath: Path, loud: Dict[str, Any], dur: float, phearing.check_readback(F, rb)returnh["readback"] = rb+ if isinstance(h.get("speaker"), dict):+ h["speaker"]["showtime_mix"] = mp is not None or _score_bed(vpath)hearing.check(F, h)hearing.check_readback(F, rb)h["summary"] = hearing.summary(h)@@ -985,6 +987,14 @@ def _check_hearing(F: Findings, vpath: Path, loud: Dict[str, Any], dur: float, ploud.setdefault("_curves", {})["blocks"] = blk+def _score_bed(vpath: Path) -> bool:+ """The render played an ST.score bed (render.json audio.sources), so showtime made its soundtrack."""+ from . import review+ rj = review.render_report(vpath)+ au = rj.get("audio") if isinstance(rj, dict) else None+ return isinstance(au, dict) and "score" in (au.get("sources") or [])++def _readback(vpath: Path, proj: Optional[Path], say: Any) -> Optional[Dict[str, Any]]:"""The voice-over heard back and compared with the script (st.qa.hearing.readback); never fails qa."""if proj is None or not (proj / "voice" / "timeline.json").is_file():diff --git a/skills/showtime/lib/st/voice/readback.py b/skills/showtime/lib/st/voice/readback.pyindex e9347a3..3cc7444 100644--- a/skills/showtime/lib/st/voice/readback.py+++ b/skills/showtime/lib/st/voice/readback.py@@ -20,10 +20,15 @@ Comparison: both sides become phonemes (espeak-ng, the voice's own front end; thwhat the voice was told, lexicon overrides included), aligned with an edit distance. A word passes whenthe recognizer wrote its letters, or the same number, or every one of its sounds was heard.+A recognizer can also respell a rare name the voice said right (Parakeet writes "JSO" for a good "JSON").+So each line with a flagged word is heard once more by a second recognizer when one is installed (Whisper+small.en for English): `confirmed` is true when it also hears the word differently, false when it hears it as+written. A person who listened to a flagged word clears it in showtime.json, `"readback": {"ok": ["JSON"]}`.+qa runs the same check on the project's voice/vo.wav (reusing voice/readback.json when it belongs to that-file) and lists the words as `readback` (WARN; FAIL for a name in the title, the brand or the project's-lexicon); review-pack writes the table into the critic's audio.txt.-SHOWTIME_READBACK=0 turns it off.+file) and lists the words as `readback`: WARN, and FAIL only for a name in the title, the brand or the+project's lexicon that the second recognizer also hears differently. review-pack writes the table into the+critic's audio.txt. SHOWTIME_READBACK=0 turns it off."""from __future__ import annotations@@ -39,6 +44,7 @@ from typing import Any, Dict, Iterable, Iterator, List, Optional, Sequence, Set,READBACK_VERSION = 1FILE = "readback.json"+NOT_INSTALLED = "the speech recognizer is not installed"# ------------------------------------------------------------------ switches@@ -61,7 +67,7 @@ def asr_ready(lang: str) -> Tuple[bool, str]:with _quiet():eng, name = T.choose_model("auto", base)if not T._installed(eng, name):- return False, "the speech recognizer is not installed (%s)" % fetch_hint(name)+ return False, "%s (%s)" % (NOT_INSTALLED, fetch_hint(name))except Exception as e: # noqa: BLE001return False, "the speech recognizer cannot load (%s)" % str(e).splitlines()[0][:80]return True, ""@@ -546,13 +552,24 @@ def audio_key(audio: Any, sr: int) -> str:return h.hexdigest()[:24]-def heard_words(wav: Path, lang: str, key: Optional[str] = None) -> List[Dict[str, Any]]:- """What the local recognizer hears in a file: [{text, start, end}] (seconds from the file's start).- Cached by `key` (else the file's content), so an unchanged line is never transcribed twice."""+def model_name(model: str, lang: str) -> str:+ """The recognizer `model` resolves to for a language ("auto" follows SHOWTIME_ASR_MODEL): its cache name."""+ try:+ from ..footage import transcribe as T+ with _quiet():+ return os.path.basename(str(T.choose_model(model, lang)[1]))+ except Exception: # noqa: BLE001+ return re.sub(r"[^\w.-]+", "_", str(model or "auto"))+++def heard_words(wav: Path, lang: str, key: Optional[str] = None, model: str = "auto") -> List[Dict[str, Any]]:+ """What a local recognizer hears in a file: [{text, start, end}] (seconds from the file's start).+ Cached by `key` (else the file's content) and the recognizer, so an unchanged line is never transcribed+ twice by the same model, and a change of model (SHOWTIME_ASR_MODEL, an update) hears it again."""from ..footage import transcribe as Tfrom ..footage.util import quick_hashbase = (lang or "en").split("-")[0]- k = "%s-%s" % (key or quick_hash(wav), base)+ k = "%s-%s-%s" % (key or quick_hash(wav), base, model_name(model, base))cf = _cache_dir() / (k + ".json")if cf.is_file():try:@@ -563,7 +580,7 @@ def heard_words(wav: Path, lang: str, key: Optional[str] = None) -> List[Dict[stpasstmp = _cache_dir() / (k + ".asr.json")with _quiet():- doc, _ = T.transcribe(wav, model="auto", language=base, events="off", refine=False, gap_scan=False,+ doc, _ = T.transcribe(wav, model=model, language=base, events="off", refine=False, gap_scan=False,separate="off", use_stem=False, out_path=tmp, edit_dir=_cache_dir())words = [{"text": str(w["text"]), "start": round(float(w["start"]), 3), "end": round(float(w["end"]), 3)}for w in doc.get("words") or [] if w.get("type") == "word"]@@ -576,6 +593,116 @@ def heard_words(wav: Path, lang: str, key: Optional[str] = None) -> List[Dict[streturn words+# ------------------------------------------------------------------ a second opinion++_LABEL = {"whisper": "Whisper %s", "parakeet": "Parakeet", "crisper": "CrisperWhisper %s"}+++def _recognizer_ready(engine: str, name: str) -> bool:+ """The model and everything its engine needs are installed (never downloads)."""+ try:+ from .. import lazy+ from ..footage import transcribe as T+ if not T._installed(engine, name):+ return False+ man = lazy.manifest()+ pips = man.get("lazy_pip") or {}+ return all(lazy.pip_ready(c, man) if c in pips else lazy.item_ready(c)+ for c in lazy.asr_components(engine, name))+ except Exception: # noqa: BLE001+ return False+++def second_recognizer(lang: str) -> Optional[Dict[str, str]]:+ """{model, label} of an installed recognizer other than the read-back's own, to hear a flagged line again:+ Whisper small.en (English), small, turbo, else Parakeet when the first one is Whisper. None when there is none."""+ base = (lang or "en").split("-")[0].lower()+ try:+ from ..footage import transcribe as T+ from ..footage.asr_models import PARAKEET_V3_LANGS+ first = model_name("auto", base)+ except Exception: # noqa: BLE001+ return None+ cands = (["small.en"] if base == "en" else []) + ["small", "turbo"] + (+ ["parakeet-v3"] if base in PARAKEET_V3_LANGS else [])+ for m in cands:+ eng, name = T.MODELS[m]+ if os.path.basename(name) != first and _recognizer_ready(eng, name):+ lab = _LABEL.get(eng, "%s")+ return {"model": m, "label": lab % os.path.basename(name) if "%s" in lab else lab}+ return None+++def second_opinion(lines: Sequence[Dict[str, Any]], suspects: Sequence[Dict[str, Any]], lexicon=None,+ critical: Set[str] = frozenset(), hear2: Any = None, label: str = "") -> None:+ """Hear every line with a suspect once more (hear2(line) -> words) and mark each suspect: "confirmed"+ True when the second recognizer also hears the word differently, False when it hears it as written."""+ names = capital_words([str(ln.get("text") or "") for ln in lines])+ by_id = {str(ln.get("id")): ln for ln in lines}+ for lid in dict.fromkeys(str(s.get("line")) for s in suspects):+ ln = by_id.get(lid)+ mine = [s for s in suspects if str(s.get("line")) == lid]+ if ln is None:+ continue+ lang = str(ln.get("lang") or "en-us")+ try:+ heard = hear2(ln) or []+ except Exception as e: # noqa: BLE001 - a second opinion, never a reason to fail+ for s in mine:+ s["second"] = {"by": label, "error": (str(e).splitlines() or [type(e).__name__])[0][:120]}+ continue+ text = str(ln.get("text") or "")+ res = compare_line(text, heard, lang, lexicon, names, critical, script_ph=_line_tokens(text, lang, lexicon))+ again = {x["word"]: x for x in res["suspects"]}+ for s in mine:+ x = again.get(s["word"])+ s["confirmed"] = x is not None+ s["second"] = {"by": label, "heard": x["heard"] if x else None, "line": res["heard"]}+++def _project_cfg(project_dir: Optional[Path]) -> Dict[str, Any]:+ from ..common import read_json+ if project_dir is None:+ return {}+ d = Path(project_dir)+ for c in (d / "showtime.json", d.parent / "showtime.json"):+ if c.is_file():+ cfg = read_json(c, {}) or {}+ return cfg if isinstance(cfg, dict) else {}+ return {}+++def cleared_words(project_dir: Optional[Path]) -> List[str]:+ """Words a person listened to and found right: showtime.json "readback": {"ok": ["JSON", ...]}."""+ rb = _project_cfg(project_dir).get("readback")+ ok = rb.get("ok") if isinstance(rb, dict) else None+ return [str(w) for w in ok if isinstance(w, str) and w.strip()] if isinstance(ok, list) else []+++def apply_cleared(rep: Dict[str, Any], ok: Sequence[str]) -> Dict[str, Any]:+ """Move the suspects a person cleared (by spelling or letters: "Open A I" clears "OpenAI") into+ rep["cleared"]; the others stay suspects. Summary updated."""+ if rep.get("skipped"):+ return rep+ keys = {w.casefold() for w in ok} | {letters(w) for w in ok}+ keys.discard("")+ every = list(rep.get("suspects") or []) + list(rep.get("cleared") or [])+ every.sort(key=lambda s: (s.get("t") is None, s.get("t") or 0.0))+ hit = lambda s: str(s.get("word") or "").casefold() in keys or letters(str(s.get("word") or "")) in keys # noqa: E731+ rep["suspects"] = [s for s in every if not hit(s)]+ rep["cleared"] = [s for s in every if hit(s)]+ if not rep["cleared"]:+ rep.pop("cleared")+ lines_sus = {}+ for s in rep["suspects"]:+ lines_sus.setdefault(str(s.get("line")), []).append(s["word"])+ for ln in rep.get("lines") or []:+ if "suspects" in ln:+ ln["suspects"] = lines_sus.get(str(ln.get("id")), [])+ rep["summary"] = summary(rep)+ return rep++# ------------------------------------------------------------------ names that must be rightdef critical_names(project_dir: Optional[Path], lexicon=None) -> Set[str]:@@ -587,12 +714,9 @@ def critical_names(project_dir: Optional[Path], lexicon=None) -> Set[str]:d = Path(project_dir) if project_dir else Nonetexts: List[str] = []if d is not None:- for c in (d / "showtime.json", d.parent / "showtime.json"):- if c.is_file():- cfg = read_json(c, {}) or {}- if isinstance(cfg, dict) and isinstance(cfg.get("title"), str):- texts.append(cfg["title"])- break+ cfg = _project_cfg(d)+ if isinstance(cfg.get("title"), str):+ texts.append(cfg["title"])for c in (d / "brand.json", d.parent / "brand.json"):if c.is_file():kit = read_json(c, {}) or {}@@ -641,10 +765,11 @@ def _ready(lang: str) -> Tuple[bool, str]:def check_lines(lines: Sequence[Dict[str, Any]], lexicon=None, critical: Set[str] = frozenset(),- hear: Any = None) -> Dict[str, Any]:+ hear: Any = None, second: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:"""The read-back of a voice-over. lines: [{id, text (source, markup allowed), lang, start, heard?}];hear(line) -> heard words (seconds from the line's start) for a line without "heard". Suspect times are- absolute (line start + heard time)."""+ absolute (line start + heard time). second: {"label", "hear"(line) -> words} of a second recognizer, which+ hears the lines with a suspect again (second_opinion)."""t0 = time.time()names = capital_words([str(ln.get("text") or "") for ln in lines])rows: List[Dict[str, Any]] = []@@ -672,6 +797,8 @@ def check_lines(lines: Sequence[Dict[str, Any]], lexicon=None, critical: Set[strrows.append({"id": str(ln.get("id")), "start": round(st, 3), "lang": lang, "script": res["script"],"heard": res["heard"], "heard_words": [dict(w) for w in heard],"suspects": [s["word"] for s in res["suspects"]]})+ if sus and second and second.get("hear"):+ second_opinion(lines, sus, lexicon, critical, second["hear"], str(second.get("label") or ""))rep = {"version": READBACK_VERSION, "lines": rows, "suspects": sus, "checked": checked,"seconds": round(time.time() - t0, 2)}rep["summary"] = summary(rep)@@ -683,17 +810,57 @@ def summary(rep: Dict[str, Any]) -> str:return "read-back skipped: %s" % rep["skipped"]sus = rep.get("suspects") or []n = len(rep.get("lines") or [])+ clr = rep.get("cleared") or []+ tail = ("; cleared after listening (showtime.json readback.ok): %s" % ", ".join(+ sorted({'"%s"' % s["word"] for s in clr}))) if clr else ""if not sus:- return "read-back: %d line%s heard back, %d name%s and number%s as written" % (+ return "read-back: %d line%s heard back, %d name%s and number%s as written%s" % (n, "" if n == 1 else "s", rep.get("checked", 0), "" if rep.get("checked") == 1 else "s",- "" if rep.get("checked") == 1 else "s")- return "read-back: %d word%s heard differently in %d line%s (%s)" % (+ "" if rep.get("checked") == 1 else "s", tail)+ return "read-back: %d word%s heard differently in %d line%s (%s)%s" % (len(sus), "" if len(sus) == 1 else "s", n, "" if n == 1 else "s",- ", ".join('"%s" as "%s"' % (s["word"], s["heard"] or "nothing") for s in sus[:3]) + (" ..." if len(sus) > 3 else ""))+ ", ".join('"%s" as "%s"' % (s["word"], s["heard"] or "nothing") for s in sus[:3]) + (" ..." if len(sus) > 3 else ""),+ tail)+++def second_note(s: Dict[str, Any]) -> str:+ """What the second recognizer made of a suspect ("" when none heard it)."""+ sec = s.get("second") or {}+ by = sec.get("by") or "a second recognizer"+ if s.get("confirmed") is True:+ return "%s also hears \"%s\"" % (by, sec.get("heard") or "something else")+ if s.get("confirmed") is False:+ return "%s hears it as written" % by+ return ""+++def tag(s: Dict[str, Any]) -> str:+ """The note after a suspect: a title/brand/lexicon name, and what the second recognizer heard."""+ parts = ["a name in the title, brand or lexicon"] if s.get("critical") else []+ if second_note(s):+ parts.append(second_note(s))+ return "; ".join(parts)+++def is_fail(s: Dict[str, Any]) -> bool:+ """qa FAILs a suspect only when it is a title/brand/lexicon name AND a second recognizer also heard it+ differently: one recognizer alone can respell a rare name the voice said right."""+ return bool(s.get("critical")) and s.get("confirmed") is Truedef fix_for(s: Dict[str, Any], clip: Optional[str] = None) -> str:- """What to try for one suspect word."""+ """What to try for one suspect word (and how to clear it after listening)."""+ fix = _fix(s, clip)+ clear = ("if it sounds right when you listen, clear it: \"readback\": {\"ok\": [\"%s\"]} in showtime.json"+ % s["word"])+ if s.get("confirmed") is False:+ where = clip or "the line"+ return "%s, so the voice is likely right: listen to %s; %s. If it is wrong: %s" % (+ second_note(s), where, clear, fix)+ return "%s; %s" % (fix, clear)+++def _fix(s: Dict[str, Any], clip: Optional[str] = None) -> str:w = s["word"]if s.get("lone_a"):one = re.sub(r"\s+", "", w)@@ -715,9 +882,9 @@ def report_lines(rep: Dict[str, Any], limit: int = 6) -> List[str]:return ["read-back skipped: %s" % rep["skipped"]]out = [rep.get("summary") or summary(rep)]for s in (rep.get("suspects") or [])[:limit]:- out.append(" WARN %7s %s: \"%s\" heard as \"%s\"%s" % (- "%.2fs" % s["t"] if s.get("t") is not None else "?", s["line"], s["word"], s["heard"] or "(nothing)",- " [name in the title/brand/lexicon]" if s.get("critical") else ""))+ out.append(" %s %7s %s: \"%s\" heard as \"%s\"%s" % (+ "FAIL" if is_fail(s) else "WARN", "%.2fs" % s["t"] if s.get("t") is not None else "?", s["line"], s["word"], s["heard"] or "(nothing)",+ " [%s]" % tag(s) if tag(s) else ""))out.append(" fix: %s" % fix_for(s, s.get("clip")))if len(rep.get("suspects") or []) > limit:out.append(" ... %d more in readback.json" % (len(rep["suspects"]) - limit))@@ -742,10 +909,13 @@ def for_voice(out_dir: Path, items: Sequence[Dict[str, Any]], speeches: Sequence"start": it["start"], "speech_start": it.get("speech_start"), "file": it["file"],"key": key})hear = lambda ln: heard_words(out_dir / ln["file"], str(ln["lang"]), ln["key"]) # noqa: E731- rep = check_lines(lines, lexicon, critical_names(project_dir, lexicon), hear=hear)+ rep = check_lines(lines, lexicon, critical_names(project_dir, lexicon), hear=hear,+ second=_second(lang, lambda ln, m: heard_words(out_dir / ln["file"], str(ln["lang"]),+ ln["key"], model=m)))files = {ln["id"]: ln["file"] for ln in lines}for s in rep["suspects"]:s["clip"] = files.get(s["line"])+ apply_cleared(rep, cleared_words(project_dir))rep["summary"] = summary(rep)try:from ..footage.util import quick_hash@@ -765,10 +935,19 @@ def for_speech(text: str, speech: Any, wav: Path, lexicon, project_dir: Optional"summary": "read-back skipped: %s" % why}key = audio_key(speech.audio, speech.sample_rate)rep = check_lines([{"id": wav.stem, "text": text, "lang": speech.lang, "start": 0.0}], lexicon,- critical_names(project_dir, lexicon), hear=lambda ln: heard_words(wav, speech.lang, key))+ critical_names(project_dir, lexicon), hear=lambda ln: heard_words(wav, speech.lang, key),+ second=_second(speech.lang, lambda ln, m: heard_words(wav, speech.lang, key, model=m)))for s in rep["suspects"]:s["clip"] = wav.name- return rep+ return apply_cleared(rep, cleared_words(project_dir))+++def _second(lang: str, hear_with: Any) -> Optional[Dict[str, Any]]:+ """check_lines' `second`: the second recognizer (when installed) with hear_with(line, model)."""+ sec = second_recognizer(lang)+ if not sec:+ return None+ return {"label": sec["label"], "hear": lambda ln: hear_with(ln, sec["model"])}# ------------------------------------------------------------------ qa@@ -832,43 +1011,55 @@ def for_project(proj: Path, video: Optional[Path] = None, allow_asr: bool = Truereturn Nonelex = script_lexicon(vd, tl)crit = critical_names(proj, lex)+ ok_words = cleared_words(proj)vo_hash = quick_hash(vo)- stored = read_json(vd / FILE, None) if (vd / FILE).is_file() else None- if isinstance(stored, dict) and stored.get("version") == READBACK_VERSION and stored.get("vo_hash") == vo_hash \- and not stored.get("skipped"):- rep = dict(stored)- for s in rep.get("suspects") or []:- s["critical"] = bool(set(s.get("keys") or []) & crit)- rep["source"] = "voice/readback.json (written by voice script for this vo.wav)"- return replang = str(items[0].get("lang") or "en")- ok, why = asr_ready(lang)- if not ok or not allow_asr:- return {"version": READBACK_VERSION, "skipped": why or "not run", "lines": [], "suspects": [], "checked": 0,- "summary": "read-back skipped: %s" % (why or "not run")}lines = [{"id": ln.get("id"), "text": ln.get("source_text") or ln["text"], "lang": ln.get("lang") or lang,"start": float(ln.get("start") or 0.0), "speech_start": ln.get("speech_start"),"end": float(ln.get("end") or ln.get("start") or 0.0), "file": ln.get("file"),"key": ln.get("audio_key")} for ln in items]clips = all(ln["file"] and (vd / str(ln["file"])).is_file() for ln in lines)- if clips:- hear = lambda ln: heard_words(vd / str(ln["file"]), str(ln["lang"]), ln["key"]) # noqa: E731- source = "the line clips in voice/lines"- else:- allw = heard_words(vo, lang)+ vo_words: Dict[str, List[Dict[str, Any]]] = {}++ def hear_with(ln: Dict[str, Any], model: str = "auto") -> List[Dict[str, Any]]:+ if clips:+ return heard_words(vd / str(ln["file"]), str(ln["lang"]), ln["key"], model=model)+ if model not in vo_words:+ vo_words[model] = heard_words(vo, lang, model=model)# a heard word belongs to the line whose speech is nearest: cut halfway through each pausess = [float(it.get("speech_start", it.get("start") or 0.0)) for it in items]se = [float(it.get("speech_end", it.get("end") or 0.0)) for it in items]cut = [-1e9] + [(se[k] + ss[k + 1]) / 2 for k in range(len(items) - 1)] + [1e9]+ k = lines.index(ln)+ return [dict(w, start=round(w["start"] - ln["start"], 3), end=round(w["end"] - ln["start"], 3))+ for w in vo_words[model] if cut[k] <= (w["start"] + w["end"]) / 2 < cut[k + 1]]- def hear(ln: Dict[str, Any]) -> List[Dict[str, Any]]:- k = lines.index(ln)- return [dict(w, start=round(w["start"] - ln["start"], 3), end=round(w["end"] - ln["start"], 3))- for w in allw if cut[k] <= (w["start"] + w["end"]) / 2 < cut[k + 1]]- source = "voice/%s" % vo.name- rep = check_lines(lines, lex, crit, hear=hear)+ stored = read_json(vd / FILE, None) if (vd / FILE).is_file() else None+ if isinstance(stored, dict) and stored.get("version") == READBACK_VERSION and stored.get("vo_hash") == vo_hash \+ and not stored.get("skipped"):+ rep = dict(stored)+ every = list(rep.get("suspects") or []) + list(rep.get("cleared") or [])+ for s in every:+ s["critical"] = bool(set(s.get("keys") or []) & crit)+ # voice script ran without a second recognizer: hear the flagged lines again now, when one is here+ todo = [s for s in every if "confirmed" not in s]+ if todo and allow_asr:+ sec = _second(lang, hear_with)+ if sec:+ try:+ second_opinion(lines, todo, lex, crit, sec["hear"], sec["label"])+ except Exception: # noqa: BLE001 - a second opinion, never a reason to fail+ pass+ rep["source"] = "voice/readback.json (written by voice script for this vo.wav)"+ return apply_cleared(rep, ok_words)+ ok, why = asr_ready(lang)+ if not ok or not allow_asr:+ return {"version": READBACK_VERSION, "skipped": why or "not run", "lines": [], "suspects": [], "checked": 0,+ "summary": "read-back skipped: %s" % (why or "not run")}+ source = "the line clips in voice/lines" if clips else "voice/%s" % vo.name+ rep = check_lines(lines, lex, crit, hear=hear_with, second=_second(lang, hear_with))for s in rep["suspects"]:s["clip"] = next((str(ln["file"]) for ln in lines if str(ln["id"]) == s["line"] and clips), "voice/" + vo.name)rep["source"] = sourcerep["vo_hash"] = vo_hash- return rep+ return apply_cleared(rep, ok_words)diff --git a/skills/showtime/references/adopt.md b/skills/showtime/references/adopt.mdindex 57fc41f..3a7dcc0 100644--- a/skills/showtime/references/adopt.md+++ b/skills/showtime/references/adopt.md@@ -16,7 +16,8 @@ showtime export html <project> # the same page as a shareable w`adopt` copies the folder into `<project>/src/`, so the original files are never changed. It skips`node_modules`, virtualenvs, `.git`, frame dumps and videos the page does not load. Around the copy it writes`index.html`, `showtime.json` and `adopt.json`, the last one recording what it found and where each value-came from. After that the project behaves like any showtime project: `check`, `snap`, `render` (including+came from. Paths in both files (the source, the check report) are relative to the project folder, so a+project you copy or share names no path on your machine, and `--refresh` finds the source by them. After that the project behaves like any showtime project: `check`, `snap`, `render` (including`--from/--to`), `preview`, `qa`, `captions`, the `audio/mix.json` audio track, `export html` and`review-pack`. With no `-o`, a new job is created (`showtime-out/<name>-<ts>/project`); `--job <job>`adds the project to an existing one.@@ -37,12 +38,12 @@ adds the project to an existing one.<!-- section lines: kept current by scripts/check_release.py -->| Section | Lines ||---|---|-| Contracts it recognises | 47-61 |-| What adopt checks | 63-86 |-| Python scripts | 88-102 |-| Sound | 104-110 |-| From Claude Design | 112-139 |-| Limits | 141-147 |+| Contracts it recognises | 48-62 |+| What adopt checks | 64-87 |+| Python scripts | 89-103 |+| Sound | 105-111 |+| From Claude Design | 113-140 |+| Limits | 142-148 |## Contracts it recognisesdiff --git a/skills/showtime/references/audio.md b/skills/showtime/references/audio.mdindex d231720..b682627 100644--- a/skills/showtime/references/audio.md+++ b/skills/showtime/references/audio.md@@ -50,9 +50,9 @@ Everything runs locally. Every command has `--help` with examples, and most acce| 2. Music | 73-128 || 3. Sound effects | 130-146 || 4. Library | 148-196 |-| 5. The mix spec (audio/mix.json): Heard on a phone, Credits | 198-336 |-| 6. Analysis and delivery | 338-364 |-| 7. Platform notes | 366-376 |+| 5. The mix spec (audio/mix.json): Heard on a phone, Credits | 198-340 |+| 6. Analysis and delivery | 342-368 |+| 7. Platform notes | 370-380 |## 1. The five-minute path@@ -230,6 +230,8 @@ showtime audio lib index ~/Sounds/MyPack --name mypack --license "vendor-licensetrack overrides the measured hit (seconds from the file start).- **Length:** `loop: true` or `fit: true` fills the window. Music loops on bar lines when a beat gridis known (a `.beats.json` sidecar, a composed track, or a library item), and ends musically.+ `"ending": "song"` keeps the track's own ending (its last bars spliced in at a downbeat, as+ `audio fit --ending song`); `"fade"` fades out instead.- **Shape:** `fade_in` and `fade_out`, plus `pan` from -1 to 1. Every clip edge gets at least 3–5 msof fade, so there are no clicks.- **Ducking:** `duck: {"under": "voice" | ["voice", "sfx"] | [track ids], "depth_db": 12, "attack": 0.08,@@ -285,7 +287,8 @@ mix. Measured on 7 Oct 2026: the posted films sit 0.7-8.2 LU under the mix (voicshowreel with 75 % of its weighted energy at 80-160 Hz sat 13.6 LU under, so on a phone it played about 9 dBquieter than the voice-led films at the same -14 LUFS.-The speaker-safe step of `showtime audio mix` (and so of `showtime render`), on by default:+The speaker-safe step of `showtime audio mix` (and so of `showtime render` with a showtime.json `"audio"` mix spec; not+an `ST.score` bed or render's built-in fallback mixer), on by default:1. A 2-pole high-pass at 40 Hz on the music, ambience and effects: nothing a speaker plays, only headroom.2. When the mix is still more than 10 LU under above 300 Hz, a low shelf at 160 Hz on the bed and on thesub-heavy effects, as deep as it takes to reach 8 LU (at most -12 dB), before the loudness@@ -303,7 +306,8 @@ its mid parts. `mix.report.json` `speaker` has the numbers (`gap_300_lu_before`,in full over its loudest above 300 Hz). An effect over 15 LU (`boom`, `impact`, `sub-drop`, `punch`,`reverse-hit`, `heartbeat`: 17-30 LU) is sub-heavy; one that lands with no mid sound on its hit (anothereffect within 60 ms, a `layer`, or the crash of a composed bed) is listed as `sub_alone` with a note:-layer a mid transient on the same hit (`metal-hit`, `glitch` or `static-burst` at -8 to -12 dB). A riser+layer a mid transient on the same hit (`static-burst`, `glitch` or `tick` at -8 to -12 dB: 0-3 LU, so a phone plays+them; not a pitched hit such as `metal-hit`, which reads as a bell, nor `thock`, 9-10 LU). A riserends on the hit, so it does not count.`mix.report.json` contains:diff --git a/skills/showtime/references/components.md b/skills/showtime/references/components.mdindex 7b7bf9c..42984c9 100644--- a/skills/showtime/references/components.md+++ b/skills/showtime/references/components.md@@ -57,9 +57,9 @@ Run `showtime motion` for the live list.| 4. Data: chart, world-map | 220-271 || 5. Product and UI: browser-frame / device-frame, cursor and keystrokes, code-block, ... | 273-335 || 6. Camera, stills, closers, texture | 337-378 |-| 7. Looks (WebGL): fluted-glass, tilt-shift, liquid-metal, mesh-gradient, god-rays, marble, metaballs | 380-545 |-| 8. Themes (runtime/themes) | 547-560 |-| 9. Writing your own component | 562-581 |+| 7. Looks (WebGL): fluted-glass, tilt-shift, liquid-metal, mesh-gradient, god-rays, marble, metaballs | 380-549 |+| 8. Themes (runtime/themes) | 551-564 |+| 9. Writing your own component | 566-585 |## 1. Setup (two lines) and the time model@@ -397,7 +397,7 @@ with its render: the `_looks` demo in the showtime repository's examples folder.CSS blur behind a mask (tilt-shift), a 2D chrome sphere (liquid-metal), a still CSS field (mesh-gradient), astill CSS glow behind the sharp shape (god-rays), its first frame worked out once in JS (marble), and flatblobs traced on a 2D canvas, which still move (metaballs); `showtime check` says so (`look_fallback`).-- **Cost without a GPU**: the extra ms a 1080p frame takes on the build box (a 64-core machine, SwiftShader;+- **Cost without a GPU**: the extra ms a 1080p frame takes on our test machine (64 cores, SwiftShader;each frame a seek and a JPEG screenshot, as render takes it, against the same scene without the look), withone browser and per browser with 8 rendering at once (render's choice there):@@ -422,6 +422,10 @@ with its render: the `_looks` demo in the showtime repository's examples folder.page: `check` warns (`look_contexts`) above 8 looks on screen at once and fails above 14; past 12 at oncethe oldest give theirs back and show a still copy of their frame. A context the browser takes back anywayis `look_lost`.+- **With a GPU.** A GPU can hand the screenshot a WebGL canvas it has not finished drawing (the frame then shows+ the look a few frames back), so in a render on a GPU each look reads its frame back into a 2D canvas the page+ shows; `check` lists it as `present: "readback"`. It adds about 10 ms to a 1080p frame of a full-frame look+ (measured on a Mac with a GPU), far less than the look costs without a GPU.**fluted-glass**: a pane of reeded glass over an image, or over slow glows in the theme's colours when there isno image. Each flute shows a squeezed copy of a wider strip of the picture, with a chromatic split, a highlightdiff --git a/skills/showtime/references/html-export.md b/skills/showtime/references/html-export.mdindex 51e3023..f436458 100644--- a/skills/showtime/references/html-export.md+++ b/skills/showtime/references/html-export.md@@ -10,12 +10,15 @@ showtime export html <project> # -> showtime-out/<title>-<tsshowtime export html <project> -o launch.html # one file, opens offline in any browsershowtime export html <project> --folder -o site/ # index.html + assets/ for web hostingshowtime export html <project> --target artifact -o launch.html # to publish as an HTML artifact+showtime export html <job> # a job: its project/ folder, written into the job folder+showtime export html <job> --folder out # a job as a folder: ./out/index.html + assets/```## Essentials- `showtime export html <project>` writes one offline `.html`; `-o launch.html` names it, `--folder -o site/`- writes `index.html` + `assets/` for hosting, `--target artifact` for an artifact or docs page (§ Options)+ writes `index.html` + `assets/` for hosting, `--target artifact` for an artifact or docs page (§ Options). A job+ (`<job>`, as qa takes it) exports its `project/` folder into the job folder; `<job> --folder out` writes `./out/`- After a render, offer the HTML version in one line when the destination is a browser; share an MP4 forsocial platforms, video hosts, editors, long footage or pages that are heavy to draw (§ MP4 or HTML?)- Publishing is the user's call: offer it, never do it unasked (§ Sharing and hosting)@@ -48,14 +51,14 @@ showtime export html <project> --target artifact -o launch.html # to publish a<!-- section lines: kept current by scripts/check_release.py -->| Section | Lines ||---|---|-| What you get | 60-126 |-| MP4 or HTML? | 128-138 |-| Audio modes (--audio): How the live score streams (and why seeking is exact) | 140-171 |-| Size budget | 173-196 |-| Sharing and hosting | 198-240 |-| Questions | 242-285 |-| Options | 287-317 |-| Limitations | 319-353 |+| What you get | 63-129 |+| MP4 or HTML? | 131-141 |+| Audio modes (--audio): How the live score streams (and why seeking is exact) | 143-174 |+| Size budget | 176-199 |+| Sharing and hosting | 201-250 |+| Questions | 252-295 |+| Options | 297-327 |+| Limitations | 329-363 |## What you get@@ -216,6 +219,13 @@ images at the size they appear; fewer font families and weights.GitHub Pages: push the folder to a repository (or its `docs/`) and turn Pages on for it. The exportwrites an empty `.nojekyll` beside `index.html`: without it Pages' Jekyll step drops folders whosenames start with `_` (`assets/media/_export/`, the mixed audio) and the page plays silent.+ Serve it from a server that answers byte-range requests, as GitHub Pages and most web hosts do: a seek+ then plays at once. A plain test server without them (`python3 -m http.server`) cannot seek the+ mixed audio, so after a seek the player reads the audio file whole and the picture plays on silent+ until it is in. That read starts as soon as the player knows the file's length, before any seek, so a+ seek a few seconds in waits for what is left of it (the whole read is about 3.3 s for 2 MB at 0.6 MB/s).+ If the read fails, the next seek tries it again. To look at it on your own machine, open+ `index.html` from disk instead.- **Link previews**: the page carries `og:title`, `og:description`, `og:url`, `og:image` and`twitter:card`, so a link to it shows a card in chats and social posts. Set them in showtime.json,`"share": {"url": "https://me.github.io/launch/", "image": "card.jpg", "description": "One sentence."}`,diff --git a/skills/showtime/references/onboarding.md b/skills/showtime/references/onboarding.mdindex e8273d9..06e613d 100644--- a/skills/showtime/references/onboarding.md+++ b/skills/showtime/references/onboarding.md@@ -23,11 +23,11 @@ short exchange: what is there, what is missing, one decision, then the install,| Section | Lines ||---|---|| 1. Look before you talk | 32-43 |-| 2. Tell the user in one table, then ask one thing | 45-62 |-| 3. Install | 64-90 |-| 4. What works now, what arrives later | 92-113 |-| 5. Where things live | 115-119 |-| 6. If setup fails | 121-126 |+| 2. Tell the user in one table, then ask one thing | 45-63 |+| 3. Install | 65-91 |+| 4. What works now, what arrives later | 93-114 |+| 5. Where things live | 116-120 |+| 6. If setup fails | 122-127 |## 1. Look before you talk@@ -54,8 +54,9 @@ Group the rows into what they mean for videos, not into package names:Then one decision, with the default recommended:-> showtime needs a one-time install into `~/.showtime`: about 0.6-0.9 GB of downloads, usually 2-6-> minutes. Nothing outside that folder changes. Install the default now? (recommended)+> showtime needs a one-time install into `~/.showtime`: about 0.5-0.75 GB of downloads (1.4-1.8 GB on+> disk once installed), usually 2-6 minutes. Outside that folder only uv's and npm's download caches change.+> Install the default now? (recommended)Use the numbers `setup --estimate` printed, not the ones in this file. Do not ask about tiers or extrasup front: the default tier covers every workflow in SKILL.md, and extras are fetched when a feature@@ -96,7 +97,7 @@ Say this in two or three lines so nothing surprises the user later:| Works right after the core install | Fetched automatically on first use (a one-line notice with the size) ||---|---|| HTML and canvas videos, all templates, preview, render, check, snap | the audio library's starter part (~41 MB) on first library use; category parts, produced-music tracks and extra SFX packs when a mix or search needs them; all of it: `showtime audio lib fetch` (~249 MB) |-| generated music, all 56 effect types, mixing, mastering | the transcription model, Parakeet v3 (~465 MB), before the first transcription; the Whisper engine + a Whisper model only for languages outside Parakeet's 25; the vocal separator (67 MB) for speech under loud music |+| generated music, all 56 effect types, mixing, mastering | the transcription model, Parakeet v3 (about 490 MB), before the first transcription; the Whisper engine + a Whisper model only for languages outside Parakeet's 25; the vocal separator (67 MB) for speech under loud music || Kokoro voices (English, Spanish, more) with word timings | Manim (~60 MB) before the first Manim scene; icons one at a time (a few KB each) || footage edits, captions (transcripts after the first-use fetch) | Piper voices, the English aligner, background removal outside macOS (rembg; its model is about 170 MB) || site capture, demo recording, auto zoom, fonts, exports | a headed browser (`--headed` without Chrome/Edge: full Chromium, ~200 MB) |diff --git a/skills/showtime/references/qa.md b/skills/showtime/references/qa.mdindex 5ffc774..c1ae08d 100644--- a/skills/showtime/references/qa.md+++ b/skills/showtime/references/qa.md@@ -35,7 +35,7 @@ Batch visual checks: one `showtime look` per phase, not dozens of single frames- Hearing (WARN, with times): a voice line under 8 dB over the music (`voice_masked`, from the narration stem),near silence over 2 s mid-video (`quiet_stretch`), a jump over 6 LU at a cut (`level_jump`), sound still playingon the last frame (`abrupt_end`), a name or number of the voice-over heard differently from the script- (`readback`, FAIL for a title, brand or lexicon name), a mix that plays far quieter on a phone speaker than its+ (`readback`, FAIL for a title, brand or lexicon name a second recognizer also hears differently), a mix that plays far quieter on a phone speaker than itsloudness says (`speaker_loudness`: over 10 LU under above 300 Hz, FAIL over 18); `review-pack` hands thecritic the full measurements (§2, § Tools)- Frame 0 is the thumbnail: a hook complete at t=0 (`"poster": 0`) or a baked poster (`--poster-bake auto`);@@ -229,8 +229,8 @@ export itself (`showtime qa <export> --platform github`); without one it FAILs w| `voice_masked` | WARN | a voice line sits under 8 dB (`hearing.voice_over_bed_min_db`) over the music under its words. Measured only when the render's narration stem lines up with the file's audio (render keeps `work/audio/mix.voice.wav`; an edit render its speech stem; a voice-only mix over an `ST.score` bed): the stem is aligned (±50 ms) and scaled to the delivered audio, the rest is the bed. Without a stem `review-pack` still estimates it for the critic, never a WARN || `quiet_stretch` | WARN | near silence for 2 s or more mid-video: 100 ms blocks more than 20 LU under the integrated loudness (`quiet_stretch_s`, `quiet_under_lu`), not already a `silent_gap` || `level_jump` | WARN | the level changes more than 6 LU (`level_jump_lu`) across a cut (planned scene starts and hard cuts), 1 s each side, like with like: the bed with the bed (stem), else both sides speech or both not; a cut where speech starts or stops, an effect within 1 s or a music section change at the cut does not count |-| `readback` | WARN, FAIL for a name in the title, brand or project lexicon | the project's `voice/vo.wav` transcribed again locally and lined up with the script sound by sound: a name, acronym or number heard differently ("Open A I" heard as "OpenI"). Reuses `voice/readback.json` when `voice script` wrote it for that `vo.wav`; else transcribes the line clips (cached), or `vo.wav` itself. INFO when the recognizer is not installed. Fix: [voice.md](voice.md) § Pronunciation fixes |-| `speaker_loudness` | WARN over 10 LU, FAIL over 18 (`speaker_gap_lu`, `speaker_gap_fail_lu`); INFO when the mix turned `speaker_safe` off | heard on a phone: the integrated loudness of the mix above 300 Hz (and above 1 kHz), measured like `ffmpeg -af "highpass=f=300,highpass=f=300,ebur128"`, against the full mix. Phone and laptop speakers play little under 300 Hz, so a mix of kick, bass and sub at -14 LUFS plays quiet there. Calibrated on 7 Oct 2026: every posted film 0.7-8.2 LU, a bass-led showreel preview 13.6 LU (-27.6 LUFS above 300 Hz, about 9 dB quieter on a phone than the voice-led films). The fix: `showtime audio mix` (its speaker-safe step, on by default, cuts the bed's lows; `audio.md` § Heard on a phone), a bed with more in the mids, a mid transient on sub hits. The numbers are in every qa run (`qa.json` `hearing.speaker`, the PASS line, the `hearing` line) |+| `readback` | WARN; FAIL for a name in the title, brand or project lexicon that a second installed recognizer (Whisper small.en for English) also hears differently | the project's `voice/vo.wav` transcribed again locally and lined up with the script sound by sound: a name, acronym or number heard differently ("Open A I" heard as "OpenI"). Reuses `voice/readback.json` when `voice script` wrote it for that `vo.wav`; else transcribes the line clips (cached), or `vo.wav` itself. INFO when the recognizer is not installed. A word someone listened to and found right is cleared with `"readback": {"ok": ["JSON"]}` in showtime.json. Fix: [voice.md](voice.md) § Pronunciation fixes |+| `speaker_loudness` | WARN over 10 LU, FAIL over 18 (`speaker_gap_lu`, `speaker_gap_fail_lu`) for a showtime mix (a mix report or an ST.score bed); only WARN for sound showtime did not mix (your own song, a footage edit's sound); INFO when the mix turned `speaker_safe` off | heard on a phone: the integrated loudness of the mix above 300 Hz (and above 1 kHz), measured like `ffmpeg -af "highpass=f=300,highpass=f=300,ebur128"`, against the full mix. Phone and laptop speakers play little under 300 Hz, so a mix of kick, bass and sub at -14 LUFS plays quiet there. Calibrated on 7 Oct 2026: every posted film 0.7-8.2 LU, a bass-led showreel preview 13.6 LU (-27.6 LUFS above 300 Hz, about 9 dB quieter on a phone than the voice-led films). The fix: `showtime audio mix` (its speaker-safe step, on by default, cuts the bed's lows; `audio.md` § Heard on a phone), a bed with more in the mids, a mid transient on sub hits. The numbers are in every qa run (`qa.json` `hearing.speaker`, the PASS line, the `hearing` line) || `abrupt_end` | WARN | the last 0.2 s (of the bed, with a stem) are within 10 dB (`abrupt_end_db`) of the 3 s before and audible: music, or a word, cut off on the last frame. A seamless loop may ignore it || `first_frame_black` | FAIL | frame 0 is black (no poster baked) || `first_frame_flat` | WARN | frame 0 is one flat colour |diff --git a/skills/showtime/references/render.md b/skills/showtime/references/render.mdindex adb6577..eba7417 100644--- a/skills/showtime/references/render.md+++ b/skills/showtime/references/render.md@@ -45,15 +45,15 @@ slow, fails, or looks different from the preview; or when you need the exact fla<!-- section lines: kept current by scripts/check_release.py -->| Section | Lines ||---|---|-| The loop | 58-94 |-| showtime render <project> | 96-227 |-| showtime check <project> | 229-288 |-| showtime snap <project / video> | 290-311 |-| showtime preview <project> | 313-330 |-| showtime retime <project> -d <seconds> | 332-381 |-| Speed | 383-452 |-| Troubleshooting | 454-468 |-| Platforms | 470-485 |+| The loop | 58-95 |+| showtime render <project> | 97-229 |+| showtime check <project> | 231-290 |+| showtime snap <project / video> | 292-313 |+| showtime preview <project> | 315-332 |+| showtime retime <project> -d <seconds> | 334-387 |+| Speed | 389-471 |+| Troubleshooting | 473-487 |+| Platforms | 489-504 |## The loop@@ -90,7 +90,8 @@ poster as in a full render), recorded as `spliced: 12-18 from final.mp4` and courender. When the old render was encoded with other settings or another ffmpeg, the whole video is encoded onceinstead (old frames decoded, new ones from the capture). With no such render, after a size, fps or lengthchange, with `--preview`, `--alpha` or `--size`, or without `--job`, the result is a span clip:-`<job>/work/span-12-18.mp4` (without a job, `span-12-18.mp4` in a new folder). It is only those seconds: look at+`<job>/work/span-12-18.mp4` (without a job, `span-12-18.mp4` in a new folder; `-o clip.mp4` without `--job` writes it+there, in a job folder too, and never splices it; with `--job` the fix is spliced and `-o` is ignored). It is only those seconds: look atit (`showtime look <file>`), never deliver it; `qa <job>`, `look <job>` and the ledger skip span clips.## `showtime render <project>`@@ -160,9 +161,10 @@ What happens:the capture.4. Audio, prepared while frames are captured: `ST.score` rendered offline in its own page, plusthe showtime.json `audio` (a mix spec goes to `showtime audio mix`; if that module is missing,- a built-in mixer handles file tracks with start/offset/gain/fades/loop). The mix is made to be heard+ a built-in mixer handles file tracks with start/offset/gain/fades/loop). A mix spec is made to be heardon a phone speaker: a 40 Hz high-pass on everything but the voice and, on a bass-heavy bed, a low- shelf before the loudness normalisation (`audio.md` § Heard on a phone). `"master": {"speaker_safe":+ shelf before the loudness normalisation (`audio.md` § Heard on a phone); an `ST.score` bed and the+ built-in mixer are not filtered (turn a score's bass and kick down instead). `"master": {"speaker_safe":false}` in showtime.json or the mix turns it off, for a video meant for headphones. Everything is cut tothe rendered range, padded/trimmed to the exact video length, brought to the loudness target(plain gain when the peaks allow it, else gain into an oversampled limiter with at most 6 dB of@@ -344,7 +346,11 @@ add `"fit": true` to its track. Never retime one scene by hand and leave the resA scene stretched more than 1.5x gets a warning: it now holds still after its last animation (checkflags holds of 2.5 s or more), so give it another beat or motion; canvas cue tables warn too, since-everything runs slower. Retimed transitions never shrink below 0.35 s.+everything runs slower. Retimed transitions never shrink below 0.35 s. A scene marked+`data-stretch="spread"` spreads instead when it gets longer: its component start times (`data-at`,+`data-exit-at`, `"at"` in JSON times) and the poster in it scale with it, lengths stay, so the beats+move apart at the same speed (the dom template's hero does this; its CSS delays follow through its+`data-design-dur` script).`--from-voice <timeline.json>` (from `showtime voice script`; the `voice/` folder works too) setsthe scene lengths from the narration instead of one length for all:@@ -407,6 +413,19 @@ A 5 s span of a finished 150 s explainer took 56.6 s the first time and 22.4 s tThe showreel and launch frames were byte for byte the same as 0.4.0's; the DOM page differed by GPUantialiasing noise in 12 of 450 frames (at most 7 levels on a few hundred pixels), as two 0.4.0 runs of it do.+The same three projects on a 64-core Linux machine with no GPU (2026-10-07, 1080p30, best of 2 interleaved runs,+0.4.0 against 0.4.1):++| Workload (showreel 15 s / DOM page 15 s / launch film 30 s) | 0.4.0 | 0.4.1 |+|---|---|---|+| automatic settings (0.4.0: 3 workers; 0.4.1: 8) | 25.3 / 31.8 / 42.0 s | 21.9 / 16.4 / 17.6 s |+| 8 workers each | 22.5 / 20.2 / 22.8 s | 20.4 / 16.4 / 17.5 s |+| 16 workers each | 27.4 / 18.7 / 18.2 s | 25.7 / 15.1 / 13.1 s |+| encode left after the capture (automatic) | 2.2 / 2.0 / 4.5 s | 0.3 / 0.2 / 0.5 s |++The launch film rendered 2.4x faster and the DOM page 1.9x, mostly from the worker count fitted to the machine+and the encode during the capture; SSIM against the 0.4.0 file was 0.997-0.998 (`veryfast` against `medium`).+Rules of thumb:- A final render takes about 1-2x the video length at 1080p on a mid-range laptop. `showtime check`@@ -433,8 +452,8 @@ Rules of thumb:full size. `--preview --fps 12` captures 40 % of the frames: the fastest whole-video first look(layout, story, timing of cuts; not motion). For stills use `showtime snap` (seconds) and`showtime preview` (real time).-- The shutter blur (`data-st-blur`) costs only on the frames it draws (a snap: 4-7 frames). Measured on the- build box (64 cores, no GPU: Chrome 154 rasterizing with SwiftShader, 1 worker, 1920x1080, 8 copies, median+- The shutter blur (`data-st-blur`) costs only on the frames it draws (a snap: 4-7 frames). Measured on our+ test machine (64 cores, no GPU: Chrome 154 rasterizing with SwiftShader, 1 worker, 1920x1080, 8 copies, medianof 3 renders while other jobs ran, load 7-40): a frame took 7.9 ms more with one blurred 150 px word, 13.9ms with three and 26.7 ms with six (33-37 ms without); a card with a gradient and a shadow 10.7, 28.1 and48.7 ms more. About 3 ms of each element is script (posing, copying, comparing styles), the rest is drawingdiff --git a/skills/showtime/references/sound-design.md b/skills/showtime/references/sound-design.mdindex 08e821b..f0b7e7b 100644--- a/skills/showtime/references/sound-design.md+++ b/skills/showtime/references/sound-design.md@@ -110,8 +110,8 @@ ready. It gives numbers to aim for and how to verify them with `showtime audio m- Make the riser 1–2 bars long: at 120 bpm a bar is 2 s.- A phone speaker plays nothing under ~300 Hz, and `sub-drop`, `boom`, `impact`, `punch`, `reverse-hit` and`heartbeat` are 17-30 LU louder in full than above 300 Hz (measured, `speaker_gap_lu` in the report). On a- phone such a hit alone is close to nothing: land a mid transient on the same hit (`metal-hit`, `glitch` or- `static-burst` at -8 to -12 dB, `"layer": "<id>"`), or put it on a composed bed's crash. The riser stops on+ phone such a hit alone is close to nothing: land a mid transient on the same hit (`static-burst`, `glitch` or+ `tick` at -8 to -12 dB, `"layer": "<id>"`), or put it on a composed bed's crash. The riser stops onthe hit, so it does not count; the mix notes a sub hit that lands alone (`sub_alone`).- **Transitions:** a transition sound starts at the transition start. A success chime plays whenthe result is fully visible, not when it starts to appear.diff --git a/skills/showtime/references/voice.md b/skills/showtime/references/voice.mdindex 0cd9648..e9a8838 100644--- a/skills/showtime/references/voice.md+++ b/skills/showtime/references/voice.md@@ -46,12 +46,12 @@ Everything runs locally. Kokoro is the default engine. It gives exact word timin| Word budgets | 124-135 || Script → timeline → scenes (timing-driven editing) | 137-190 || Captions from TTS timings | 192-198 |-| Pronunciation fixes | 200-238 |-| Aligning a recorded voice (or another engine's output) | 240-255 |-| Mastering | 257-273 |-| Engines and licensing | 275-285 |-| Performance (measured on a 6-core Intel i5-8500, CPU only, load ~3) | 287-302 |-| Platform notes and troubleshooting | 304-317 |+| Pronunciation fixes | 200-242 |+| Aligning a recorded voice (or another engine's output) | 244-259 |+| Mastering | 261-277 |+| Engines and licensing | 279-289 |+| Performance (measured on a 6-core Intel i5-8500, CPU only, load ~3) | 291-306 |+| Platform notes and troubleshooting | 308-321 |## Commands@@ -229,13 +229,17 @@ read-back: 1 word heard differently in 7 lines ("Open A I" as "OpenI")fix: the voice reads a lone "A" as the article ("uh") and swallows it: write the name as one word (OpenAI) ...```+The recognizer can also respell a rare name the voice said right (Parakeet writes "JSO" for a good "JSON"). So a line with a flagged word is heard once more by a second recognizer when one is installed (Whisper small.en for English; it never downloads one). The note after the word says what it heard: `Whisper small.en hears it as written` (the voice is likely right) or `also hears "JSO"`.+What to do with a WARN:-- Run `showtime voice ipa "Word"` to see what the voice is told. Fix the word with a lexicon `say` or `ipa` entry, or write it the way the voice reads it right, then rerun `voice script` until the read-back passes. Do not ship a line it flags.+- Do not ship a line it flags until someone listened to it. The clip is `lines/NN-id.wav`.+- If it sounds wrong, run `showtime voice ipa "Word"` to see what the voice is told. Fix the word with a lexicon `say` or `ipa` entry, or write it the way the voice reads it right, then rerun `voice script` until the read-back passes.+- If it sounds right, clear the word in the project's `showtime.json`: `"readback": {"ok": ["JSON"]}`. `voice script`, `voice say` and qa then list it as cleared, not as a WARN. Clear only words someone listened to.- Do not spell names letter by letter with a lone "A" ("Open A I"): espeak reads it as the article and the voice swallows it. Write the name as one word ("OpenAI"), or give it a lexicon entry.-- `readback.json` (next to `vo.wav`) has each line's script and heard text, and for each flagged word what the voice was told (`said`) and what was heard (`heard_sounds`). The recognizer can also miss a rare name the voice said right. When `heard_sounds` is what you meant, say so in the delivery note and move on.-- qa checks the same thing on the project's `voice/vo.wav` (the `readback` item, § Hearing in qa.md), and review-pack puts the table into the critic's `audio.txt`.+- `readback.json` (next to `vo.wav`) has each line's script and heard text, and for each flagged word what the voice was told (`said`), what was heard (`heard_sounds`) and the second recognizer's verdict (`confirmed`, `second`).+- qa checks the same thing on the project's `voice/vo.wav` (the `readback` item, § Hearing in qa.md), and review-pack puts the table into the critic's `audio.txt`. qa FAILs a word only when it is a name in the title, the brand or the project lexicon and the second recognizer also heard it differently; otherwise it is a WARN.-It runs for the 25 languages of the local recognizer (Parakeet v3, English and Spanish included) and is skipped, with a note, when the recognizer is not installed (`showtime setup --fetch parakeet-tdt-0.6b-v3-int8`, about 490 MB; it never downloads on its own). `--no-readback` or `SHOWTIME_READBACK=0` turns it off.+It runs for the 25 languages of the local recognizer (Parakeet v3, English and Spanish included) when that recognizer is installed: it arrives with the first transcription, or `showtime setup --fetch parakeet-tdt-0.6b-v3-int8` (about 490 MB; the read-back never downloads it on its own). Without it the read-back is skipped with a note. `--no-readback` or `SHOWTIME_READBACK=0` turns it off, for example when a flag is wrong and you cannot clear the word in `showtime.json`.## Aligning a recorded voice (or another engine's output)diff --git a/skills/showtime/runtime/effects/gl.js b/skills/showtime/runtime/effects/gl.jsindex 2d1e113..b426668 100644--- a/skills/showtime/runtime/effects/gl.js+++ b/skills/showtime/runtime/effects/gl.js@@ -7,7 +7,9 @@// a canvas filling the element at its box size x devicePixelRatio// x scale, or null when WebGL is missing (use the fallback). It holds// a WebGL context (preserveDrawingBuffer: the renderer screenshots it)-// only while the look's clip is on screen (context lifecycle, below)+// only while the look's clip is on screen (context lifecycle, below);+// in a render on a GPU each frame is read back into a 2D canvas+// (frames read back, below)// layer.program(frag, defines) compile a fragment shader (HEADER is prepended); variants by// #define, never by a branch on a uniform (a CPU renderer pays both)// layer.texture(source, {mips, wrap}) upload an <img> or <canvas>; mips: a power-of-two copy with@@ -21,7 +23,7 @@// keyed(values, keys, lt) option values moved by keyframes [{at, dur, ease, ...values}]// register(entry) what `showtime check` reads (window.__stLooks): size, passes, cost//-// The cost model is the no-GPU cost measured on the build box (SwiftShader, one browser, 1080p, each frame a+// The cost model is the no-GPU cost measured on our 64-core test machine (SwiftShader, one browser, 1080p, each frame a// seek and a JPEG screenshot as render takes it, against the same page without the look): extra ms per frame// for one full-frame pass of each kind, and how that grows with the pass's size (cost x (pixels / 1080p) ^ exp:// a CPU renderer does not pay in proportion to pixels, its canvas and caches cost more at full size). `showtime@@ -283,6 +285,19 @@ function material(gl, h) {}}+/* ---------------------------------------------- frames read back on a GPU */++// In a render on a GPU the screenshot of a WebGL canvas can come out stale: the compositor reads the canvas's+// buffer before the GPU has finished writing it, and the frame shows what that buffer held a few frames+// earlier (seen on the macOS CI runner's virtual GPU: one look 3 frames behind in one frame of 93, so 1 and 3+// workers differed). There each look draws on a WebGL canvas kept out of the page, reads its pixels back+// (readPixels waits for the GPU) and puts them on a 2D canvas the page shows, as Chrome itself does without+// a GPU. window.ST_LOOKS_READBACK (true / false) forces it on or off, for tests.+function readbackHere() {+ if (typeof window.ST_LOOKS_READBACK === 'boolean') return window.ST_LOOKS_READBACK;+ return !!window.__ST_RENDER__ && !softwareGL();+}+/*** A WebGL look filling `el`: a canvas at its box size x devicePixelRatio x scale. Returns null when WebGL is* missing or a test turned it off (window.ST_LOOKS_GL === false); the look then draws its fallback.@@ -296,8 +311,11 @@ export function lookLayer(el, { name, scale = 1, alpha = false, fallback = nullif (window.ST_LOOKS_GL === false) return null;const opts = { preserveDrawingBuffer: true, premultipliedAlpha: true, antialias: false, alpha, depth: false, stencil: false };const handles = [];+ const readback = readbackHere();+ // what check reports (looks[].present): 'readback' (a 2D canvas the frames are read into) or 'webgl'+ el.__stLookPresent = readback ? 'readback' : 'webgl';const layer = {- el, gl: null, canvas: null, buf: null, W, H, dpr, scale, box: [bw, bh], used: 0, failed: false,+ el, gl: null, glc: null, canvas: null, ctx: null, px: null, buf: null, W, H, dpr, scale, box: [bw, bh], used: 0, failed: false, readback,/** Get a context (a new canvas each time) and build every handle on it. false when WebGL cannot be had. */acquire() {while (LIVE.size >= LIVE_MAX) {@@ -315,10 +333,25 @@ export function lookLayer(el, { name, scale = 1, alpha = false, fallback = nullcanvas.addEventListener('webglcontextlost', () => {if (canvas.__stReleased) return;if (el.__stLook) el.__stLook.lost = (el.__stLook.lost || 0) + 1;- if (layer.canvas === canvas) { layer.gl = null; LIVE.delete(layer); }+ if (layer.glc === canvas) { layer.gl = null; LIVE.delete(layer); }});- if (layer.canvas && layer.canvas.isConnected) layer.canvas.replaceWith(canvas); else el.prepend(canvas);- layer.canvas = canvas; layer.gl = gl;+ if (readback) {+ // the WebGL canvas stays out of the page; the page shows one 2D canvas (a CPU one) for the look's life+ if (!layer.canvas) {+ const shown = document.createElement('canvas');+ shown.className = 'st-look-canvas';+ shown.width = W; shown.height = H;+ shown.setAttribute('aria-hidden', 'true');+ el.prepend(shown);+ layer.canvas = shown;+ layer.ctx = shown.getContext('2d', { alpha, willReadFrequently: true });+ layer.px = layer.ctx.createImageData(W, H);+ }+ } else {+ if (layer.canvas && layer.canvas.isConnected) layer.canvas.replaceWith(canvas); else el.prepend(canvas);+ layer.canvas = canvas;+ }+ layer.glc = canvas; layer.gl = gl;layer.buf = gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER, layer.buf);gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]), gl.STATIC_DRAW);@@ -336,9 +369,10 @@ export function lookLayer(el, { name, scale = 1, alpha = false, fallback = nullLIVE.delete(layer);layer.gl = null;if (!gl) return;- const old = layer.canvas;+ const old = layer.glc;old.__stReleased = true;- if (onScreen(el)) {+ // read back, the page's 2D canvas keeps this frame by itself+ if (!readback && onScreen(el)) {const still = document.createElement('canvas');still.className = old.className;still.width = W; still.height = H;@@ -411,6 +445,28 @@ export function lookLayer(el, { name, scale = 1, alpha = false, fallback = nullgl.vertexAttribPointer(P.aPos, 2, gl.FLOAT, false, 0, 0);if (alpha && !target) { gl.clearColor(0, 0, 0, 0); gl.clear(gl.COLOR_BUFFER_BIT); }gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);+ if (readback && !target) layer.present();+ },+ /** Read the canvas pass back and put it on the page's 2D canvas (readback only). */+ present() {+ const gl = layer.gl, img = layer.px, d = img.data, stride = W * 4;+ // readPixels returns once the GPU has drawn the pass: the frame is complete, never a buffer still being written+ gl.readPixels(0, 0, W, H, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array(d.buffer, d.byteOffset, d.length));+ // WebGL rows run bottom-up, ImageData rows top-down+ const row = layer.row || (layer.row = new Uint8ClampedArray(stride));+ for (let a = 0, b = (H - 1) * stride; a < b; a += stride, b -= stride) {+ row.set(d.subarray(a, a + stride));+ d.copyWithin(a, b, b + stride);+ d.set(row, b);+ }+ // the drawing buffer holds premultiplied colour; ImageData takes it straight+ if (alpha) {+ for (let i = 0; i < d.length; i += 4) {+ const k = d[i + 3];+ if (k > 0 && k < 255) { const f = 255 / k; d[i] *= f; d[i + 1] *= f; d[i + 2] *= f; }+ }+ }+ layer.ctx.putImageData(img, 0, 0);},};// WebGL must be there at setup (else the caller draws its fallback); the shaders are checked on this first@@ -436,16 +492,19 @@ function selectorOf(el) {}/**- * Record a look for `showtime check`: window.__stLooks = [{look, sel, gl, preset, box, passes, ms, note, clip, lost}].- * gl false means the fallback drew (no WebGL here); clip is the [start, end] the look is on screen (end null:- * to the end); lost counts contexts the browser took back.+ * Record a look for `showtime check`: window.__stLooks = [{look, sel, gl, preset, box, passes, ms, note, clip, lost,+ * present, software}]. gl false means the fallback drew (no WebGL here); clip is the [start, end] the look is on screen (end+ * null: to the end); lost counts contexts the browser took back; present is how a WebGL look reaches the page:+ * 'webgl' (its own canvas) or 'readback' (read into a 2D canvas: a render on a GPU), null for a fallback;+ * software whether WebGL is drawn on the CPU here (softwareGL), null for a fallback.*/export function register(el, entry) {const list = window.__stLooks || (window.__stLooks = []);const start = clipStart(el), dur = clipDuration(el);const rec = { look: entry.look, sel: selectorOf(el), gl: !!entry.gl, preset: entry.preset || null,box: entry.box, passes: entry.passes || [], ms: entry.passes ? estimateMs(entry.passes) : 0, note: entry.note || null,- clip: [start, Number.isFinite(dur) ? start + dur : null], lost: 0 };+ clip: [start, Number.isFinite(dur) ? start + dur : null], lost: 0,+ present: entry.gl ? el.__stLookPresent || 'webgl' : null, software: entry.gl ? softwareGL() : null };list.push(rec);el.__stLook = rec;el.dataset.stLook = entry.gl ? 'webgl' : 'fallback';diff --git a/skills/showtime/runtime/player/player.js b/skills/showtime/runtime/player/player.jsindex f9a9f89..0cbae8a 100644--- a/skills/showtime/runtime/player/player.js+++ b/skills/showtime/runtime/player/player.js@@ -579,11 +579,75 @@A.setAttribute('playsinline', '');A.volume = S.volume;root.appendChild(A);- var E = { el: A, kind: 'element', hasSrc: false, failed: false, lastT: -1, lastP: 0, t0: null, p0: 0, moving: false, holdT: 0 };+ var E = { el: A, kind: 'element', hasSrc: false, failed: false, lastT: -1, lastP: 0, t0: null, p0: 0, moving: false, holdT: 0,+ detached: false, blob: null, swapping: false };if (src) { A.src = src; E.hasSrc = true; }A.addEventListener('ended', function () { if (S.playing) anchorWall(S.t); });E.ready = function () { return !!(E.hasSrc && A.readyState >= 2 && !E.failed); };- E.drives = function () { return !A.paused && !A.ended && E.ready(); };+ E.drives = function () { return !E.detached && !A.paused && !A.ended && E.ready(); };+ // A --folder export served without HTTP Range requests (python -m http.server and other simple servers):+ // the element cannot seek past what it has downloaded and plays on from where it was, so the clock stalled+ // after a seek. Then the soundtrack is read whole into a blob (always seekable) and swapped in; until it+ // is, the sound stops driving the clock (the picture plays on by the wall clock) and the element is paused.+ // When that read fails, the next seek tries it again (or seeks the element itself where it can get to).+ function remote() { return /^https?:/i.test(String(A.currentSrc || A.src || '')); }+ function canSeek(t) {+ try {+ var s = A.seekable;+ if (!s || !isFinite(A.duration)) return true; // not known yet: the seek is tried as usual+ for (var i = 0; i < s.length; i++) if (s.start(i) <= t + 0.05 && t <= s.end(i) + 0.25) return true;+ } catch (e) { return true; }+ return false;+ }+ function fetchBlob() {+ if (!E.blob && remote() && typeof fetch === 'function') {+ E.blob = fetch(A.currentSrc || A.src).then(function (r) { if (!r.ok) throw new Error('HTTP ' + r.status); return r.blob(); });+ E.blob.catch(function () {});+ }+ return E.blob;+ }+ function swapIn() {+ if (E.swapping) return;+ var p = fetchBlob();+ if (!p) { E.detached = false; return; }+ E.swapping = true;+ p.then(function (b) {+ A.addEventListener('canplay', function () {+ E.swapping = false;+ E.detached = false;+ E.reset();+ try { A.currentTime = Math.min(S.t, A.duration || S.t); } catch (e) { /* ignore */ }+ A.muted = S.muted;+ if (S.playing) A.play().catch(function () {});+ }, { once: true });+ A.src = URL.createObjectURL(b);+ try { A.load(); } catch (e) { /* ignore */ }+ }).catch(function (e) {+ // forget the failed read (kept, every later seek waited on it and the sound stayed detached for the rest+ // of the session); a plain seek where the element can get to, else the sound waits for the next seek+ E.swapping = false; E.blob = null;+ if (canSeek(S.t)) {+ E.reset();+ try { seekEl(Math.min(S.t, A.duration || S.t)); } catch (x) { /* ignore */ }+ A.muted = S.muted;+ if (S.playing) A.play().catch(function () {});+ }+ reportChild('the soundtrack could not be read whole for seeking: ' + (e && e.message || e));+ });+ }+ /** Seek the element to t, or, when it cannot get there (no Range support), detach it until the blob is in. */+ function seekEl(t) {+ if (!remote() || (!E.swapping && canSeek(t))) { E.detached = false; A.currentTime = t; return true; } // blob:, data:, file: seek+ E.detached = true;+ if (!A.paused) A.pause();+ swapIn();+ return false;+ }+ A.addEventListener('loadedmetadata', function () {+ // not seekable to the end once the length is known: read the file whole now (swapped in at the first+ // seek it needs), so that seek waits for little or nothing+ if (remote() && isFinite(A.duration) && !canSeek(Math.max(0, A.duration - 1))) fetchBlob();+ });E.reset = function () { E.lastT = -1; E.t0 = null; E.moving = false; E.holdT = S.t; };E.time = function () {if (!E.drives()) return null;@@ -599,8 +663,8 @@};E.play = function (t) {E.reset();- if (!E.ready()) return;- try { if (Math.abs(A.currentTime - t) > 0.02) A.currentTime = Math.min(t, (A.duration || t)); } catch (e) { /* ignore */ }+ if (!E.ready() || E.swapping) return; // swapping: the swap starts it at the film's time+ try { if (Math.abs(A.currentTime - t) > 0.02 && !seekEl(Math.min(t, (A.duration || t)))) return; } catch (e) { /* ignore */ }A.muted = S.muted;var pr = A.play();if (pr && pr.catch) pr.catch(function () { if (S.playing && !A.muted) { S.muted = true; A.muted = true; unmuteBtn.hidden = false; renderUI(); A.play().catch(function () {}); } });@@ -608,12 +672,12 @@E.pause = function () { if (!A.paused) A.pause(); };E.seek = function (t) {E.reset();- if (!E.ready()) return;- try { A.currentTime = t; } catch (e) { /* ignore */ }+ if (!E.ready() || E.swapping) return;+ try { if (!seekEl(t)) return; } catch (e) { /* ignore */ }if (S.playing && A.paused) A.play().catch(function () {});};E.setVolume = function () { A.volume = S.volume; A.muted = S.muted; };- E.resumeIfPaused = function () { if (S.playing && A.paused) A.play().catch(function () {}); };+ E.resumeIfPaused = function () { if (S.playing && A.paused && !E.detached) A.play().catch(function () {}); };E.buffering = function () { return false; };var SILENT = 'data:audio/wav;base64,UklGRiYAAABXQVZFZm10IBAAAAABAAEAgLsAAAB3AQACABAAZGF0YQIAAAAAAA==';var unlocked = false;diff --git a/skills/showtime/runtime/thresholds.json b/skills/showtime/runtime/thresholds.jsonindex 380e7cb..a7a28c5 100644--- a/skills/showtime/runtime/thresholds.json+++ b/skills/showtime/runtime/thresholds.json@@ -1,5 +1,5 @@{- "_comment": "Timing and design thresholds shared by `showtime check` (scripts/check.mjs, before the render), `showtime qa` (lib/st/qa, on the final file) and `showtime retime` (lib/st/cli_core.py). Change them here only, so check and qa agree. min_contrast: WCAG ratio every text needs (an error for text >= 1% of the frame height). tiny_text_frac: readable text below this fraction of the frame height is a tiny_text warning (UI mockups marked data-st-decor are exempt). freeze_noise_db: the picture counts as unchanged while the mean absolute difference from the start of a hold stays under this level (qa: ffmpeg freezedetect n=, check: the same mean on its 64x36 luma samples), so small typing or a 2 px playhead is still a hold in both. label_gap_em: SVG labels in one graphic (chart values and axes, map names) that touch, or sit side by side or stacked closer than this fraction of their font size, are labels_crowded in `showtime check`. launch_hold_s: the still-hold limit for launch, promo, release and trailer films (showtime.json \"kind\"): a settled result or a still hook may breathe a little longer than in other videos, but the round-4 benchmark judges marked every 3.6-4.9 s still stretch in launch films as frozen, so launch films warn from 3.5 s (the end card holds up to final_hold_max_s). Phone check (scripts/lib/phone.mjs; references/qa.md): phone_width_pt is the portrait phone width a video fills; phone_min_pt is the smallest readable text in points at that width, per aspect (on-screen px * phone_width_pt / frame width; tiny_text also keeps the older floor tiny_text_frac); reading is the on-screen reading speed per language (cps = characters/s, wps = words/s, the longer time applies; no wps for languages written without spaces), plus reading_lead_s to find the text and reading_min_s as the shortest hold. Sources, checked against the published guides on 2026-09-29: references/qa.md (Phone check). hearing: the hearing pass of `showtime qa` and `review-pack` (lib/st/qa/hearing.py; references/qa.md, review.md): voice_over_bed_min_db is the least a voice line may sit over the music under it (voice_masked, measured with the render's narration stem; the mix report warns under 8 dB too), quiet_stretch_s and quiet_under_lu make near silence mid-video a quiet_stretch (and list pauses in the voice), level_jump_lu is the change at a cut the ear notices (level_jump), abrupt_end_db is how close the last 0.2 s may stay to the 3 s before before the ending counts as cut off (abrupt_end); fast_wpm, slow_wpm and sfx_loud_lu only mark lines and effects in the critic's audio.txt. speaker_gap_lu / speaker_gap_fail_lu: how far the mix above 300 Hz (a phone or laptop speaker) may sit under the full mix before speaker_loudness warns / fails; measured 2026-10-07 on every posted film at 0.7-8.2 LU and on a bass-led showreel preview at 13.6 LU (st.audio.meter; the mixer's speaker-safe step aims for 8 LU). showreel: the showreel tone (lib/st/showreel.py, scripts/lib/showreel.mjs; references/tones.md, showreel): a flash word (data-st-flash, or {flash: true} on a canvas) of at most flash_max_words words and flash_max_chars characters, on screen at least flash_min_s, may leave before its reading time (check: flash_text, not short_text), as long as one other text is held its full reading time (no_hero_line); qa warns showreel_sparse under shots_per_15s_min shots per 15 s (the round-5 blind vote of 2026-10-05 went to a reel with 13-14 shots and lost the takes with 9-11), and the docs aim for up to shots_per_15s_max; showreel_long_end when the end card holds still (nothing moves) longer than end_hold_max_frac of the duration, or the last shot runs longer than end_shot_max_frac (the losing takes held their name 2.5-3.5 s of 15); showreel_repeats when two shots of 0.4 s or more that are not neighbours look alike (colour histogram distance under repeat_hist_max and coarse layout correlation over repeat_layout_min: the same technique or layout twice); an energy dip is a stretch over dip_max_s where nothing moves much before the end card (the critic's rubric counts them). look_budget_ms: the extra time per frame a WebGL look (fluted-glass, tilt-shift, liquid-metal, mesh-gradient, god-rays, marble, metaballs; runtime/effects/gl.js) may cost without a GPU, estimated from its passes and size with the costs measured on the build box (SwiftShader, one browser, 1080p); `showtime check` warns above it (look_budget). look_live_warn / look_live_max: the most looks on screen at once (each holds a WebGL context while its clip shows; Chrome keeps about 16 per page): check warns above the first and fails above the second (look_contexts). blur: the shutter blur on chosen elements (data-st-blur, ST.blur; runtime/stage.js, scripts/lib/blurcheck.mjs; references/stage-api.md, Shutter blur): check warns blur_slow when a blurred element, at its fastest frame, moves less than min_motion of its shorter side (as it is on screen at that frame) in one frame (the smear is then a soft edge, not motion; the snaps measured on the build box ran 0.3 for a scale punch to 3.4 for a whip, drifts and gentle entrances under 0.1) or never moves fast enough to blur, blur_text when text is blurred for longer than text_run_s in one run, on every frame it is on screen, or with a threshold under default_threshold px a frame (the runtime's default: it blurs while it moves slowly), and blur_container when the element covers container_frac of the frame or more, holds more than container_nodes elements, is a clip holding clips, or holds a canvas or video.",+ "_comment": "Timing and design thresholds shared by `showtime check` (scripts/check.mjs, before the render), `showtime qa` (lib/st/qa, on the final file) and `showtime retime` (lib/st/cli_core.py). Change them here only, so check and qa agree. min_contrast: WCAG ratio every text needs (an error for text >= 1% of the frame height). tiny_text_frac: readable text below this fraction of the frame height is a tiny_text warning (UI mockups marked data-st-decor are exempt). freeze_noise_db: the picture counts as unchanged while the mean absolute difference from the start of a hold stays under this level (qa: ffmpeg freezedetect n=, check: the same mean on its 64x36 luma samples), so small typing or a 2 px playhead is still a hold in both. label_gap_em: SVG labels in one graphic (chart values and axes, map names) that touch, or sit side by side or stacked closer than this fraction of their font size, are labels_crowded in `showtime check`. launch_hold_s: the still-hold limit for launch, promo, release and trailer films (showtime.json \"kind\"): a settled result or a still hook may breathe a little longer than in other videos, but the round-4 benchmark judges marked every 3.6-4.9 s still stretch in launch films as frozen, so launch films warn from 3.5 s (the end card holds up to final_hold_max_s). Phone check (scripts/lib/phone.mjs; references/qa.md): phone_width_pt is the portrait phone width a video fills; phone_min_pt is the smallest readable text in points at that width, per aspect (on-screen px * phone_width_pt / frame width; tiny_text also keeps the older floor tiny_text_frac); reading is the on-screen reading speed per language (cps = characters/s, wps = words/s, the longer time applies; no wps for languages written without spaces), plus reading_lead_s to find the text and reading_min_s as the shortest hold. Sources, checked against the published guides on 2026-09-29: references/qa.md (Phone check). hearing: the hearing pass of `showtime qa` and `review-pack` (lib/st/qa/hearing.py; references/qa.md, review.md): voice_over_bed_min_db is the least a voice line may sit over the music under it (voice_masked, measured with the render's narration stem; the mix report warns under 8 dB too), quiet_stretch_s and quiet_under_lu make near silence mid-video a quiet_stretch (and list pauses in the voice), level_jump_lu is the change at a cut the ear notices (level_jump), abrupt_end_db is how close the last 0.2 s may stay to the 3 s before before the ending counts as cut off (abrupt_end); fast_wpm, slow_wpm and sfx_loud_lu only mark lines and effects in the critic's audio.txt. speaker_gap_lu / speaker_gap_fail_lu: how far the mix above 300 Hz (a phone or laptop speaker) may sit under the full mix before speaker_loudness warns / fails; measured 2026-10-07 on every posted film at 0.7-8.2 LU and on a bass-led showreel preview at 13.6 LU (st.audio.meter; the mixer's speaker-safe step aims for 8 LU). showreel: the showreel tone (lib/st/showreel.py, scripts/lib/showreel.mjs; references/tones.md, showreel): a flash word (data-st-flash, or {flash: true} on a canvas) of at most flash_max_words words and flash_max_chars characters, on screen at least flash_min_s, may leave before its reading time (check: flash_text, not short_text), as long as one other text is held its full reading time (no_hero_line); qa warns showreel_sparse under shots_per_15s_min shots per 15 s (the round-5 blind vote of 2026-10-05 went to a reel with 13-14 shots and lost the takes with 9-11), and the docs aim for up to shots_per_15s_max; showreel_long_end when the end card holds still (nothing moves) longer than end_hold_max_frac of the duration, or the last shot runs longer than end_shot_max_frac (the losing takes held their name 2.5-3.5 s of 15); showreel_repeats when two shots of 0.4 s or more that are not neighbours look alike (colour histogram distance under repeat_hist_max and coarse layout correlation over repeat_layout_min: the same technique or layout twice); an energy dip is a stretch over dip_max_s where nothing moves much before the end card (the critic's rubric counts them). look_budget_ms: the extra time per frame a WebGL look (fluted-glass, tilt-shift, liquid-metal, mesh-gradient, god-rays, marble, metaballs; runtime/effects/gl.js) may cost without a GPU, estimated from its passes and size with the costs measured on our 64-core test machine (SwiftShader, one browser, 1080p); `showtime check` warns above it (look_budget). look_live_warn / look_live_max: the most looks on screen at once (each holds a WebGL context while its clip shows; Chrome keeps about 16 per page): check warns above the first and fails above the second (look_contexts). blur: the shutter blur on chosen elements (data-st-blur, ST.blur; runtime/stage.js, scripts/lib/blurcheck.mjs; references/stage-api.md, Shutter blur): check warns blur_slow when a blurred element, at its fastest frame, moves less than min_motion of its shorter side (as it is on screen at that frame) in one frame (the smear is then a soft edge, not motion; the snaps measured on our 64-core test machine ran 0.3 for a scale punch to 3.4 for a whip, drifts and gentle entrances under 0.1) or never moves fast enough to blur, blur_text when text is blurred for longer than text_run_s in one run, on every frame it is on screen, or with a threshold under default_threshold px a frame (the runtime's default: it blurs while it moves slowly), and blur_container when the element covers container_frac of the frame or more, holds more than container_nodes elements, is a clip holding clips, or holds a canvas or video.","look_budget_ms": 50,"look_live_warn": 8,"look_live_max": 14,diff --git a/skills/showtime/scripts/adopt.mjs b/skills/showtime/scripts/adopt.mjsindex a91171e..d258b76 100644--- a/skills/showtime/scripts/adopt.mjs+++ b/skills/showtime/scripts/adopt.mjs@@ -102,6 +102,16 @@ function readText(f) { try { return fs.readFileSync(f, 'utf8'); } catch { returnfunction readJSON(f) { try { return JSON.parse(fs.readFileSync(f, 'utf8').replace(/^\uFEFF/, '')); } catch { return null; } }function writeJSON(f, o) { fs.mkdirSync(path.dirname(f), { recursive: true }); fs.writeFileSync(f, JSON.stringify(o, null, 2) + '\n'); }const posix = (p) => p.split(path.sep).join('/');+/** A path as written into the project's own files (adopt.json, showtime.json): relative to the project folder,+ * with forward slashes, so a project copied or shared names no machine path; absolute only when there is no+ * relative way (another drive). fromProject() reads both forms back. */+const toProject = (dest, p) => {+ if (!p) return p;+ const r = path.relative(dest, path.resolve(p));+ return r === '' ? '.' : path.isAbsolute(r) ? p : posix(r);+};+// an absolute path (written by 0.4.0 and earlier) stays as it is: split on '/', its leading '' would drop the root+const fromProject = (dest, p) => (!p ? p : path.isAbsolute(String(p)) ? String(p) : path.resolve(dest, ...String(p).split('/')));const rel = (p) => { const r = path.relative(process.cwd(), p); return r && !r.startsWith('..') && !path.isAbsolute(r) ? r : p; };const sha = (buf) => crypto.createHash('sha256').update(buf).digest('hex');const even = (n) => Math.max(2, Math.round(n / 2) * 2);@@ -196,7 +206,7 @@ async function main() {}prev = existing.adopt;dest = path.dirname(cfgAt);- src = prev.source;+ src = fromProject(dest, prev.source); // relative to the project (absolute before 0.4.1)if (!fs.existsSync(src)) throw new UserError(`the source of this project is gone: ${src}`, 'adopt the new location instead: showtime adopt <folder> -o <new project>');for (const k of ['mode', 'seek', 'fn', 'unit', 'ready', 'duration', 'fps', 'size', 'python', 'workers', 'timeout']) {if (a[k] === undefined && prev.options && prev.options[k] !== undefined) a[k] = String(prev.options[k]);@@ -204,7 +214,7 @@ async function main() {if (!a['allow-license'] && prev.options && prev.options.allow_license) a['allow-license'] = true;if (!a.page && prev.entry && prev.kind !== 'python' && prev.kind !== 'capture') a.page = prev.entry;if (!a.script && prev.entry && (prev.kind === 'python' || prev.kind === 'capture')) a.script = prev.entry;- if (!a.root && prev.root && !prev.zip) a.root = prev.root;+ if (!a.root && prev.root && !prev.zip) a.root = fromProject(dest, prev.root);} else if (existing && !a.refresh && fs.statSync(src).isDirectory() &&(fs.existsSync(path.join(src, 'index.html')) && /\/_st\/stage\.js|ST\.onSeek|Film\./.test(readText(path.join(src, 'index.html'))))) {throw new UserError(`${rel(src)} is already a showtime project`, `use it directly: showtime check ${rel(src)}`);@@ -293,8 +303,9 @@ async function main() {// showtime.json: keep whatever the user added (audio, poster, captions), refresh what adopt ownsconst cfgPath = path.join(dest, 'showtime.json');const cfg = readJSON(cfgPath) || {};+ const source = zip || (src === root ? root : path.resolve(src));const adoptBlock = {- source: zip || (src === root ? root : path.resolve(src)), root: zip ? posix(path.relative(dest, root)) || '.' : root, entry,+ source: toProject(dest, source), root: toProject(dest, root), entry,kind: res.kind, contract: res.contract, adopted: new Date().toISOString(), options: res.options,...(zip ? { zip: true } : {}), ...(res.made ? { made: res.made } : {}),};@@ -320,14 +331,18 @@ async function main() {const report = {ok: !findings.errors.length && (!check || check.errors === 0) && (!det || det.verdict !== 'differs'),- project: dest, job, source: adoptBlock.source, entry, kind: res.kind, contract: res.contract,+ project: dest, job, source, entry, kind: res.kind, contract: res.contract,...(res.made ? { made: res.made, design: res.design } : {}),width: res.width, height: res.height, fps: res.fps, duration: res.duration, loop: res.loop || null, sources: res.sources,fonts: res.fonts || [],audio: res.audioFiles || [], determinism: det, check, findings: findings.items, copied: { files: copied.files, bytes: copied.bytes, skipped: copied.skipped },seconds: Math.round((Date.now() - t0) / 100) / 10,};- writeJSON(path.join(dest, 'adopt.json'), report);+ // on disk, paths relative to the project (as in showtime.json); the printed report keeps them absolute+ writeJSON(path.join(dest, 'adopt.json'), {+ ...report, project: '.', job: toProject(dest, job), source: toProject(dest, source),+ ...(check ? { check: { ...check, report: toProject(dest, check.report), sheet: toProject(dest, check.sheet) } } : {}),+ });if (job) await noteJob(job, dest, report);printSummary(report, a);if (findings.errors.length || (check && check.errors) || (det && det.verdict === 'differs')) return 1;diff --git a/skills/showtime/scripts/check.mjs b/skills/showtime/scripts/check.mjsindex f1af3be..3f2a31e 100644--- a/skills/showtime/scripts/check.mjs+++ b/skills/showtime/scripts/check.mjs@@ -165,6 +165,15 @@ function blend(fg, a, bg) { return fg.map((v, i) => Math.round(v * a + bg[i] * (const hex = (c3) => '#' + c3.map((v) => Math.round(v).toString(16).padStart(2, '0')).join('');const snip = (s, n = 40) => (s.length > n ? s.slice(0, n - 1) + '…' : s);+/** "fluted-glass 25.8 ms, metaballs 14.2 ms per frame without a GPU (budget 50 ms)" from report.looks, or ''. */+export function looksLine(looks) {+ const items = (looks && looks.items) || [];+ if (!items.length) return '';+ const one = (lk) => `${lk.look}${items.filter((x) => x.look === lk.look).length > 1 && lk.sel ? ` ${lk.sel}` : ''} ` ++ (lk.gl && Number.isFinite(Number(lk.ms)) ? `${Number(lk.ms)} ms${Number(lk.ms) > looks.budget_ms ? ' (over)' : ''}` : 'fallback (no WebGL)');+ return `${items.map(one).join(', ')} per frame without a GPU (budget ${looks.budget_ms} ms)`;+}+async function main() {const a = parseCli(SPEC);const T0 = Date.now();@@ -1333,7 +1342,7 @@ async function main() {}} catch { /* a probe only */ }}- // WebGPU: showtime never needs a GPU (the build box has none), and without one a WebGPU page gets no+ // WebGPU: showtime never needs a GPU (the test machine has none), and without one a WebGPU page gets no// adapter and draws nothing (a flat ground; the render only warns). A page that asks for WebGPU is// loaded again with WebGPU gone, as on such a machine: when no WebGL or 2D canvas of the page draws// in its place, that is an error; when one does, a warning (frames differ with and without a GPU).@@ -1374,7 +1383,7 @@ async function main() {}// WebGL looks (fluted-glass, tilt-shift, liquid-metal, mesh-gradient, god-rays, marble, metaballs;// runtime/effects/gl.js): each one records its size, its passes and what they cost per frame without a GPU- // (the build box's SwiftShader timings). Over the budget is a warning with the knob that brings it back; a look+ // (the test machine's SwiftShader timings). Over the budget is a warning with the knob that brings it back; a look// that drew its fallback (no WebGL here) is a warning too.try {const looks = await sess.page.evaluate(() => (window.__stLooks || []).map((x) => JSON.parse(JSON.stringify(x)))).catch(() => []);@@ -1510,7 +1519,16 @@ async function main() {const kf = an.effect.getKeyframes ? an.effect.getKeyframes() : [];if (!kf.length || kf[0].opacity === undefined || !(parseFloat(kf[0].opacity) < 0.05)) continue; // an entrance from invisibleif (!(tg.textContent || '').trim() && !tg.querySelector('img, svg, video, canvas')) continue;- const f = Math.round((startOf(tg) + (Number(an.effect.getTiming().delay) || 0) / 1000) * fps);+ // the entrance starts where the opacity leaves 0: the last invisible keyframe before the first visible+ // one (keyframes that hold 0 until 40 % enter at 40 % of the duration, not at the animation's start)+ let hold = 0;+ for (const k of kf) {+ if (k.opacity === undefined) continue;+ if (parseFloat(k.opacity) >= 0.05) break;+ hold = Number(k.computedOffset ?? k.offset) || 0;+ }+ const dur = Number(an.effect.getComputedTiming().duration) || 0;+ const f = Math.round((startOf(tg) + ((Number(an.effect.getTiming().delay) || 0) + hold * dur) / 1000) * fps);const par = tg.parentElement;if (!groups.has(par)) groups.set(par, new Map());const byF = groups.get(par);@@ -1660,6 +1678,8 @@ async function main() {if (report.sheet) tail.push(` sheet ${report.sheet}`);tail.push(` report ${file}`);if (report.estimate) tail.push(` estimate: a full render takes about ${fmtDuration(report.estimate.seconds * 1000)} here (${report.estimate.frames} frames, ~${report.estimate.msPerFrame} ms/frame, ${report.estimate.workers} workers${report.estimate.note ? `; ${report.estimate.note}` : ''})`);+ const looksTxt = looksLine(report.looks);+ if (looksTxt) tail.push(` looks ${looksTxt}`);if (report.pace && report.pace.factor > 1) tail.push(` waits: x${report.pace.factor} for this page's pace (frames ${report.pace.frame_ms ?? '-'} ms apart while it got ready, seeks ${report.pace.seek_ms ?? '-'} ms); render scales its waits the same way`);const textFile = path.join(outDir, 'report.txt');try { fs.writeFileSync(textFile, [...fileLines, ...tail, ''].join('\n').replace(/\x1b\[[0-9;]*m/g, '')); } catch { /* the summary still prints */ }@@ -1694,6 +1714,7 @@ async function main() {out.push(` look showtime look ${/\s/.test(rel) ? JSON.stringify(rel) : rel} (one small image of the key frames; sheet.jpg is for reviewers)`);out.push(` report ${textFile} (full), report.json`);if (report.estimate) out.push(` estimate: full render ~${fmtDuration(report.estimate.seconds * 1000)}`);+ if (looksTxt) out.push(` looks ${looksTxt}`);for (const l of out) console.log(l);}if (report.phone && !quiet) console.log(` ${report.phone.ok ? c.green('PASS') : c.yellow('WARN')} ${phoneLine(report.phone)}`);diff --git a/skills/showtime/scripts/export.mjs b/skills/showtime/scripts/export.mjsindex f7f1fbf..641a4be 100644--- a/skills/showtime/scripts/export.mjs+++ b/skills/showtime/scripts/export.mjs@@ -20,7 +20,7 @@ import { resolveShare, shareMeta, genericTitle, genericChapters } from './lib/exconst SPEC = {name: 'export',- usage: 'showtime export html <project> [-o out.html] [--audio auto|embed|score|none] [--folder] [--controls full|minimal|none] [--target file|artifact] [--lang CODE] [--no-questions] [--auto-continue S]',+ usage: 'showtime export html <project|job> [-o out.html] [--audio auto|embed|score|none] [--folder] [--controls full|minimal|none] [--target file|artifact] [--lang CODE] [--no-questions] [--auto-continue S]',summary: 'Export a project as an interactive HTML video that plays in any browser, offline, from one file.',description: ['The page is packed with everything it uses (runtime, scripts, styles, fonts, images, emoji, data,',@@ -39,6 +39,8 @@ const SPEC = {'MP4\'s "pause and think" beat. socratic.json (the same questions, for pages that drive the player from','outside) is written next to the export. --no-questions exports a plain player.','The file makes no network request. Default output: ./showtime-out/<title>-<timestamp>/<title>.html',+ 'A job (folder or name, as qa takes it) exports its project/ folder into the job folder;',+ '`<job> --folder out` writes the folder version to ./out/.','','Audio: auto = the procedural score played live (streamed from the first second, tiny file) when','that is all the sound, otherwise',@@ -94,6 +96,8 @@ const SPEC = {'showtime export html my-video # -> showtime-out/<title>-<ts>/<title>.html','showtime export html my-video -o launch.html # one file, plays offline in any browser','showtime export html my-video --job launch -o embed.html # into the job folder, with that name',+ 'showtime export html launch # a job: its project/, into the job folder',+ 'showtime export html launch --folder out # a job as a folder: ./out/index.html + assets/','showtime export html my-film --audio score # procedural score rendered live: tiny file','showtime export html my-film --audio-file final.mp4 # the shipped video\'s soundtrack, nothing rebuilt','showtime export html my-video --bitrate 64k --max-mb 8',@@ -110,6 +114,26 @@ const SPEC = {const MB = 1000 * 1000; // decimal MB, like fmtBytes and platform limits+/**+ * A job argument -> { job, project } (its project/ folder), or null for a project folder or page. A job without+ * a project/ folder is an error that says so (never "start a new project": the job has one somewhere else).+ */+export function jobProject(arg, page) {+ const has = (d) => fs.existsSync(path.join(d, page || 'index.html'));+ const abs = path.resolve(String(arg));+ if (fs.existsSync(abs) && (fs.statSync(abs).isFile() || has(abs))) return null;+ let job = null;+ try { job = resolveJobDir(arg); } catch (e) { if (!fs.existsSync(abs)) throw new UserError(e.message, e.hint); }+ if (!job || !fs.existsSync(job) || !fs.statSync(job).isDirectory()) return null;+ const project = path.join(job, 'project');+ if (has(project)) return { job, project };+ if (fs.existsSync(path.join(job, 'job.json')) || fs.existsSync(path.join(job, 'render.json'))) {+ throw new UserError(`the job ${job} has no project/${page || 'index.html'} to export`,+ 'pass the project folder the job was rendered from: showtime export html <project-folder> (render.json "project" names it)');+ }+ return null;+}+/** --lang, showtime.json "lang"/"language", <html lang>, narration.md front matter (lang: es), else "en". */export function projectLang(flag, cfg, pageHtml, dir) {const ok = (v) => (typeof v === 'string' && /^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(v.trim()) ? v.trim() : null);@@ -141,13 +165,17 @@ async function main() {else if (pos.length && fs.existsSync(pos[0])) { /* `showtime export <project>` means html */ }else if (pos.length && /^(mp4|mov|webm|gif|video)$/i.test(pos[0])) throw new UserError(`"${pos[0]}" is not an export format here`, 'video files come from `showtime render <project>`, platform versions from `showtime deliver exports <video>`');else throw new UserError(pos.length ? `unknown export format "${pos[0]}"` : 'missing the export format', 'showtime export html <project>');- if (pos.length > 1) throw new UserError(`expected one project, got: ${pos.join(' ')}`, 'showtime export html <project-folder>');+ // `<job> --folder out`: --folder takes no value, so the word after it is the output folder+ if (pos.length === 2 && a.folder && a.output === undefined) a.output = pos.pop();+ if (pos.length > 1) throw new UserError(`expected one project, got: ${pos.join(' ')}`, 'showtime export html <project-folder|job> [--folder -o OUT]');const quiet = !!a.quiet;const say = (m) => { if (!quiet) info(m); };const warnings = [];const addWarn = (m) => { if (!warnings.includes(m)) { warnings.push(m); warn(m); } };- const proj = resolveProject(pos[0] || '.', { page: a.page });+ // a job (as qa and review take it) exports its project/ folder, into the job folder by default+ const fromJob = jobProject(pos[0] || '.', a.page);+ const proj = resolveProject(fromJob ? fromJob.project : (pos[0] || '.'), { page: a.page });{ const w = staleKitWarning(proj.dir); if (w) addWarn(w); }const cfg = { ...proj.config };const folder = !!a.folder;@@ -207,7 +235,7 @@ async function main() {}if (out !== want) addWarn(`${want} exists; writing ${path.basename(out)} instead (exports never overwrite)`);} else {- const dir = a.job ? resolveJobDir(a.job) : jobDir(proj.slug, a['out-dir']);+ const dir = a.job ? resolveJobDir(a.job) : (fromJob && !a['out-dir'] ? fromJob.job : jobDir(proj.slug, a['out-dir']));if (!dir || !fs.existsSync(dir)) throw new UserError(`no job named "${a.job}"`, 'list jobs with `showtime job list`');out = freshPath(path.join(dir, folder ? `${proj.slug}-html` : `${proj.slug}.html`));}@@ -322,7 +350,11 @@ async function main() {const fit = async (over) => {if (fitMode === 'off') return false;const r = await fitFootage(col.files, { over, workDir: path.join(workDir, 'fit'), say: (m) => say(c.dim(` fit: ${m}`)) });- refit.push(...r.items);+ // one entry per clip: a later pass re-encodes the same clip again (its original size, its last encode)+ for (const it of r.items) {+ const i = refit.findIndex((x) => x.path === it.path);+ if (i >= 0) refit[i] = it; else refit.push(it);+ }if (!r.items.length && r.reason) addWarn(`could not fit the footage under ${maxMb} MB: ${r.reason}`);return r.items.length > 0;};@@ -410,7 +442,7 @@ async function main() {const aTxt = audioReport.mode === 'embed' ? `embedded ${audioReport.codec.toUpperCase()} ${audioReport.bitrate}` : audioReport.mode === 'score' ? 'live score' : 'no sound';console.log(`${c.green('exported')} ${res.output}`);console.log(` ${fmtBytes(res.bytes)}${folder ? ' (folder)' : ` of ${maxMb || 'unlimited'} MB`}, ${manifest.width}x${manifest.height} ${manifest.fps} fps ${D.toFixed(2)} s, ${aTxt}, ${pr.chapters.length} chapters, ${res.files} files packed`);- console.log(` open it in any browser (double-click); it makes no network request${folder ? '. Serve the folder, or open index.html' : ''}`);+ console.log(` open it in any browser (double-click); it makes no network request${folder ? '. Serve the folder from a host with byte ranges (GitHub Pages, most web hosts), or open index.html' : ''}`);if (socratic) console.log(` ${qs.list.length} question${qs.list.length > 1 ? 's' : ''}: the video stops and asks${controls === 'none' ? ' (from the embedding page)' : ''}; ${path.basename(socratic)} beside it`);showCard({title: `${path.basename(res.output)} is ready`, file: res.output,diff --git a/skills/showtime/scripts/lib/adopt/design.mjs b/skills/showtime/scripts/lib/adopt/design.mjsindex e92ca93..9f231b3 100644--- a/skills/showtime/scripts/lib/adopt/design.mjs+++ b/skills/showtime/scripts/lib/adopt/design.mjs@@ -193,7 +193,7 @@ export function fontFetchFailure(stderr, exitCode = 1) {return { code, why };}-const GF_HOST =/^https?:\/\/fonts\.googleapis\.com\/css2?\?/i;+const GF_HOST = /^https?:\/\/fonts\.googleapis\.com\/css2?\?/i;/** Google Fonts stylesheets a page loads (<link href> or @import) -> [{url, raw}] (url with & decoded). */export function googleFontLinks(html) {diff --git a/skills/showtime/scripts/lib/audio.mjs b/skills/showtime/scripts/lib/audio.mjsindex 91c2425..cce248a 100644--- a/skills/showtime/scripts/lib/audio.mjs+++ b/skills/showtime/scripts/lib/audio.mjs@@ -159,7 +159,8 @@ export async function simpleMix(spec, dir, duration, out, addWarn) {* Master a WAV to a loudness target: exact linear gain when the peaks allow it, otherwise gain into an* oversampled limiter (at most `maxLimitDb` of limiting, up to 3 passes). The audio module's* `showtime audio master` is used instead when it is installed.- * -> { mode: 'linear'|'limited'|'audio-module'|'silent', lufs, true_peak, gain_db, reached }+ * -> { mode: 'linear'|'limited'|'audio-module'|'silent'|'unmeasured', lufs, true_peak, gain_db, reached, error? }+ * ('unmeasured': the meter failed, the sound is kept as mixed and `error` says why)*/export async function master(inWav, outWav, { target = -14, tp = -1, maxLimitDb = 6, useModule = true } = {}) {const { ebur128: meter } = await import('./ff.mjs');@@ -167,10 +168,13 @@ export async function master(inWav, outWav, { target = -14, tp = -1, maxLimitDbconst r = await runPyCli(['audio', 'master', inWav, '-o', outWav, '--lufs', String(target), '--tp', String(tp)]);if (r.code === 0 && fs.existsSync(outWav)) {const m = await meter(outWav);- return { mode: 'audio-module', lufs: m.I, true_peak: m.TP, gain_db: null, reached: m.I !== null && Math.abs(m.I - target) <= 1 };+ return { mode: 'audio-module', lufs: m.I, true_peak: m.TP, gain_db: null, reached: m.I !== null && Math.abs(m.I - target) <= 1,+ ...(m.error ? { error: m.error } : {}) };}}const m0 = await meter(inWav);+ // a reading that failed is not silence and not 0 LUFS: keep the sound as mixed and say why+ if (m0.error) { fs.copyFileSync(inWav, outWav); return { mode: 'unmeasured', lufs: null, true_peak: null, gain_db: 0, reached: null, error: m0.error }; }if (m0.I === null) { fs.copyFileSync(inWav, outWav); return { mode: 'silent', lufs: null, true_peak: m0.TP, gain_db: 0, reached: false }; }const want = target - m0.I;const headroom = tp - m0.TP;diff --git a/skills/showtime/scripts/lib/cli.mjs b/skills/showtime/scripts/lib/cli.mjsindex 1d9a0ac..3cb79f6 100644--- a/skills/showtime/scripts/lib/cli.mjs+++ b/skills/showtime/scripts/lib/cli.mjs@@ -292,10 +292,17 @@ export function jobDir(slug, base) {let root = path.resolve(base || process.env.SHOWTIME_OUT || process.cwd());if (path.basename(root) !== 'showtime-out') root = path.join(root, 'showtime-out');const stem = `${slug}-${timestamp()}`;- let d = path.join(root, stem), n = 2;- while (fs.existsSync(d)) d = path.join(root, `${stem}-${n++}`);- fs.mkdirSync(d, { recursive: true });- return d;+ fs.mkdirSync(root, { recursive: true });+ // claimed by an exclusive mkdir: two renders started in the same second never get the same folder+ for (let n = 1; ; n++) {+ const d = path.join(root, n === 1 ? stem : `${stem}-${n}`);+ try {+ fs.mkdirSync(d);+ return d;+ } catch (e) {+ if (e.code !== 'EEXIST') throw e;+ }+ }}/** A path that does not exist yet: foo.mp4, foo-2.mp4, ... */diff --git a/skills/showtime/scripts/lib/export/audio.mjs b/skills/showtime/scripts/lib/export/audio.mjsindex c6ef70a..785c975 100644--- a/skills/showtime/scripts/lib/export/audio.mjs+++ b/skills/showtime/scripts/lib/export/audio.mjs@@ -124,7 +124,8 @@ export async function buildEmbedAudio({ proj, cfg, duration, score, workDir, codelse {// a lossy encode at a low bitrate overshoots true peak more than 256k AAC: keep 1 dB of headroomconst r = await master(combined, masterWav, { target, tp: tp - 1.0 });- if (r.mode === 'silent') warn('the soundtrack is silent');+ if (r.error) warn(`loudness not measured, the soundtrack is not leveled: ${r.error}`);+ else if (r.mode === 'silent') warn('the soundtrack is silent');else if (!r.reached) warn(`the soundtrack reached ${r.lufs === null ? '?' : r.lufs.toFixed(1)} LUFS instead of ${target}`);}const c = String(codec || 'aac').toLowerCase();diff --git a/skills/showtime/scripts/lib/export/fit.mjs b/skills/showtime/scripts/lib/export/fit.mjsindex ce65b14..ebc130b 100644--- a/skills/showtime/scripts/lib/export/fit.mjs+++ b/skills/showtime/scripts/lib/export/fit.mjs@@ -2,15 +2,23 @@// only: the project's files are never touched). Used by `showtime export html` when the page's video// clips push the file over --max-mb (16 MB for an HTML artifact).import fs from 'node:fs';+import os from 'node:os';import path from 'node:path';import { ffmpeg, probe } from '../ff.mjs';const MIN_VIDEO_KBPS = 150; // below this footage turns to mush: fail with the breakdown insteadconst AUDIO_KBPS = 64; // a clip's own sound (page clips are usually muted; kept when present)+// x264's 2-pass rate control misses its bitrate on a short clip split over many frame threads (a 6 s clip at+// 1656 kb/s: 1.30 MB with 8 threads, 1.56 MB with 32, 1.85 MB with 64), and every miss costs another encode+const ENC_THREADS = String(Math.max(1, Math.min(8, (os.availableParallelism ? os.availableParallelism() : os.cpus().length) || 1)));+// a clip already re-encoded in this export -> { before, src, log, dur, audio, kbps, want }: a later pass (the+// first one landed over) encodes the project's own clip again from pass 1's stats, never the re-encoded copy+const fitted = new WeakMap();/*** files: the export's file map (path -> {mime, bytes}). over: bytes (as packed, base64) to lose.* -> { items: [{path, before, after, kbps}], saved } ; items is empty when nothing could be shrunk.+ * Called again on the same map it re-encodes each clip from the project's original (before stays its size).*/export async function fitFootage(files, { over, workDir, say = () => {} }) {const vids = [...files].filter(([, f]) => /^video\//.test(f.mime) && f.bytes && f.bytes.length > 100 * 1000);@@ -25,28 +33,38 @@ export async function fitFootage(files, { over, workDir, say = () => {} }) {let k = 0;for (const [p, f] of vids) {const ext = (path.extname(p) || '.mp4').toLowerCase();- const src = path.join(workDir, `fit-src-${k}${ext}`);const dst = path.join(workDir, `fit-out-${k}${ext}`);- const log = path.join(workDir, `fit-pass-${k}`);+ let prev = fitted.get(f);+ if (!prev) {+ const src = path.join(workDir, `fit-src-${k}${ext}`);+ fs.writeFileSync(src, f.bytes);+ let info;+ try { info = await probe(src); } catch { k++; continue; }+ const dur = Number(info.duration || (info.video && info.video.duration)) || 0;+ if (!(dur > 0.2) || !info.video) { k++; continue; }+ prev = { before: f.bytes.length, src, log: path.join(workDir, `fit-pass-${k}`), dur, audio: !!info.audio, kbps: 0 };+ }k++;- fs.writeFileSync(src, f.bytes);- let info;- try { info = await probe(src); } catch { continue; }- const dur = Number(info.duration || (info.video && info.video.duration)) || 0;- if (!(dur > 0.2) || !info.video) continue;- const hasAudio = !!info.audio;+ const { src, log, dur, audio: hasAudio } = prev;const want = f.bytes.length * scale;- const kbps = Math.floor((want * 8) / dur / 1000 - (hasAudio ? AUDIO_KBPS : 0));+ // first time: the bitrate that fills `want`; again: the last bitrate scaled by how far its file must shrink,+ // and lower still by part of the last miss (an encoder that overshot overshoots more as the bitrate drops)+ const miss = prev.kbps ? Math.max(1, f.bytes.length / prev.want) : 1;+ const kbps = prev.kbps+ ? Math.floor((prev.kbps + (hasAudio ? AUDIO_KBPS : 0)) * (want / f.bytes.length) / Math.sqrt(miss) - (hasAudio ? AUDIO_KBPS : 0))+ : Math.floor((want * 8) / dur / 1000 - (hasAudio ? AUDIO_KBPS : 0));if (kbps < MIN_VIDEO_KBPS) { out.reason = `${p} would need ${Math.max(0, kbps)} kb/s (below ${MIN_VIDEO_KBPS})`; continue; }const vp9 = ext === '.webm';const venc = vp9? ['-c:v', 'libvpx-vp9', '-b:v', `${kbps}k`, '-row-mt', '1', '-deadline', 'good', '-cpu-used', '2']: ['-c:v', 'libx264', '-preset', 'slow', '-b:v', `${kbps}k`, '-pix_fmt', 'yuv420p'];+ venc.push('-threads', ENC_THREADS);const aenc = hasAudio ? (vp9 ? ['-c:a', 'libopus', '-b:a', `${AUDIO_KBPS}k`] : ['-c:a', 'aac', '-b:a', `${AUDIO_KBPS}k`]) : ['-an'];const mux = vp9 ? [] : ['-movflags', '+faststart'];const timeout = Math.max(120000, dur * 30000);try {- await ffmpeg(['-i', src, '-map', '0:v:0', ...venc, '-pass', '1', '-passlogfile', log, '-an', '-f', 'null', '-'], { timeout });+ // pass 1 reads the source, not the bitrate: its stats serve every later pass of the same clip+ if (!prev.kbps) await ffmpeg(['-i', src, '-map', '0:v:0', ...venc, '-pass', '1', '-passlogfile', log, '-an', '-f', 'null', '-'], { timeout });await ffmpeg(['-i', src, '-map', '0:v:0', ...(hasAudio ? ['-map', '0:a:0'] : []), ...venc, '-pass', '2', '-passlogfile', log, ...aenc, ...mux, dst], { timeout });} catch (e) {out.reason = `re-encoding ${p} failed: ${String(e.message).split('\n')[0]}`;@@ -54,10 +72,11 @@ export async function fitFootage(files, { over, workDir, say = () => {} }) {}const nb = fs.readFileSync(dst);if (nb.length >= f.bytes.length) continue;- out.items.push({ path: p, before: f.bytes.length, after: nb.length, kbps });+ fitted.set(f, { ...prev, kbps, want });+ out.items.push({ path: p, before: prev.before, after: nb.length, kbps });out.saved += f.bytes.length - nb.length;f.bytes = nb;- say(`${p}: ${(out.items.at(-1).before / 1e6).toFixed(1)} MB -> ${(nb.length / 1e6).toFixed(1)} MB at ${kbps} kb/s`);+ say(`${p}: ${(prev.before / 1e6).toFixed(1)} MB -> ${(nb.length / 1e6).toFixed(1)} MB at ${kbps} kb/s`);}return out;}diff --git a/skills/showtime/scripts/lib/ff.mjs b/skills/showtime/scripts/lib/ff.mjsindex 3fbfeda..d1f2154 100644--- a/skills/showtime/scripts/lib/ff.mjs+++ b/skills/showtime/scripts/lib/ff.mjs@@ -205,6 +205,13 @@ export function writeWavFloat(file, channels, sampleRate) {fs.writeFileSync(file, Buffer.concat([h, data]));}+/** Stills from a video (the same as ff.py STILL_FLAGS and JPEG_VF). The conversion out of 4:2:0 runs with exact+ * rounding and full chroma interpolation (ffmpeg's default drew a saturated gradient 1-2 levels darker), and a+ * JPEG gets BT.601 full range, what every viewer decodes: a BT.709 tv-range video frame kept its own matrix+ * under JPEG's BT.601 tag (saturated colours ~6 levels darker than the video). */+export const STILL_VF = 'scale=flags=accurate_rnd+full_chroma_int';+export const JPEG_VF = `${STILL_VF}:out_color_matrix=bt601:out_range=pc,format=yuvj420p`;+/** "30" or "30000/1001" for ffmpeg -r / -framerate. */export function fpsArg(fps) {if (Number.isInteger(fps)) return String(fps);@@ -215,11 +222,18 @@ export function fpsArg(fps) {return String(fps);}-/** EBU R128 integrated loudness, loudness range and true peak. -> {I, LRA, TP} (I = null when silent) */-export async function ebur128(file) {- const r = await ffmpeg(['-i', file, '-vn', '-af', 'ebur128=peak=true:framelog=quiet', '-f', 'null', '-'], { loglevel: 'info', allowFail: true });- const t = String(r.stderr || '');- const tail = t.slice(t.lastIndexOf('Summary:'));+// `framelog=quiet` keeps the per-frame lines out of the log, but builds before it existed (ffmpeg 4.x) reject the+// option; `metadata=1` moves those lines to the verbose level instead, which older builds accept. A rejected option+// still prints a Summary of zeros, which was read as 0 LUFS.+const EBUR128_FILTERS = ['ebur128=peak=true:framelog=quiet', 'ebur128=peak=true:metadata=1'];+let ebur128Pick = 0;++/** Parse ebur128's Summary block. -> {I, LRA, TP} or null when there is none. */+export function parseEbur128(stderr) {+ const t = String(stderr || '');+ const at = t.lastIndexOf('Summary:');+ if (at < 0) return null;+ const tail = t.slice(at);const num = (re) => { const m = re.exec(tail); return m ? Number(m[1]) : null; };let I = num(/\bI:\s*(-?[\d.]+|-inf)\s*LUFS/);if (I === null || !isFinite(I) || I < -70) I = null;@@ -227,6 +241,26 @@ export async function ebur128(file) {return { I, LRA: num(/LRA:\s*(-?[\d.]+)\s*LU\b/), TP: TP === null || !isFinite(TP) ? -120 : TP };}+/**+ * EBU R128 integrated loudness, loudness range and true peak. -> {I, LRA, TP} (I = null when silent).+ * A reading that failed is never a number: -> {I: null, LRA: null, TP: null, error} (the callers warn).+ */+export async function ebur128(file) {+ let last = null;+ for (let k = ebur128Pick; k < EBUR128_FILTERS.length; k++) {+ const r = await ffmpeg(['-i', file, '-vn', '-af', EBUR128_FILTERS[k], '-f', 'null', '-'], { loglevel: 'info', allowFail: true });+ // a filter that failed to start still prints a Summary, of zeros ("I: 0.0 LUFS"): only a run that ended well counts+ const m = r.code === 0 ? parseEbur128(r.stderr) : null;+ if (m) { ebur128Pick = k; return m; }+ last = r;+ // only an option this build does not know moves on to the next form; a bad input fails the same way in both+ if (!/framelog|Unable to parse option value|Error (initializing|applying option)|Option not found/i.test(String(r.stderr || ''))) break;+ }+ const lines = String((last && last.stderr) || '').split('\n').map((l) => l.trim()).filter(Boolean);+ const why = (lines.filter((l) => /error|invalid|unable|not found|failed/i.test(l)).pop() || lines.pop() || `exit ${last ? last.code : '?'}`).slice(0, 200);+ return { I: null, LRA: null, TP: null, error: `the loudness meter (ffmpeg ebur128) failed on ${path.basename(String(file))}: ${why}` };+}+let encCache = null;/** Is an encoder compiled into the resolved ffmpeg? (e.g. 'libvpx-vp9', 'prores_ks') */export function hasEncoder(name) {diff --git a/skills/showtime/scripts/lib/frames.mjs b/skills/showtime/scripts/lib/frames.mjsindex aec19ba..223ba94 100644--- a/skills/showtime/scripts/lib/frames.mjs+++ b/skills/showtime/scripts/lib/frames.mjs@@ -5,7 +5,7 @@ import path from 'node:path';import { startServer } from '../server.mjs';import { resolveProject, info, c, UserError } from './cli.mjs';import { openStage } from './stagehost.mjs';-import { resolveFF, ffmpeg, probe } from './ff.mjs';+import { resolveFF, ffmpeg, probe, STILL_VF } from './ff.mjs';import { stripColorChunks } from './png.mjs';export const VIDEO_EXT = /\.(mp4|mov|m4v|webm|mkv)$/i;@@ -29,7 +29,7 @@ export async function openSource(arg, a, shared) {// accurate seek to half a frame before the wanted frame: the first frame decoded is that frame// the container can run longer than the video stream (audio tail): step back until a frame decodesfor (let back = 0; back <= 1.0 + 1e-9 && !fs.existsSync(tmp); back += back < 0.2 ? 1 / fps : 0.25) {- await ffmpeg(['-ss', Math.max(0, t - 0.5 / fps - back).toFixed(6), '-i', file, '-frames:v', '1', '-update', '1', tmp]);+ await ffmpeg(['-ss', Math.max(0, t - 0.5 / fps - back).toFixed(6), '-i', file, '-frames:v', '1', '-vf', STILL_VF, '-update', '1', tmp]);if (t - back <= 0) break;}if (!fs.existsSync(tmp)) throw new UserError(`could not decode a frame of ${path.basename(file)} at ${t.toFixed(3)} s`);diff --git a/skills/showtime/scripts/lib/pipeline.mjs b/skills/showtime/scripts/lib/pipeline.mjsindex c618749..2affbad 100644--- a/skills/showtime/scripts/lib/pipeline.mjs+++ b/skills/showtime/scripts/lib/pipeline.mjs@@ -16,7 +16,7 @@ import os from 'node:os';import { ffmpegPipe } from './ff.mjs';/**- * The automatic worker count, and why. Measured (0.4.1 speed lab, build box and review):+ * The automatic worker count, and why. Measured (0.4.1 speed lab, a 64-core test machine and review):* - with a GPU, 3 browsers were best on a 6-core machine (4 and 6 were slower);* - without one (SwiftShader and the like) every browser already spreads its drawing over many cores. On* a 6-core machine a WebGL showreel was about 10 % faster with 1 browser than with 3, but a DOM page wasdiff --git a/skills/showtime/scripts/preview.mjs b/skills/showtime/scripts/preview.mjsindex bed5ff8..8a609d2 100644--- a/skills/showtime/scripts/preview.mjs+++ b/skills/showtime/scripts/preview.mjs@@ -77,6 +77,9 @@ async function running(root) {return null;}+// the Chrome features the preview window turns off (Playwright turns the same ones off for render and check)+const PREVIEW_DISABLED_FEATURES = 'Translate,MediaRouter,DialMediaRouteProvider,GlobalMediaControls';+function openBrowserWindow(url, which) {if (which !== 'default') {const b = findSystemBrowsers()[0];@@ -84,8 +87,10 @@ function openBrowserWindow(url, which) {const profile = path.join(showtimeHome(), 'cache', 'preview-profile');fs.mkdirSync(profile, { recursive: true });try {+ // no Cast/DIAL device discovery (MediaRouter): its mDNS and SSDP traffic can make macOS ask to "allow Python+ // to find devices on local networks" (the window is a child of this command); the preview only uses 127.0.0.1const ch = spawn(b.path, [`--app=${url}`, `--user-data-dir=${profile}`, '--no-first-run', '--no-default-browser-check',- '--autoplay-policy=no-user-gesture-required', '--window-size=1440,960', '--disable-features=Translate'],+ '--autoplay-policy=no-user-gesture-required', '--window-size=1440,960', `--disable-features=${PREVIEW_DISABLED_FEATURES}`],{ detached: true, stdio: 'ignore', windowsHide: false });ch.on('error', () => openDefault(url));ch.unref();diff --git a/skills/showtime/scripts/render.mjs b/skills/showtime/scripts/render.mjsindex 2106a78..d5b454d 100644--- a/skills/showtime/scripts/render.mjs+++ b/skills/showtime/scripts/render.mjs@@ -11,7 +11,7 @@ import {} from './lib/cli.mjs';import { checkFreshness } from './lib/lean.mjs';import { openBrowser, openStage, writeDiagnostics, pullScore, parseSize, glRenderer, withTimeout, withPacedTimeout, newPace, paceSummary } from './lib/stagehost.mjs';-import { resolveFF, ffmpeg, probe, ebur128, writeWavFloat, fpsArg, hasEncoder, setLogFile, logLine, meanFrameDiff } from './lib/ff.mjs';+import { resolveFF, ffmpeg, probe, ebur128, writeWavFloat, fpsArg, hasEncoder, setLogFile, logLine, meanFrameDiff, JPEG_VF } from './lib/ff.mjs';import { CaptureQueue, OrderedFeed, autoWorkers, machineLimits } from './lib/pipeline.mjs';import { renderFlags } from './lib/chrome.mjs';import { audioCacheOn, audioKey, restoreAudio, saveAudio } from './lib/audiocache.mjs';@@ -42,7 +42,8 @@ const SPEC = {'--from/--to with --job, when the job has a full render of this project at the same size, fps and length:','only those seconds (widened to the keyframes around them) are rendered and spliced into a copy of that','render, giving the next full final-N.mp4 (audio mixed again for the whole video). Otherwise the result is',- 'a span clip, <job>/work/span-A-B.mp4 (without a job: span-A-B.mp4 in a new folder), never a final.',+ 'a span clip, <job>/work/span-A-B.mp4 (without a job: span-A-B.mp4 in a new folder; -o clip.mp4: that file),',+ 'never a final.','Encode defaults can live in showtime.json "render": {"crf": 22, "x264_preset": "slow", "format": "png",','"quality": 92, "poster": "none"}; flags override them, so every re-render keeps the same settings.',].join('\n'),@@ -184,8 +185,11 @@ async function main() {const wholeTarget = a.output ? (path.extname(a.output) ? path.resolve(a.output) : path.resolve(a.output) + ext) : null;const spanName = partialRange ? `span-${spanNum(a.from !== undefined ? parseTime(a.from) : 0)}-${a.to !== undefined ? spanNum(parseTime(a.to)) : 'end'}` : null;const spanJob = partialRange && wholeTarget ? (jobFolder || enclosingJob(wholeTarget)) : null;+ // -o with a name of its own (not final*/preview*/draft*): the span clip goes exactly there, inside a job too+ // (it used to become <job>/work/span-A-B.mp4), and it is never spliced into the job's final+ const ownName = !!(partialRange && wholeTarget && !jobFolder && !/^(final|preview|draft)/i.test(path.basename(wholeTarget)));let target = wholeTarget;- if (partialRange && wholeTarget) {+ if (partialRange && wholeTarget && !ownName) {if (spanJob) target = path.join(spanJob, 'work', spanName + ext);else if (/^(final|preview|draft)/i.test(path.basename(wholeTarget))) target = path.join(path.dirname(wholeTarget), spanName + ext);}@@ -371,9 +375,10 @@ async function main() {// the range covers the whole video: an ordinary renderreplace(wholeTarget);} else if (partial) {- const into = spanJob || (wholeTarget && target !== wholeTarget ? wholeTarget : null);+ const into = ownName ? null : spanJob || (wholeTarget && target !== wholeTarget ? wholeTarget : null);if (a.preview) spanWhy = 'a --preview span is a draft of those seconds';else if (alpha || sizeFlag) spanWhy = `a span with --${alpha ? 'alpha' : 'size'} is not spliced into the final`;+ else if (ownName && spanJob) spanWhy = `-o names a clip of its own (render with --job ${path.basename(spanJob)} to splice the fix into the job's final)`;else if (!into) spanWhy = 'it is not rendered into a job (--job <job>), so there is no full render to splice it into';else {const found = await findSpliceBase({ job: spanJob, beside: spanJob ? null : wholeTarget, proj, W, H, fps, total });@@ -544,7 +549,7 @@ async function main() {let posterStaged = false;const writePoster = async (src, dst = posterFile) => {if (frameExt === 'jpg') fs.copyFileSync(src, dst);- else await ffmpeg(['-i', src, '-q:v', '2', dst], { timeout: 120000 }); // one still: a hung ffmpeg never holds the render+ else await ffmpeg(['-i', src, '-vf', JPEG_VF, '-q:v', '2', dst], { timeout: 120000 }); // one still: a hung ffmpeg never holds the render};const wantPoster = !a.preview && !alpha && !posterOff && posterT !== null && !isSpan;// a splice is a whole video: its poster can be any frame (the poster frame was captured) and its@@ -915,7 +920,7 @@ async function main() {if (!report.poster && splice) {// most frames of a splice were not captured: take the frame from the videoconst tt = Math.floor(total * 0.4) / fps;- await ffmpeg(['-ss', tt.toFixed(3), '-i', outFile, '-frames:v', '1', '-q:v', '2', posterFile], { timeout: 120000 });+ await ffmpeg(['-ss', tt.toFixed(6), '-i', outFile, '-frames:v', '1', '-vf', JPEG_VF, '-q:v', '2', posterFile], { timeout: 120000 });report.poster = { file: posterFile, time: tt, baked: false, method: '40%' };} else if (!report.poster) {const idx = first + Math.round(nFrames * 0.4);@@ -1348,11 +1353,13 @@ async function buildAudio({ proj, cfg, info, browser, openOpts, audioDir, from,if (noLoudnorm) {fs.copyFileSync(combined, masterWav);const m = await ebur128(masterWav);- mres = { mode: 'as mixed', lufs: m.I, true_peak: m.TP, reached: null };+ mres = { mode: 'as mixed', lufs: m.I, true_peak: m.TP, reached: null, error: m.error };+ if (m.error) addWarn(`loudness not measured (render.json says null): ${m.error}`);} else {// master 0.5 dB under the ceiling: AAC adds 0.2-0.4 dB of true-peak overshootmres = await master(combined, masterWav, { target, tp: tp - AAC_HEADROOM_DB });- if (mres.mode === 'silent') addWarn('the soundtrack is silent');+ if (mres.error) addWarn(`loudness not measured, the soundtrack is not leveled to ${target} LUFS: ${mres.error} (an ffmpeg older than 6.0? \`showtime doctor\` checks; \`showtime setup --ffmpeg static\` installs showtime's own)`);+ else if (mres.mode === 'silent') addWarn('the soundtrack is silent');else if (!mres.reached) {addWarn(`the soundtrack reached ${mres.lufs === null ? '?' : mres.lufs.toFixed(1)} LUFS instead of ${target}: its peaks are very sharp, and more loudness would need heavy limiting`);}@@ -1415,6 +1422,7 @@ async function buildAudio({ proj, cfg, info, browser, openOpts, audioDir, from,for (const c of cands) fs.rmSync(c.f, { force: true });fs.rmSync(path.join(audioDir, 'master2.wav'), { force: true });const mOut = pick.m;+ if (mOut.error && !mres.error) addWarn(`loudness of the encoded soundtrack not measured (render.json says null): ${mOut.error}`);if (leveled && !ok(pick)) addWarn(`the AAC audio peaks at ${mOut.TP} dBTP, above the ${tp} dBTP ceiling`);const result = {file: m4a, wav: masterWav, credits, mixReport, creditItems,diff --git a/skills/showtime/setup/manifest.json b/skills/showtime/setup/manifest.jsonindex e5bbec4..cbb4bd5 100644--- a/skills/showtime/setup/manifest.json+++ b/skills/showtime/setup/manifest.json@@ -1181,45 +1181,77 @@}],"packages": {- "about": "Download sizes of the Python wheels uv installs (requirements.txt + tinysoundfont) and the Node tarballs (package-lock.json), computed 2026-09-28 from PyPI / the npm registry for each platform; python_download is the uv-managed Python 3.12, fetched only when no Python 3.12 is installed. disk: measured on a fresh Linux x64 install.",+ "about": "Download sizes of the Python wheels uv installs (requirements.txt + tinysoundfont) and the Node tarballs (package-lock.json), computed 2026-09-28 from PyPI / the npm registry for each platform; python_download is the uv-managed Python 3.12, fetched only when no Python 3.12 is installed. disk: the installed size (python: the venv, from each pinned wheel's unpacked size plus 3% for file-system blocks, 2026-10-07, and mac-x64 measured on a fresh venv; node: node_modules measured after npm ci).","python": {"mac-arm64": {"download": 218146675,- "python_download": 25017789+ "python_download": 25017789,+ "disk": 699000000},"mac-x64": {"download": 234876778,- "python_download": 24719239+ "python_download": 24719239,+ "disk": 716900000},"win-x64": {"download": 243007812,- "python_download": 22052624+ "python_download": 22052624,+ "disk": 649000000},"linux-x64": {"download": 317041149,- "python_download": 34270188+ "python_download": 34270188,+ "disk": 903000000},"linux-arm64": {"download": 284034725,- "python_download": 29199580+ "python_download": 29199580,+ "disk": 831000000}},"node": {"mac-arm64": {- "download": 41451373+ "download": 41451373,+ "disk": 341000000},"mac-x64": {- "download": 41451373+ "download": 41451373,+ "disk": 341000000},"win-x64": {- "download": 41451373+ "download": 41451373,+ "disk": 341000000},"linux-x64": {- "download": 41451373+ "download": 41451373,+ "disk": 341000000},"linux-arm64": {- "download": 41451373+ "download": 41451373,+ "disk": 341000000}}+ },+ "disk": {+ "about": "Installed sizes for `setup --estimate` (bytes): ffmpeg + ffprobe per build (unpacked size of the picked files, read from each archive's zip directory, 2026-10-07; the two tar.xz builds are estimated from the same builder's static Windows build), the headless browser per platform (unpacked archive), and the Python 3.12 runtime uv fetches when none is installed. Models take their download size.",+ "ffmpeg": {+ "evermeet-9.0.2": 161500000,+ "martin-riedl-9.0.2-amd64": 189400000,+ "martin-riedl-9.0.2-arm64": 132500000,+ "btbn-n9.0.2-win64-gpl-shared": 190900000,+ "gyan-9.0.2-essentials": 210600000,+ "btbn-n9.0.2-win64-gpl": 330100000,+ "btbn-n9.0.2-winarm64-gpl": 188800000,+ "martin-riedl-9.0.2-linux-amd64": 182500000,+ "btbn-n9.0.2-linux64-gpl": 330000000,+ "btbn-n9.0.2-linuxarm64-gpl": 300000000+ },+ "browser": {+ "mac-arm64": 204700000,+ "mac-x64": 208200000,+ "win-x64": 283200000,+ "linux-x64": 272500000+ },+ "python_runtime": 60000000}}diff --git a/skills/showtime/setup/package.json b/skills/showtime/setup/package.jsonindex 3337d00..66bc54f 100644--- a/skills/showtime/setup/package.json+++ b/skills/showtime/setup/package.json@@ -1,6 +1,6 @@{"name": "showtime-runtime",- "version": "0.4.0",+ "version": "0.4.1","private": true,"description": "Node dependencies for showtime (installed by setup.py into ~/.showtime/node). Versions are pinned exactly. Icon sets are not installed here: they are fetched per icon on first use (manifest.json \"icon_packs\").","license": "MIT",diff --git a/skills/showtime/setup/setup.py b/skills/showtime/setup/setup.pyindex c00b2fa..9682d12 100755--- a/skills/showtime/setup/setup.py+++ b/skills/showtime/setup/setup.py@@ -156,6 +156,38 @@ def rmtree(path: Path) -> None:shutil.rmtree(str(path), onerror=onerror)+def rmtree_aside(path: Path, trash: Path) -> List[str]:+ """Remove a folder even when files in it are in use. On Windows a running python.exe or a loaded DLL+ cannot be deleted (WinError 5) but can be renamed: such files move into `trash` (on the same drive)+ and a later run deletes them. Returns the files moved aside; raises OSError when one cannot move."""+ moved: List[str] = []++ def onerror(func, p, exc_info): # noqa: ANN001+ try:+ os.chmod(p, stat.S_IWRITE)+ func(p)+ return+ except OSError:+ pass+ if os.path.isdir(p) and not os.path.islink(p):+ raise exc_info[1]+ trash.mkdir(parents=True, exist_ok=True)+ os.replace(p, str(trash / ("%d-%d-%s" % (os.getpid(), len(moved), os.path.basename(p)))))+ moved.append(p)+ shutil.rmtree(str(path), onerror=onerror)+ return moved+++def empty_trash(trash: Path) -> None:+ """Delete what rmtree_aside moved aside earlier (files still in use stay for the next run)."""+ if trash.is_dir():+ for p in trash.iterdir():+ try:+ rmtree(p) if p.is_dir() and not p.is_symlink() else p.unlink()+ except OSError:+ pass++# ==========================================================================# Manifest / selection# ==========================================================================@@ -737,52 +769,132 @@ def install_estimate(tier: str = "core", extras: Sequence[str] = (), home: OptioReturns download_bytes (models, binaries), packages_bytes (Python + Nodepackages, when not installed yet), total_bytes and minutes_low/high- (50 MB/s .. 8 MB/s plus a fixed install overhead). Used by the launcher's- first-run message and setup's own preflight line.+ (50 MB/s .. 8 MB/s plus a fixed install overhead), and what it takes on disk once+ installed: disk_bytes and disk (by component: python, node, ffmpeg, browser, models;+ from the measured sizes in the manifest's "disk" table and packages.*.disk). Used by+ the launcher's first-run message and setup's own preflight line."""man = man or load_manifest()key = plat.platform_key()home = home or Path(os.path.expanduser(os.environ.get("SHOWTIME_HOME") or "~/.showtime"))+ sizes = man.get("disk") or {}+ disk: Dict[str, int] = {}items = select_items(man, tier, list(extras))todo = [it for it in items if item_status(it, home, key)[0] != "ok"]dl = sum(item_size(it, key) for it in todo)+ disk["models"] = dlff_have = (home / "bin" / plat.exe("ffmpeg")).is_file()if not ff_have:cands = plat.pick_for_platform(man.get("ffmpeg", {}), key) or []if cands:- dl += sum(int(f.get("size") or 0) for f in cands[0].get("files", []))+ ff_dl = sum(int(f.get("size") or 0) for f in cands[0].get("files", []))+ dl += ff_dl+ disk["ffmpeg"] = int((sizes.get("ffmpeg") or {}).get(cands[0].get("id"), 0) or ff_dl)browser = browser_item(man)if browser is not None and not system_browsers() and item_status(browser, home, key)[0] != "ok":dl += item_size(browser, key)+ disk["browser"] = int(plat.pick_for_platform(sizes.get("browser") or {}, key) or item_size(browser, key))if tier == "full": # --full also takes the first-use parts that are not manifest itemsids = {it["id"] for it in man["items"]}- dl += sum(r["size"] for r in plan_rows(man, key, home) if r["tier"] == "first-use"- and r["component"] not in ids and not r["component"].startswith("Chrome Headless Shell"))+ later = sum(r["size"] for r in plan_rows(man, key, home) if r["tier"] == "first-use"+ and r["component"] not in ids and not r["component"].startswith("Chrome Headless Shell"))+ dl += later+ disk["models"] += laterpk = 0if not plat.venv_python(home / "venv").exists():pk += packages_bytes(man, "python", key)+ disk["python"] = packages_bytes(man, "python", key, "disk") or 3 * packages_bytes(man, "python", key)if not (home / "node" / "node_modules" / "playwright").is_dir():pk += packages_bytes(man, "node", key)+ disk["node"] = packages_bytes(man, "node", key, "disk") or 8 * packages_bytes(man, "node", key)total = dl + pkmb = total / 1024.0 ** 2low = mb / 50.0 / 60.0 + (2 if pk else 0.2)high = mb / 8.0 / 60.0 + (5 if pk else 0.5)+ disk = {k: v for k, v in disk.items() if v}return {"tier": tier, "extras": list(extras), "download_bytes": dl, "packages_bytes": pk, "total_bytes": total,"items": [it["id"] for it in todo], "minutes_low": max(1, int(round(low))),- "minutes_high": max(2, int(round(high)))}+ "minutes_high": max(2, int(round(high))), "disk_bytes": sum(disk.values()), "disk": disk}+++# what grows after setup (setup --estimate says so): the parts features fetch the first time they are used+GROWS_LATER = ("Later: features fetch their parts the first time they are used (the first transcription adds "+ "about 490 MB, its speech model), `showtime setup --full` takes them all now (about 5 GB), and "+ "renders and the test suite keep caches in %s (about 0.7 GB after a test run). uv keeps its own "+ "copy of the Python packages in its cache (`uv cache clean` frees it), and fetches Python 3.12 "+ "(about 60 MB) when none is installed.")+++def describe_disk(est: Dict[str, Any]) -> str:+ """'about 1.4 GB on disk once installed (Python packages 699 MB, Node packages 341 MB, ...)'."""+ if not est.get("disk_bytes"):+ return ""+ names = {"python": "Python packages", "node": "Node packages", "ffmpeg": "ffmpeg", "browser": "browser",+ "models": "models"}+ parts = ["%s %s" % (names.get(k, k), human(v)) for k, v in sorted(est["disk"].items(), key=lambda kv: -kv[1])]+ return "about %s on disk once installed (%s)" % (human(est["disk_bytes"]), ", ".join(parts))+++def find_uv() -> Optional[str]:+ env = os.environ.get("SHOWTIME_UV")+ if env and Path(env).is_file():+ return env+ return plat.find_tool("uv")+++def find_node() -> Tuple[Optional[str], Optional[Tuple[int, ...]]]:+ node = os.environ.get("SHOWTIME_NODE") or plat.find_tool("node")+ if not node:+ return None, None+ try:+ out = subprocess.run([node, "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE,+ encoding="utf-8", timeout=30).stdout.strip()+ ver = tuple(int(x) for x in re.findall(r"\d+", out)[:3])+ return node, ver+ except (OSError, ValueError, subprocess.SubprocessError):+ return node, None+++def missing_prereqs(skip: Iterable[str] = ()) -> List[Dict[str, str]]:+ """The tools setup cannot download itself, checked before anything is fetched: uv (builds the+ Python environment) and Node.js 20+ (renders). -> [{tool, problem, fix}], empty when both are here."""+ skip = set(skip)+ out: List[Dict[str, str]] = []+ if "python" not in skip and not find_uv():+ out.append({"tool": "uv", "problem": "uv was not found (setup uses it to build the Python environment)",+ "fix": uv_hint()})+ if "node" not in skip:+ node, ver = find_node()+ if not node:+ out.append({"tool": "node", "problem": "Node.js was not found (it renders the videos)", "fix": " " + node_hint()})+ elif ver and ver[0] < MIN_NODE:+ out.append({"tool": "node", "problem": "Node.js %s is too old (showtime needs %d or newer)"+ % (".".join(map(str, ver)), MIN_NODE), "fix": " " + node_hint()})+ return out+++def describe_prereqs(missing: Sequence[Dict[str, str]]) -> str:+ lines = []+ for m in missing:+ lines.append(" %s. Install it:\n%s" % (m["problem"], m["fix"]))+ lines.append("Nothing was downloaded. Install %s, then run `showtime setup` again."+ % " and ".join("Node.js" if m["tool"] == "node" else m["tool"] for m in missing))+ return "\n".join(lines)def describe_estimate(est: Dict[str, Any]) -> str:- """'about 2.3 GB (1.1 GB downloads + 1.2 GB packages), usually 4-12 min'."""+ """'about 522 MB to download (258 MB models and tools + 264 MB Python/Node packages), about 1.3 GB on disk,+ usually 2-6 min'."""if est["total_bytes"] <= 0:return "nothing to download (already installed)"parts = []if est["download_bytes"]:- parts.append("%s downloads" % human(est["download_bytes"]))+ parts.append("%s models and tools" % human(est["download_bytes"]))if est["packages_bytes"]:parts.append("%s Python/Node packages" % human(est["packages_bytes"]))- return "about %s (%s), usually %d-%d min" % (human(est["total_bytes"]), " + ".join(parts),- est["minutes_low"], est["minutes_high"])+ disk = (", about %s on disk" % human(est["disk_bytes"])) if est.get("disk_bytes") else ""+ return "about %s to download (%s)%s, usually %d-%d min" % (human(est["total_bytes"]), " + ".join(parts), disk,+ est["minutes_low"], est["minutes_high"])# ==========================================================================@@ -830,22 +942,10 @@ class Installer:self.report.add(component, status, detail, time.time() - t0, **extra)def find_uv(self) -> Optional[str]:- env = os.environ.get("SHOWTIME_UV")- if env and Path(env).is_file():- return env- return plat.find_tool("uv")+ return find_uv()def find_node(self) -> Tuple[Optional[str], Optional[Tuple[int, ...]]]:- node = os.environ.get("SHOWTIME_NODE") or plat.find_tool("node")- if not node:- return None, None- try:- out = subprocess.run([node, "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE,- encoding="utf-8", timeout=30).stdout.strip()- ver = tuple(int(x) for x in re.findall(r"\d+", out)[:3])- return node, ver- except (OSError, ValueError, subprocess.SubprocessError):- return node, None+ return find_node()def npm_cmd(self, node: str) -> List[str]:nd = Path(node).resolve().parent@@ -892,6 +992,13 @@ class Installer:self.report.add("os", "warn", "%s: glibc 2.28+ is needed (Ubuntu 20.04+ / Debian 10+)" % libc)except (ValueError, OSError, AttributeError):pass+ elif o == "windows" and not VENV_PLATFORM.get(self.key):+ # this Python has the venv's architecture: its probe tells whether onnxruntime will load+ vc = plat.missing_vc_runtime()+ if vc:+ self.report.add("vc++ runtime", "warn", "Microsoft Visual C++ 2015-2022 x64 runtime not found; voices "+ "and transcription will not load until it is installed: " + plat.vc_runtime_fix(vc))+ say(" " + plat.vc_runtime_fix(vc))if plat.pick_for_platform(self.man["ffmpeg"], self.key) is None:self.report.add("os", "warn", "platform %s has no prebuilt downloads; using system tools" % self.key)self.home.mkdir(parents=True, exist_ok=True)@@ -910,12 +1017,16 @@ class Installer:# --------------------------------------------------------------- ffmpegdef _ff_check(self, ffmpeg: str, timeout: float = 30) -> Tuple[bool, List[str], List[str], str]:from st.ff import (REQUIRED_ENCODERS, REQUIRED_FILTERS, RECOMMENDED_FILTERS,- RECOMMENDED_ENCODERS, _list_names, _run_version)+ RECOMMENDED_ENCODERS, _list_names, _run_version, probe_features, too_old)v, why = _run_version(ffmpeg, timeout)if not v:return False, ["(does not run: %s)" % why], [], ""filters, encoders = set(_list_names(ffmpeg, "filters")), set(_list_names(ffmpeg, "encoders"))miss_req = [f for f in REQUIRED_FILTERS if f not in filters] + [e for e in REQUIRED_ENCODERS if e not in encoders]+ # an old build (Ubuntu 22.04's 4.4.2) has the filters but not the options showtime uses+ old = too_old(v, probe_features(ffmpeg))+ if old:+ miss_req.insert(0, "too old: " + ", ".join(old))miss_rec = [f for f in RECOMMENDED_FILTERS if f not in filters] + [e for e in RECOMMENDED_ENCODERS if e not in encoders]return not miss_req, miss_req, miss_rec, v@@ -948,7 +1059,8 @@ class Installer:say(" system ffmpeg %s not used (%s)" % (cand, "does not run" if not v else"missing: " + ", ".join((req + rec)[:6])))if mode == "system":- return "fail", "no capable system ffmpeg found (use --ffmpeg static)"+ return "fail", "no capable system ffmpeg found (an older build lacks what showtime uses): " \+ "use showtime's own build: `showtime setup --ffmpeg static`"cands = ffmpeg_candidates(self.man, self.key)if not cands:return "warn", "no static ffmpeg for %s; install ffmpeg with libass/libx264 yourself" % self.key@@ -1022,10 +1134,20 @@ class Installer:have = cp.stdout.strip()if have != want_plat:why = "%s Python, %s needed" % (have or "unknown", want_plat)+ trash = self.home / "cache" / "trash"+ empty_trash(trash)if why:if venv.exists():say(" recreating venv (%s)" % why)- rmtree(venv)+ try:+ aside = rmtree_aside(venv, trash)+ except OSError as e:+ return "fail", ("cannot remove the old venv %s (%s): a running showtime process uses it, often "+ "your coding agent's showtime MCP server or a preview. Close it (or quit the "+ "agent), then run `showtime setup --force` again." % (venv, e))+ if aside:+ say(" %d file(s) of the old venv are still in use (%s): moved to %s, the next setup deletes them"+ % (len(aside), Path(aside[0]).name, trash))if want_plat:say(" %s: using x64 Python %s, run by Windows' emulation (some packages have no arm64 wheels)"% (self.key, PY_VERSION))@@ -1070,6 +1192,9 @@ class Installer:versions = self.pkg_versions(uv)self.state.data["python"] = {"venv": str(venv), "python": self.venv_version(), "packages": versions}if bad:+ vc = plat.missing_vc_runtime(self.vpy) if plat.IS_WINDOWS else []+ if vc or (plat.IS_WINDOWS and any("DLL load failed" in v for v in bad.values())):+ return "fail", "%s; imports failing: %s" % (plat.vc_runtime_fix(vc), "; ".join("%s (%s)" % kv for kv in bad.items()))return "fail", "imports failing: " + "; ".join("%s (%s)" % kv for kv in bad.items())return "ok", detail + "; python %s" % self.venv_version()@@ -1396,6 +1521,13 @@ class Installer:self.state.save()return self.finish()self.preflight()+ # uv and Node.js are installed by the user: say so before the first download, not after 200 MB+ missing = missing_prereqs(self.skip)+ if missing:+ for m in missing:+ self.report.add(m["tool"], "fail", "%s; install it:\n%s" % (m["problem"], m["fix"]))+ say(describe_prereqs(missing))+ return self.finish()ffmpeg_ok = Trueif "ffmpeg" not in self.skip:self.timed("ffmpeg", self.step_ffmpeg)@@ -1917,11 +2049,20 @@ def main(argv: Optional[Sequence[str]] = None) -> int:except SystemExit as e:say(str(e))return 2+ missing = missing_prereqs(args.skip or [])+ est["missing"] = [m["tool"] for m in missing]if args.json:print(json.dumps(est, indent=2))else:print("showtime setup --tier %s%s: %s" % (tier, (" --with " + ",".join(args.with_)) if args.with_ else "",describe_estimate(est)))+ if est.get("disk_bytes"):+ print(" " + describe_disk(est))+ print(" " + GROWS_LATER % home)+ if missing:+ print("Install first (setup stops before downloading anything without it):")+ for m in missing:+ print(" %s. Install it:\n%s" % (m["problem"], m["fix"]))return 0if args.home:os.environ["SHOWTIME_HOME"] = str(home)diff --git a/skills/showtime/templates/dom/README.md b/skills/showtime/templates/dom/README.mdindex f291d4b..4707096 100644--- a/skills/showtime/templates/dom/README.md+++ b/skills/showtime/templates/dom/README.md@@ -11,7 +11,7 @@ Files:scene or beat by hand, move its effect's `at` with it; swap the bed for a library track or add a voice(`references/audio.md`).- `index.html`: the video. Four scenes (`<section class="scene" data-start data-dur>`):- 1. **hero**: the hook (3-line claim, one supporting line) with the product window teased at the side;+ 1. **hero**: the hook (a claim of about 4 words, one supporting line) with the product window teased at the side;the camera then pulls the window to the centre (a CSS keyframe move), pushes in on the prompt whileit types (`browser-frame` `data-zoom`), the cursor clicks Generate and the cut builds (timeline clips,preview wipe, toast). A steps rail on the side says where we are in the flow.@@ -44,7 +44,8 @@ Timing rules used here: first motion within 0.2 s of each scene start, the hookone camera move per beat, holds of ~1 s before each cut, one accent colour, one shader transition.Aspects: 16:9 as shipped; `showtime new dom <dir> --aspect 9:16` or `--aspect 1:1` pass `showtime check`-with no warnings.+with no warnings. Length: 15 s as shipped; `--duration 10` still passes the phone check's reading times, because+the hook and the feature lines are short (about 4 words). Longer copy needs a longer video.Commands:- `showtime preview .` player with scrubber and audiodiff --git a/skills/showtime/templates/dom/index.html b/skills/showtime/templates/dom/index.htmlindex eac137a..9501424 100644--- a/skills/showtime/templates/dom/index.html+++ b/skills/showtime/templates/dom/index.html@@ -279,22 +279,23 @@<div class="stage"><!-- 1. HERO: the claim on frame 1, then the product doing its verb -->- <section class="scene hero" id="hero" data-start="0" data-dur="6.8" data-design-dur="6.8">+ <section class="scene hero" id="hero" data-start="0" data-dur="6.8" data-design-dur="6.8" data-stretch="spread"><div class="bg"></div><!-- SLOT: product mark + name (swap the SVG for the real logo file: <img class="mark" src="logo.svg">) --><div class="brand"><svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><rect class="m-bg" width="32" height="32" rx="9"/><path class="m-fg" d="M9 23V9h3.2l7.6 9V9H23v14h-3.2L12.2 14v9z"/></svg>Northwind</div>- <!-- SLOT: the hook (the claim in the viewer's words, 3 short lines) and one supporting line -->+ <!-- SLOT: the hook (the claim in the viewer's words, about 4 words) and one supporting line (about 3 words):+ at 10 s they are on screen about 2 s and 1.7 s, the time a phone viewer needs to read that much --><div class="hook">- <h1 class="t-hero headline" data-st="kinetic-type" data-style="mask" data-at="0.1" data-exit="mask" data-exit-at="2.2">Your launch<br>video, in one<br><em>sentence.</em></h1>- <p class="sub" data-st="kinetic-type" data-style="rise" data-at="0.5" data-exit="fade" data-exit-at="1.8">Scored, voiced and captioned.</p>+ <h1 class="t-hero headline" data-st="kinetic-type" data-style="mask" data-at="0.1" data-exit="mask" data-exit-at="2.2">Prompt in,<br><em>video out.</em></h1>+ <p class="sub" data-st="kinetic-type" data-style="rise" data-at="0.5" data-exit="fade" data-exit-at="2.1">Voiced and captioned.</p></div><div class="win"><div class="cam-a"><!-- data-zoom: push in on the prompt while it types, back out as the cut builds -->- <div class="frame" data-st="browser-frame" data-url="northwind.app" data-enter="none" data-drift="none"+ <div class="frame" data-st="browser-frame" data-url="northwind.example" data-enter="none" data-drift="none"data-zoom='[{"at":3.25,"scale":1.32,"x":2,"y":30,"dur":0.75},{"at":5.0,"scale":1,"x":50,"y":50,"dur":0.75}]'><div class="app" data-st-decor><div class="bar">@@ -342,24 +343,24 @@<section class="scene features" id="features" data-start="#hero" data-dur="3.0" data-design-dur="3.0" data-transition="push left 0.6"><div class="bg"></div><!-- SLOT: section line (the accent word is the payoff) -->- <h2 class="t-display head" data-st="kinetic-type" data-style="mask" data-at="0.1">Everything it takes, <em>on your machine.</em></h2>- <!-- SLOT: three features. Title = the benefit (2-3 words), line = how (<= 6 words).+ <h2 class="t-display head" data-st="kinetic-type" data-style="mask" data-at="0.1">Everything <em>stays local.</em></h2>+ <!-- SLOT: three features. Title = the benefit (2-3 words), line = how (<= 4 words: it reads in time at 10 s).Icons: any path from /_lib/lucide-static/icons/ (inline the SVG, it takes the accent). --><div class="cards"><div class="card"><div class="icon"><svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h13"/></svg></div><div class="motif lines" data-st-decor><i style="animation-delay:0.7s"></i><i style="animation-delay:0.78s"></i><i style="animation-delay:0.86s"></i><i style="animation-delay:0.94s"></i></div>- <div class="txt"><h3>Script to cut</h3><p>One line becomes a timed edit.</p></div>+ <div class="txt"><h3>Script to cut</h3><p>Lines become edits.</p></div></div><div class="card"><div class="icon"><svg viewBox="0 0 24 24"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0M12 18v3"/></svg></div><div class="motif" data-st-decor><i style="height:40%;animation-delay:0.8s"></i><i style="height:75%;animation-delay:0.83s"></i><i style="height:55%;animation-delay:0.86s"></i><i style="height:95%;animation-delay:0.89s"></i><i style="height:62%;animation-delay:0.92s"></i><i style="height:84%;animation-delay:0.95s"></i><i style="height:38%;animation-delay:0.98s"></i><i style="height:70%;animation-delay:1.01s"></i><i style="height:50%;animation-delay:1.04s"></i><i style="height:88%;animation-delay:1.07s"></i><i style="height:45%;animation-delay:1.1s"></i><i style="height:66%;animation-delay:1.13s"></i></div>- <div class="txt"><h3>Voice and captions</h3><p>Narrated and subtitled offline.</p></div>+ <div class="txt"><h3>Voice and captions</h3><p>Narrated offline.</p></div></div><div class="card"><div class="icon"><svg viewBox="0 0 24 24"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg></div><div class="motif" data-st-decor><i style="height:30%;animation-delay:0.9s"></i><i style="height:55%;animation-delay:0.93s"></i><i style="height:30%;animation-delay:0.96s"></i><i style="height:55%;animation-delay:0.99s"></i><i style="height:30%;animation-delay:1.02s"></i><i style="height:55%;animation-delay:1.05s"></i><i style="height:30%;animation-delay:1.08s"></i><i style="height:55%;animation-delay:1.11s"></i><i style="height:30%;animation-delay:1.14s"></i><i style="height:55%;animation-delay:1.17s"></i><i style="height:30%;animation-delay:1.2s"></i><i style="height:55%;animation-delay:1.23s"></i></div>- <div class="txt"><h3>Scored on the beat</h3><p>Music and sound land on cuts.</p></div>+ <div class="txt"><h3>Scored on the beat</h3><p>Music lands on cuts.</p></div></div></div><div class="vig"></div>@@ -383,7 +384,7 @@<section class="scene close" id="close" data-start="#formats" data-dur="3.0" data-design-dur="3.0" data-transition="sdf-iris 0.8" data-transition-options='{"a":0.5,"b":0.62}'><div class="horizon"><div class="bg"></div></div><!-- SLOT: name, tagline, CTA, URL; the child SVG is the mark (or data-logo="logo.svg") -->- <div data-st="end-card" data-text="Northwind" data-tagline="Your launch video, in one sentence." data-cta="Try it free" data-url="northwind.app" data-at="0.3" data-style="mask" data-dot="false">+ <div data-st="end-card" data-text="Northwind" data-tagline="Your launch video, in one sentence." data-cta="Try it free" data-url="northwind.example" data-at="0.3" data-style="mask" data-dot="false"><svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><rect class="m-bg" width="32" height="32" rx="9"/><path class="m-fg" d="M9 23V9h3.2l7.6 9V9H23v14h-3.2L12.2 14v9z"/></svg></div><div class="vig"></div>@@ -396,17 +397,21 @@// Retime support: the CSS keyframe times above are written for each scene's designed length// (data-design-dur). When `showtime retime` / `new --duration` shortens a scene it scales the// component times inside it; this scales the scene's CSS animations by the same factor- // (longer scenes keep their speed and hold longer, like the components).+ // (longer scenes keep their speed and hold longer, like the components). A longer scene marked+ // data-stretch="spread" (the hero) spreads its component start times instead: this spreads the+ // CSS start times (delays) by the same factor and keeps their lengths, so the beats move apart.(function () {var done = new WeakSet();ST.onSeek(function () {document.querySelectorAll('[data-design-dur]').forEach(function (s) {- var k = Math.min(1, parseFloat(s.getAttribute('data-dur')) / parseFloat(s.getAttribute('data-design-dur')));- if (!(k > 0) || k > 0.999) return;+ var r = parseFloat(s.getAttribute('data-dur')) / parseFloat(s.getAttribute('data-design-dur'));+ var spread = r > 1 && s.getAttribute('data-stretch') === 'spread';+ var k = spread ? r : Math.min(1, r);+ if (!(k > 0) || Math.abs(k - 1) < 0.001) return;s.getAnimations({ subtree: true }).forEach(function (a) {if (done.has(a) || !a.effect) return;var t = a.effect.getTiming();- a.effect.updateTiming({ delay: t.delay * k, duration: t.duration * k });+ a.effect.updateTiming(spread ? { delay: t.delay * k } : { delay: t.delay * k, duration: t.duration * k });done.add(a);});});diff --git a/skills/showtime/templates/short/index.html b/skills/showtime/templates/short/index.htmlindex fc11295..e9a3f14 100644--- a/skills/showtime/templates/short/index.html+++ b/skills/showtime/templates/short/index.html@@ -82,7 +82,7 @@<!-- 3. Close: logo and call to action, held. SLOT: name, CTA, URL. --><section class="scene close" id="close" data-start="#demo" data-dur="2.2" data-transition="sdf-iris 0.6">- <div data-st="end-card" data-text="Northwind" data-cta="Try it free" data-url="northwind.app" data-at="0.15" data-style="mask"></div>+ <div data-st="end-card" data-text="Northwind" data-cta="Try it free" data-url="northwind.example" data-at="0.15" data-style="mask"></div></section><!-- Captions for the whole video, from word timings (voice/vo.words.json after `showtime voice say`).diff --git a/skills/showtime/templates/showreel/README.md b/skills/showtime/templates/showreel/README.mdindex cf06e00..2bfa40b 100644--- a/skills/showtime/templates/showreel/README.md+++ b/skills/showtime/templates/showreel/README.md@@ -70,4 +70,5 @@ Other aspects: the reel is laid out for 16:9 and recomposes itself for tall and--size 9:16` (or 1:1, 4:5) needs no edits and `showtime check . --size 9:16` passes. Type scales by the frame'sshorter side; on a tall frame the shot tags and the centred words sit inside the vertical safe box (clear of theplatform UI), the name wraps to two lines, the tile grid turns 4x8, two more type bands fill the height, the chart-stacks the counter over the bars, and the 3D camera pulls back. Keep those rules when you swap a shot.+stacks the counter over the bars (in square frames too, with a smaller ring: `chartLayout(W, H)` in reel.js), and+the 3D camera pulls back. Keep those rules when you swap a shot.diff --git a/skills/showtime/templates/showreel/reel.js b/skills/showtime/templates/showreel/reel.jsindex 46f3815..b4969b2 100644--- a/skills/showtime/templates/showreel/reel.js+++ b/skills/showtime/templates/showreel/reel.js@@ -6,6 +6,7 @@// burst(canvas, opts) a particle burst on a beat: closed-form ballistic paths with drag, drawn as streaks// tunnel(canvas, opts) a fly-through of square rings (zoom-through into the next shot)// chart(canvas, opts) live data: bars spring up, a line draws on with a head, a counter rolls to a number+// chartLayout(W, H) where chart() puts the bars, the label and the counter for a frame size// morph(canvas, opts) one filled shape morphing through a list of outlines on the beats, turning// spiro(canvas, opts) a generative line drawing (a hypotrochoid) drawing itself on with a glowing head// halftone(canvas, opts) a dot field: a lit sphere in halftone dots, its light swinging round, ripples outside@@ -180,6 +181,30 @@ const inOutCubic = (p) => { p = clamp01(p); return p < 0.5 ? 4 * p * p * p : 1 -// a damped spring from 0 to 1 (overshoots once, then settles): p = time over the move's lengthconst spring = (p) => (p <= 0 ? 0 : 1 - Math.exp(-6 * p) * Math.cos(9 * p));+/**+ * Where chart() puts things in a W x H frame. Wide (W > H): the chart on the left, the counter on the right, the+ * label over the chart. Square and tall (H >= W): the counter in its ring on top, the label and the chart under it.+ * The tall layout runs from a square (a smaller ring, a lower chart) to 9:16 (inside the vertical safe box, clear+ * of the shot tag and the platform UI); frames in between take the values in between, so the ring never leaves+ * the frame or crosses the label. size: the counter's font size; the ring's radius is 0.95 size round+ * (cx, cy - 0.42 size).+ */+export function chartLayout(W, H) {+ const S = Math.min(W, H);+ if (W > H) {+ const [x0, x1, base, top] = [W * 0.08, W * 0.6, H * 0.84, H * 0.34];+ return { tall: false, x0, x1, base, top, cx: W * 0.8, cy: H * 0.62, size: S * 0.3, labelY: top - H * 0.07 };+ }+ // [H / W, size (of S), cy, labelY, chart top, chart base (of H)] for 1:1, 4:5 and 9:16; shapes between take the+ // values between (taller than 9:16: the 9:16 values)+ const KEYS = [[1, 0.294, 0.484, 0.7, 0.74, 0.86], [1.25, 0.31, 0.54, 0.72, 0.75, 0.86], [16 / 9, 0.36, 0.47, 0.615, 0.64, 0.73]];+ const r = Math.min(H / W, 16 / 9);+ const i = r <= KEYS[1][0] ? 0 : 1, a = KEYS[i], b = KEYS[i + 1], k = clamp01((r - a[0]) / (b[0] - a[0]));+ const [size, cy, labelY, top, base] = a.slice(1).map((v, j) => v + (b[j + 1] - v) * k);+ return { tall: true, x0: W * 0.1, x1: W * 0.9, base: H * base, top: H * top, cx: W * 0.5, cy: H * cy,+ size: S * size, labelY: H * labelY };+}+/*** Live data: `bars` values (0..1) spring up one after another, a line through `line` values draws on with a* head, a ring gauge closes and a counter rolls like an odometer to `value`, all landed by `land` seconds.@@ -190,13 +215,9 @@ export function chart(canvas, { bars = [0.28, 0.36, 0.31, 0.45, 0.41, 0.53, 0.49line = null, value = 900, ground = '#f1ede4', ink = '#05060f', accent = '#ff3b30', font = 'Anton',label = 'INDEX', land = 1.2 } = {}) {const g = ctx2d(canvas);- const W = canvas.width, H = canvas.height, S = Math.min(W, H), tall = H > W;+ const W = canvas.width, H = canvas.height, S = Math.min(W, H);const L = line || bars.map((v, i) => Math.min(0.98, v * 0.8 + 0.12 + i * 0.006));- // wide: the chart on the left, the counter on the right, the label over the chart; tall: the counter on top, the- // label and the chart under it (inside the vertical safe box, clear of the shot tag and the platform UI)- const [x0, x1, base, top] = tall ? [W * 0.1, W * 0.9, H * 0.73, H * 0.64] : [W * 0.08, W * 0.6, H * 0.84, H * 0.34];- const [cx, cy, size] = tall ? [W * 0.5, H * 0.47, S * 0.36] : [W * 0.8, H * 0.62, S * 0.3];- const labelY = tall ? H * 0.615 : top - H * 0.07;+ const { x0, x1, base, top, cx, cy, size, labelY } = chartLayout(W, H);const slot = (x1 - x0) / bars.length;const bx = (i) => x0 + slot * (i + 0.5);return {diff --git a/skills/showtime/tests/_impact.py b/skills/showtime/tests/_impact.pyindex 40d92ea..f084190 100644--- a/skills/showtime/tests/_impact.py+++ b/skills/showtime/tests/_impact.py@@ -98,6 +98,13 @@ OVERRIDES = [(".gitattributes", ["test_skill_structure.py"]),(".out-of-scope/**", []),(".github/**", []), # CI definitions: exercised by CI itself, not by the local suite+ # the issue and discussion forms, release.yml, ci.yml's nightly-report job and the script it runs+ (".github/ISSUE_TEMPLATE/**", ["test_github.py"]),+ (".github/DISCUSSION_TEMPLATE/**", ["test_github.py"]),+ (".github/release.yml", ["test_github.py"]),+ (".github/workflows/ci.yml", ["test_github.py"]),+ ("scripts/nightly_report.py", ["test_github.py"]),+ ("CODE_OF_CONDUCT.md", ["test_github.py"]),("docs/**", []),# the guides for people: their shape and sidebar, their search entries, their commands and links (check_release)("docs/guides/**", ["test_site_build.py", "test_site_search.py", "test_skill_structure.py"]),diff --git a/skills/showtime/tests/test_adopt.py b/skills/showtime/tests/test_adopt.pyindex 33ed6d0..c8d26fd 100644--- a/skills/showtime/tests/test_adopt.py+++ b/skills/showtime/tests/test_adopt.py@@ -668,7 +668,10 @@ class Adopt(unittest.TestCase):self.assertTrue(red and abs(red[0] - 840) <= 4 and abs(red[-1] - 1016) <= 4, (red[:1], red[-1:]))showtime("adopt", out, "--refresh", "--no-check")rep = json.loads((out / "adopt.json").read_text())- self.assertEqual((rep["source"], rep["duration"]), (str(z), 4))+ # paths in the project's files are relative to the project, and --refresh still finds the zip by them+ self.assertEqual((rep["source"], rep["project"], rep["duration"]), ("../" + z.name, ".", 4))+ cfg = json.loads((out / "showtime.json").read_text())+ self.assertEqual((cfg["adopt"]["source"], cfg["adopt"]["root"]), ("../" + z.name, "src"))def design_box(self, name, w, h, *extra):"""The design-dc fixture as a w x h artboard with a green box in its bottom-right corner, adopted@@ -718,7 +721,8 @@ class Adopt(unittest.TestCase):self.assertEqual(rep["made"], "Claude Design export")# check measures the zoomed artboard in one unit: the text inside a box that overflows it is not "clipped"self.assertEqual(rep["check"]["errors"], 0, rep["check"])- report = json.loads(Path(rep["check"]["report"]).read_text())+ self.assertEqual(rep["check"]["report"], "work/check/report.json") # relative to the project+ report = json.loads((out / rep["check"]["report"]).read_text())self.assertNotIn("text_clipped", [f.get("code") for f in report.get("findings", [])])self.assertEqual((rep["width"], rep["height"], rep["duration"]), (1080, 1920, 4))self.assertIn("one loop is 4 s", rep["sources"]["duration"])@@ -735,7 +739,17 @@ class Adopt(unittest.TestCase):out = TMP / "editable-out"showtime("adopt", src, "-o", out, "--no-check")page = src / "video.html"+ cfg = json.loads((out / "showtime.json").read_text())+ self.assertEqual((cfg["adopt"]["source"], cfg["adopt"]["root"]), ("../editable", "../editable"))+ for f in ("adopt.json", "showtime.json"):+ self.assertNotIn(str(TMP), (out / f).read_text(), f + " names a machine path")page.write_text(page.read_text().replace("const DURATION = 4;", "const DURATION = 5;"))+ # the project moves with its source (a job folder copied elsewhere): --refresh still finds the original+ moved = TMP / "moved"+ moved.mkdir()+ shutil.move(str(src), str(moved / "editable"))+ shutil.move(str(out), str(moved / "editable-out"))+ src, out = moved / "editable", moved / "editable-out"showtime("adopt", out, "--refresh", "--no-check")rep = json.loads((out / "adopt.json").read_text())self.assertEqual(rep["duration"], 5)@@ -744,6 +758,23 @@ class Adopt(unittest.TestCase):self.assertEqual(cp.returncode, 1)self.assertIn("--refresh", cp.stderr)+ def test_refresh_a_project_adopted_before_0_4_1(self):+ """0.4.0 and earlier wrote adopt.source and adopt.root as absolute paths: --refresh still finds them."""+ src = TMP / "old-abs"+ shutil.copytree(FIX / "html-seek", src)+ out = TMP / "old-abs-out"+ showtime("adopt", src, "-o", out, "--no-check")+ cfg = json.loads((out / "showtime.json").read_text())+ cfg["adopt"]["source"] = cfg["adopt"]["root"] = str(src.resolve())+ (out / "showtime.json").write_text(json.dumps(cfg, indent=2))+ page = src / "video.html"+ page.write_text(page.read_text().replace("const DURATION = 4;", "const DURATION = 6;"))+ cp = showtime("adopt", out, "--refresh", "--no-check", check=False)+ self.assertEqual(cp.returncode, 0, cp.stderr[-1500:])+ self.assertNotIn("is gone", cp.stderr)+ self.assertEqual(json.loads((out / "adopt.json").read_text())["duration"], 6)+ self.assertIn("DURATION = 6", (out / "src" / "video.html").read_text())+if __name__ == "__main__":argv = [a for a in sys.argv if a != "--fast"]diff --git a/skills/showtime/tests/test_audio.py b/skills/showtime/tests/test_audio.pyindex 1453d97..4dbde27 100644--- a/skills/showtime/tests/test_audio.py+++ b/skills/showtime/tests/test_audio.py@@ -472,6 +472,18 @@ class AudioTests(unittest.TestCase):self.assertEqual(b["ending"], "song")self.assertEqual(wav_frames(self.tmp / "fb.wav"), 13 * 48000)self.assertLess(b["end_hit"], 13.0)+ # a mix track keeps the song's ending too ("ending": "song" reaches fit; an ending implies fit)+ spec = {"duration": 13.0, "master": {"engine": "none"},+ "tracks": [{"id": "bed", "kind": "music", "file": str(long), "ending": "song"}]}+ (self.tmp / "mix-song.json").write_text(json.dumps(spec), encoding="utf-8")+ m = js("audio", "mix", self.tmp / "mix-song.json", "-o", self.tmp / "mix-song.wav", "--json")+ self.assertEqual(m["tracks"][0]["fit"]["ending"], "song", m["tracks"][0].get("fit"))+ self.assertEqual(m["tracks"][0]["fit"]["ending_from"], b["ending_from"])+ spec["tracks"][0]["ending"] = "outro"+ (self.tmp / "mix-song.json").write_text(json.dumps(spec), encoding="utf-8")+ bad = st("audio", "mix", self.tmp / "mix-song.json", "-o", self.tmp / "mix-bad.wav", check=False)+ self.assertNotEqual(bad.returncode, 0)+ self.assertIn('"ending" must be', bad.stdout + bad.stderr)# compose: a marker inside the ring-out is reported; the SoundFont used is recordedr = js("audio", "compose", "--style", "epic-trailer", "--dur", "12", "--sections", "0:intro,5:drop,11.5:outro","--no-stems", "-o", self.tmp / "notes.wav", "--json")diff --git a/skills/showtime/tests/test_cards.py b/skills/showtime/tests/test_cards.pyindex 2c2b712..fe7ee53 100644--- a/skills/showtime/tests/test_cards.py+++ b/skills/showtime/tests/test_cards.py@@ -370,7 +370,7 @@ class FaceTest(unittest.TestCase):class ReviewW1Test(unittest.TestCase):- """Fixes from the independent review of the cards (REVIEW-W1: S1, S3-S5, P2, P5, P6, P8)."""+ """Fixes from the independent review of the cards (findings S1, S3-S5, P2, P5, P6, P8)."""def test_caption_cut_at_a_split_edge(self):# S1: a caption group that starts before a 9:16 panel and ends inside it is cut at the panel's start;@@ -552,6 +552,50 @@ class SuggestTest(unittest.TestCase):self.assertIn("\"type\": \"stat\"", cp.stdout)+class ReelPlacementTest(unittest.TestCase):+ """The card reel lands on the output frame for frame: each card's first reel frame on the card's first output+ frame, its last on the frame before the card's cut (a behind card's plate is cut frame-exact, so a reel frame+ short left the speaker on a bare plate: example 23's 9:16, frame 1307 before the cut at 43.600 s)."""++ def placed(self, fps, starts):+ from st import ff+ from st.footage import cards as CD, render_edl as R+ FF, W, H = ff.ffmpeg_path(), 32, 32+ d = Path(tempfile.mkdtemp(prefix="reel-", dir=str(TMP)))+ reel, base = d / "reel.mov", d / "base.mp4"+ rate = "%d/%d" % (fps.numerator, fps.denominator)+ # reel frame i is gray (i mod 30) * 8, opaque, like the real reel (QuickTime Animation, argb)+ subprocess.run([FF, "-v", "error", "-y", "-f", "lavfi", "-i", "color=black:s=%dx%d:r=%s:d=8,format=rgba" % (W, H, rate),+ "-vf", "geq=r='mod(N,30)*8':g='mod(N,30)*8':b='mod(N,30)*8':a='255'", "-c:v", "qtrle",+ "-pix_fmt", "argb", str(reel)], check=True)+ subprocess.run([FF, "-v", "error", "-y", "-f", "lavfi", "-i", "color=white:s=%dx%d:r=%s:d=12" % (W, H, rate),+ "-c:v", "libx264", "-qp", "0", "-pix_fmt", "yuv420p", str(base)], check=True)+ cards = [{"index": i, "start": float(Fraction(f) / fps), "end": float(Fraction(f + 23 + 7 * i) / fps)}+ for i, f in enumerate(starts)]+ plan = CD.reel_plan(cards, fps)++ class Ctx:+ pass+ ctx = Ctx()+ ctx.w, ctx.h, ctx.full_w, ctx.full_h, ctx.fps = W, H, W, H, fps+ ctx.edl = {"overlays": CD.overlays_for(reel, plan)}+ args, parts, cur = R._overlay_graph(ctx, 1)+ raw = subprocess.run([FF, "-v", "error", "-i", str(base)] + args + [+ "-filter_complex", ";".join(parts) + ";%sformat=rgb24[v]" % cur, "-map", "[v]", "-f", "rawvideo", "-"],+ stdout=subprocess.PIPE, check=True).stdout+ px = [raw[(k * W * H + (H // 2) * W + W // 2) * 3] for k in range(len(raw) // (W * H * 3))]+ vals = [v if v > 245 else int(round(v / 8.0)) for v in px]+ for p in plan:+ f0 = int(round(p["card"]["start"] * float(fps)))+ want = [255] + [i % 30 for i in range(p["offset_frames"], p["offset_frames"] + p["frames"])] + [255]+ self.assertEqual(vals[f0 - 1:f0 + p["frames"] + 1], want, "card %d at frame %d (%s fps)" % (+ p["card"]["index"], f0, rate))++ def test_every_reel_frame_on_its_output_frame(self):+ self.placed(Fraction(30), [13, 63, 123, 183]) # 13: start/TB came out 12.999..., truncated a frame early+ self.placed(Fraction(30000, 1001), [7, 50, 101, 170])++class RenderTest(unittest.TestCase):def test_every_card_type_renders_with_alpha(self):import numpy as npdiff --git a/skills/showtime/tests/test_export.py b/skills/showtime/tests/test_export.pyindex ecaf8ac..a4ff3ef 100644--- a/skills/showtime/tests/test_export.py+++ b/skills/showtime/tests/test_export.py@@ -861,6 +861,33 @@ class ExportTest(unittest.TestCase):self.assertNotEqual(cp.returncode, 0)self.assertIn("inside the job folder", cp.stderr)+ def test_job_argument(self):+ """`export html <job>` exports the job's project/ (as qa and review take a job), into the job folder; with+ `--folder out` the word after --folder is the output folder (was: "expected one project"). A job without a+ project/ says so and never suggests starting a new project."""+ job = TMP / "job-arg"+ (job / "project").mkdir(parents=True, exist_ok=True)+ (job / "job.json").write_text(json.dumps({"schema": "showtime.job/1", "slug": "job-arg"}), encoding="utf-8")+ for f in Path(self.fixture).iterdir():+ dst = job / "project" / f.name+ if f.is_dir():+ shutil.copytree(str(f), str(dst), dirs_exist_ok=True)+ else:+ shutil.copy2(str(f), str(dst))+ out = TMP / "job-arg-out"+ rep = json.loads(showtime("export", "html", job, "--folder", out, "--audio", "none", "--json", "-q").stdout)+ self.assertEqual(Path(rep["output"]).resolve().parent, out.resolve(), rep["output"])+ self.assertTrue((out / "index.html").is_file())+ rep = json.loads(showtime("export", "html", job, "--audio", "none", "--json", "-q").stdout)+ self.assertEqual(Path(rep["output"]).resolve().parent, job.resolve(), "default output: inside the job")+ bare = TMP / "job-no-project"+ bare.mkdir(exist_ok=True)+ (bare / "job.json").write_text(json.dumps({"schema": "showtime.job/1", "slug": "job-no-project"}), encoding="utf-8")+ cp = showtime("export", "html", bare, check=False)+ self.assertNotEqual(cp.returncode, 0)+ self.assertIn("has no project/index.html", cp.stderr)+ self.assertNotIn("showtime new", cp.stderr)+def test_audio_file(self):"""--audio-file embeds exactly the given sound (a shipped MP4's soundtrack) instead of the score andthe mix: one command for a project whose voice WAVs are gone."""@@ -1154,6 +1181,135 @@ class RangeLinkTest(unittest.TestCase):self.assertIn("#t=1:05-1:20", s["help"])+NO_RANGE_DRIVER = r"""+import path from 'node:path';+import { pathToFileURL } from 'node:url';+const { launchBrowser } = await import(pathToFileURL(path.join(process.argv[2], 'scripts', 'lib', 'chrome.mjs')).href);+const { browser } = await launchBrowser({ gpu: 'auto', headless: true });+try {+ const page = await (await browser.newContext({ viewport: { width: 640, height: 360 } })).newPage();+ const refused = process.argv[4] === 'refused';+ if (refused) {+ // the first whole-file read of the soundtrack fails (a network error); later ones go through+ await page.addInitScript(() => {+ const f = window.fetch.bind(window);+ window.__reads = 0;+ window.fetch = (u, o) => {+ if (String(u).includes('/media/') && ++window.__reads === 1) return Promise.reject(new Error('refused once'));+ return f(u, o);+ };+ });+ }+ await page.goto(process.argv[3], { waitUntil: 'load' });+ await page.evaluate(() => window.showtimePlayer.ready);+ if (refused) {+ // the element can only seek inside its first second (what a server without Range requests leaves it)+ await page.evaluate(() => Object.defineProperty(window.showtimePlayer.audio, 'seekable',+ { get: () => ({ length: 1, start: () => 0, end: () => 1 }) }));+ }+ await page.mouse.click(320, 180);+ await page.waitForTimeout(200);+ const st = () => page.evaluate(() => { const p = window.showtimePlayer, A = p.audio;+ return { t: p.currentTime, a: A.currentTime, apaused: A.paused, src: String(A.src).split(':')[0], reads: window.__reads }; });+ await page.evaluate(() => { window.showtimePlayer.currentTime = 30; });+ const out = { at300: await page.waitForTimeout(300).then(st) };+ if (refused) {+ // the first whole-file read fails (the server refuses it once): the next seek reads it again and the+ // sound comes back in sync+ await page.waitForTimeout(1700);+ out.first = await st();+ await page.evaluate(() => { window.showtimePlayer.currentTime = 45; });+ await page.waitForTimeout(5000);+ out.second = await st();+ } else {+ await page.waitForTimeout(3700);+ out.at4000 = await st();+ }+ console.log(JSON.stringify(out));+} finally { await browser.close(); }+"""++[email protected](FAST, "needs a browser")+class NoRangeSeekTest(unittest.TestCase):+ """A --folder export served without HTTP Range requests (python -m http.server), slowly: a seek right after the+ start used to leave the clock stuck at the seek target while the soundtrack played on from 0 (the element+ cannot seek past what it has downloaded). Now the picture plays on by the wall clock, the soundtrack is read+ whole into a blob and comes back in sync at the film's time."""++ def serve_and_play(self, tmp, mode=""):+ class Slow(http.server.SimpleHTTPRequestHandler): # no Range support, 0.6 MB/s for the media+ def log_message(self, *a):+ pass++ def copyfile(self, src, dst):+ slow = "/media/" in self.path+ while True:+ b = src.read(32768)+ if not b:+ break+ try:+ dst.write(b)+ except OSError:+ return+ if slow:+ time.sleep(0.05)+ srv = http.server.ThreadingHTTPServer(("127.0.0.1", 0), functools.partial(Slow, directory=str(tmp / "www")))+ threading.Thread(target=srv.serve_forever, daemon=True).start()+ try:+ drv = tmp / "norange.mjs"+ drv.write_text(NO_RANGE_DRIVER, encoding="utf-8")+ node = shutil.which("node", path=ENV.get("PATH")) or "node"+ cp = subprocess.run([node, str(drv), str(SKILL), "http://127.0.0.1:%d/site/index.html" % srv.server_address[1],+ mode], env=ENV, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8",+ timeout=180)+ finally:+ srv.shutdown()+ srv.server_close()+ self.assertEqual(cp.returncode, 0, cp.stderr[-2000:])+ return json.loads(cp.stdout.strip().splitlines()[-1])++ def make_site(self, tmp):+ proj = tmp / "long"+ (proj / "audio").mkdir(parents=True)+ ff.run_ffmpeg(["-f", "lavfi", "-i", "anoisesrc=d=60:c=pink:a=0.2:r=48000", "-ac", "2", str(proj / "audio" / "bed.wav")])+ (proj / "showtime.json").write_text(json.dumps({"title": "No range", "width": 640, "height": 360, "fps": 30,+ "duration": 60, "audio": "audio/bed.wav"}), encoding="utf-8")+ (proj / "index.html").write_text('<!doctype html><html><head><script src="/_st/stage.js"></script></head>'+ '<body style="margin:0;background:#123"></body></html>', encoding="utf-8")+ export(proj, tmp / "www" / "site", "--folder")++ def test_failed_whole_read_does_not_silence_later_seeks(self):+ tmp = Path(tempfile.mkdtemp(prefix="st-norange-fail-"))+ try:+ self.make_site(tmp)+ r = self.serve_and_play(tmp, mode="refused")+ self.assertGreater(r["first"]["t"], 31.0, r) # the picture plays on by the wall clock+ self.assertTrue(r["first"]["apaused"], r) # the sound waits: it cannot get there+ # the seek after the failed read reads it again (it used to wait on the failed one for good, the+ # soundtrack detached and paused for the rest of the session)+ self.assertEqual(r["second"]["reads"], 2, r)+ self.assertEqual(r["second"]["src"], "blob", r)+ self.assertFalse(r["second"]["apaused"], "the soundtrack stayed detached after a failed read: %s" % r)+ self.assertLess(abs(r["second"]["a"] - r["second"]["t"]), 0.3, r)+ finally:+ shutil.rmtree(str(tmp), ignore_errors=True)++ def test_seek_without_range_requests(self):+ tmp = Path(tempfile.mkdtemp(prefix="st-norange-"))+ try:+ self.make_site(tmp)+ r = self.serve_and_play(tmp)+ self.assertGreater(r["at300"]["t"], 30.05, "the clock stopped at the seek target: %s" % r)+ self.assertGreater(r["at4000"]["t"], 33.0, r)+ # either the element can seek by now (the early read filled the cache) or the blob was swapped in+ self.assertIn(r["at4000"]["src"], ("http", "blob"), r)+ self.assertFalse(r["at4000"]["apaused"], r)+ self.assertLess(abs(r["at4000"]["a"] - r["at4000"]["t"]), 0.3, "the sound is back in sync: %s" % r)+ finally:+ shutil.rmtree(str(tmp), ignore_errors=True)++class DeliverExportsTest(unittest.TestCase):"""`showtime deliver exports` arguments (batch 2): a small master is never inflated toward a size cap,a bare --max-mb leaves the upload platforms alone (per-target caps with target:MB), x/linkedin keep adiff --git a/skills/showtime/tests/test_foundation.py b/skills/showtime/tests/test_foundation.pyindex ace14f8..de7c73a 100644--- a/skills/showtime/tests/test_foundation.py+++ b/skills/showtime/tests/test_foundation.py@@ -830,6 +830,35 @@ class TestRetimeVoiceAndData(TempDirCase):self.assertIn("poster", cp.stdout + cp.stderr)self.assertNotRegex(cp.stdout + cp.stderr, r"poster ([\d.]+) -> \1\b")+ def test_spread_scene_moves_its_beats_apart(self):+ """A scene marked data-stretch="spread" spreads its component start times when it gets longer (data-at,+ data-exit-at, "at" in JSON times) and keeps the lengths (data-fit, "dur"); poster times in it spread too and+ the stretch warning leaves it out. A plain scene still keeps its offsets (the dom template's hero held still+ for 5.4 s at --duration 24)."""+ from st import cli_core+ html = ('<section id="hero" data-start="0" data-dur="4" data-stretch="spread">\n'+ ' <h1 data-st="kinetic-type" data-at="0.5" data-exit-at="2">Hi</h1>\n'+ ' <p data-st="typewriter" data-at="2.5" data-fit="1.3">typed</p>\n'+ ' <div data-zoom=\'[{"at":3,"scale":1.3,"dur":0.75}]\'></div></section>\n'+ '<section id="b" data-start="#hero" data-dur="4"><p data-st="kinetic-type" data-at="0.5">Two</p></section>\n')+ out, smap, info, _w = cli_core._retime_html(html, 8.0, 16.0)+ self.assertIn('data-at="1" data-exit-at="4"', out)+ self.assertIn('data-at="5" data-fit="1.3"', out) # the typing keeps its speed+ self.assertIn('"at":6,"scale":1.3,"dur":0.75', out.replace(""", '"'))+ self.assertIn('id="b" data-start="#hero" data-dur="8"><p data-st="kinetic-type" data-at="0.5">', out)+ self.assertAlmostEqual(smap(1.9), 3.8) # a poster in the hero+ self.assertAlmostEqual(smap(4.5), 8.5) # one in a plain scene+ self.assertEqual([s.get("spread") for s in info["scenes"]], [True, None])+ notes = cli_core._stretch_notes(info["scenes"])+ self.assertTrue(notes and "b x2.0" in notes[0] and "hero" not in notes[0], notes)+ # shorter: spread or not, everything scales as before+ out2, _s, _i, _w = cli_core._retime_html(html, 8.0, 4.0)+ self.assertIn('data-at="0.25" data-exit-at="1"', out2)+ self.assertIn('data-at="1.25" data-fit="0.65"', out2)+ # the dom template's hero is a spread scene+ self.assertIn('id="hero" data-start="0" data-dur="6.8" data-design-dur="6.8" data-stretch="spread"',+ (SKILL / "templates" / "dom" / "index.html").read_text(encoding="utf-8"))+def test_thresholds_shared_with_check(self):from st import cli_coreth = json.loads((SKILL / "runtime" / "thresholds.json").read_text(encoding="utf-8"))@@ -1045,6 +1074,28 @@ class TestAudioPeakGuard(TempDirCase):self.assertTrue(p["has_video"] and p["has_audio"])self.assertAlmostEqual(p["duration"], 1.0, delta=0.1)self.assertEqual(ff.ensure_true_peak(out, 0.0)["attempts"], []) # already under: untouched+ # 0.1 dB over the ceiling (an export copy at -0.9 against -1 dBTP) is over: repaired, not let through+ now = ff.audio_levels(out)["true_peak_dbtp"]+ rep = ff.ensure_true_peak(out, now - 0.1)+ self.assertTrue(rep["attempts"] and rep["fixed"], rep)+ self.assertLessEqual(rep["after"], now - 0.1)++ def test_true_peak_repair_not_measured_is_not_fixed(self):+ """A re-encode whose true peak cannot be read is not counted as fixed (it used to be)."""+ f = self.tmp / "x.mp4"+ f.write_bytes(b"x")+ reads = iter([{"true_peak_dbtp": 0.4}, {"true_peak_dbtp": None}])+ orig = ff.audio_levels, ff.run_ffmpeg+ ff.audio_levels = lambda p: next(reads)+ ff.run_ffmpeg = lambda args, **kw: Path(args[-1]).write_bytes(b"y")+ try:+ rep = ff.ensure_true_peak(f, -1.0)+ finally:+ ff.audio_levels, ff.run_ffmpeg = orig+ self.assertEqual(len(rep["attempts"]), 1)+ self.assertFalse(rep["fixed"], rep)+ self.assertTrue(rep["unmeasured"], rep)+ self.assertIsNone(rep["after"])class TestUX(TempDirCase):diff --git a/skills/showtime/tests/test_github.py b/skills/showtime/tests/test_github.pynew file mode 100644index 0000000..fc83dd9--- /dev/null+++ b/skills/showtime/tests/test_github.py@@ -0,0 +1,434 @@+#!/usr/bin/env python3+"""The repository's GitHub files (stdlib + PyYAML, about a second, no network).++Covers:+ - .github/ISSUE_TEMPLATE/: the bug, feature, example-request and docs forms parse and follow GitHub's issue+ form schema (unique ids, known field types, dropdown options, only labels of the repository's label set);+ config.yml turns blank issues off and links Q&A, Show and tell, the docs site and private security reporting+ - .github/DISCUSSION_TEMPLATE/show-and-tell.yml: the video, the request, the agent, version, OS, render time+ and the "may feature it" checkbox+ - .github/release.yml: skip-notes is honoured, every category label is a known one+ - CODE_OF_CONDUCT.md: Contributor Covenant 2.1 with a private contact and no e-mail address+ - ci.yml's nightly-report job: after the nightly matrix, always(), on main only, issues: write with only the+ workflow token, no expression inside its script+ - scripts/nightly_report.py: the log parser on a real run's lines, the comment it builds, the open / comment /+ close decision and the gh calls it makes (a fake gh: nothing is posted)++usage: python tests/test_github.py [--fast] [-v]+"""+from __future__ import annotations++import contextlib+import importlib.util+import io+import json+import re+import sys+import unittest+from pathlib import Path++TESTS_DIR = Path(__file__).resolve().parent+REPO = TESTS_DIR.parent.parent.parent+GH_DIR = REPO / ".github"+FORMS = GH_DIR / "ISSUE_TEMPLATE"+CI = GH_DIR / "workflows" / "ci.yml"+SCRIPT = REPO / "scripts" / "nightly_report.py"++try:+ import yaml # type: ignore+except ImportError: # the showtime venv has PyYAML; a bare system Python may not+ yaml = None+SKIP_YAML = "PyYAML is not installed in this Python (it is in the showtime venv); the YAML checks are skipped"+SKIP_REPO = "the repository's .github folder is not here (the skill was copied without its repository)"++sys.dont_write_bytecode = True # importing the script must not leave a __pycache__ in the repository+nr = None+if SCRIPT.is_file():+ _spec = importlib.util.spec_from_file_location("nightly_report", str(SCRIPT))+ nr = importlib.util.module_from_spec(_spec) # type: ignore[arg-type]+ sys.modules["nightly_report"] = nr+ _spec.loader.exec_module(nr) # type: ignore[union-attr]++# The repository's label set (created on GitHub; the forms may only name these)+LABELS = {+ "type: bug", "type: feature", "type: docs", "type: example", "type: perf", "type: chore",+ "area: render", "area: voice", "area: audio", "area: edit", "area: export", "area: qa", "area: install",+ "area: site", "platform: macos", "platform: windows", "platform: linux", "status: triage",+ "status: needs-owner", "status: needs-info", "status: ready", "status: blocked", "ci: nightly",+ "out-of-scope", "breaking", "skip-notes", "good first issue", "help wanted", "accessibility", "duplicate",+}+FIELD_TYPES = {"markdown", "textarea", "input", "dropdown", "checkboxes"}+ID_RE = re.compile(r"^[A-Za-z0-9_-]+$")+OS_OPTIONS = {"macOS, Apple Silicon", "macOS, Intel", "Windows 10/11, x64", "Windows on Arm", "Linux"}+++def load(path: Path):+ return yaml.safe_load(path.read_text(encoding="utf-8"))+++def check_body(tc: unittest.TestCase, body, where: str) -> dict:+ """GitHub's form schema rules that a typo breaks silently (the form then falls back to a blank issue)."""+ tc.assertIsInstance(body, list, where)+ ids, fields = set(), {}+ for el in body:+ tc.assertIn(el.get("type"), FIELD_TYPES, "%s: unknown field type %r" % (where, el.get("type")))+ attrs = el.get("attributes") or {}+ if el["type"] == "markdown":+ tc.assertTrue(attrs.get("value"), "%s: a markdown field needs a value" % where)+ continue+ tc.assertTrue(attrs.get("label"), "%s: field without a label" % where)+ fid = el.get("id")+ tc.assertTrue(fid and ID_RE.match(fid), "%s: field id %r" % (where, fid))+ tc.assertNotIn(fid, ids, "%s: id %s used twice" % (where, fid))+ ids.add(fid)+ if el["type"] == "dropdown":+ opts = attrs.get("options") or []+ tc.assertTrue(opts, "%s: dropdown %s has no options" % (where, fid))+ tc.assertEqual(len(opts), len(set(map(str, opts))), "%s: dropdown %s repeats an option" % (where, fid))+ tc.assertTrue(all(isinstance(o, str) for o in opts), "%s: dropdown %s: options must be strings "+ "(quote 16:9)" % (where, fid))+ if el["type"] == "checkboxes":+ opts = attrs.get("options") or []+ tc.assertTrue(opts and all(o.get("label") for o in opts), "%s: checkboxes %s" % (where, fid))+ req = (el.get("validations") or {}).get("required")+ tc.assertIn(req, (None, True, False), "%s: %s required must be a bool" % (where, fid))+ fields[fid] = el+ tc.assertTrue(fields, "%s: a form needs at least one field that is not markdown" % where)+ return fields++[email protected](yaml is None, SKIP_YAML)[email protected](GH_DIR.is_dir(), SKIP_REPO)+class IssueForms(unittest.TestCase):+ def test_four_forms_parse_and_follow_the_schema(self):+ names = sorted(p.name for p in FORMS.glob("*.yml") if p.name != "config.yml")+ self.assertEqual(names, ["bug.yml", "docs.yml", "example-request.yml", "feature.yml"])+ for name in names:+ d = load(FORMS / name)+ for key in ("name", "description", "body"):+ self.assertTrue(d.get(key), "%s: no %s" % (name, key))+ self.assertLessEqual(len(d["description"]), 200, name)+ for lab in d.get("labels") or []:+ self.assertIn(lab, LABELS, "%s names label %r, which the repository does not have" % (name, lab))+ self.assertIn("status: triage", d["labels"], name)+ check_body(self, d["body"], name)++ def test_bug_form_asks_for_what_triage_needs(self):+ f = check_body(self, load(FORMS / "bug.yml")["body"], "bug.yml")+ for fid in ("what", "steps", "doctor", "version", "os"):+ self.assertTrue(f[fid].get("validations", {}).get("required"), "bug.yml: %s should be required" % fid)+ self.assertEqual(set(f["os"]["attributes"]["options"]), OS_OPTIONS)+ self.assertEqual(f["doctor"]["attributes"].get("render"), "text")+ text = (FORMS / "bug.yml").read_text(encoding="utf-8")+ self.assertIn("showtime report", text) # the redacted bug-report.md++ def test_config_turns_blank_issues_off_and_links_the_right_places(self):+ d = load(FORMS / "config.yml")+ self.assertIs(d["blank_issues_enabled"], False)+ urls = [c["url"] for c in d["contact_links"]]+ for c in d["contact_links"]:+ self.assertTrue(c.get("name") and c.get("about"), c)+ self.assertTrue(c["url"].startswith("https://"), c)+ for want in ("/discussions/categories/q-a", "/discussions/categories/show-and-tell",+ "/security/advisories/new", "faviovazquez.github.io/showtime"):+ self.assertTrue(any(want in u for u in urls), "config.yml links no %s" % want)++ def test_show_and_tell_form(self):+ p = GH_DIR / "DISCUSSION_TEMPLATE" / "show-and-tell.yml"+ d = load(p)+ f = check_body(self, d["body"], p.name)+ self.assertNotIn("labels", d, "discussion labels must exist first; the category is enough")+ for fid in ("video", "request", "agent", "version", "os", "render-time", "consent"):+ self.assertIn(fid, f, "show-and-tell.yml: no %s field" % fid)+ self.assertTrue(f["video"]["validations"]["required"])+ consent = f["consent"]["attributes"]["options"][0]+ self.assertIn("may feature", consent["label"])+ self.assertIn("credited to me", consent["label"])+ self.assertFalse(consent.get("required"), "featuring is opt-in")++ def test_release_notes_config(self):+ d = load(GH_DIR / "release.yml")["changelog"]+ self.assertIn("skip-notes", d["exclude"]["labels"])+ for cat in d["categories"]:+ for lab in cat["labels"]:+ self.assertTrue(lab == "*" or lab in LABELS, "release.yml: unknown label %r" % lab)+ self.assertEqual(d["categories"][-1]["labels"], ["*"], "the catch-all category goes last")++ def test_forms_say_nothing_private(self):+ for p in sorted(GH_DIR.rglob("*.yml")):+ if "workflows" in p.parts or "actions" in p.parts:+ continue+ text = p.read_text(encoding="utf-8")+ self.assertNotRegex(text, r"(?i)/Users/|/home/|[A-Z]:\\|\blane\b|@[\w.-]+\.(?:com|org|net)\b", p.name)++[email protected]((REPO / "CODE_OF_CONDUCT.md").is_file(), SKIP_REPO)+class CodeOfConduct(unittest.TestCase):+ def test_contributor_covenant_with_a_private_contact(self):+ text = (REPO / "CODE_OF_CONDUCT.md").read_text(encoding="utf-8")+ self.assertIn("Contributor Covenant", text)+ self.assertIn("version 2.1", text)+ self.assertIn("/security/advisories/new", text)+ self.assertIn("https://github.com/FavioVazquez", text)+ self.assertIsNone(re.search(r"[\w.+-]+@[\w-]+\.[\w.]+", text), "no e-mail address in the code of conduct")+ self.assertNotIn("[INSERT", text)+ self.assertIn("CODE_OF_CONDUCT.md", (REPO / "CONTRIBUTING.md").read_text(encoding="utf-8"))++[email protected](yaml is None, SKIP_YAML)[email protected](CI.is_file(), SKIP_REPO)+class NightlyReportJob(unittest.TestCase):+ def setUp(self):+ self.doc = load(CI)+ self.job = self.doc["jobs"]["nightly-report"]++ def test_runs_after_the_nightly_matrix_on_main(self):+ self.assertEqual(self.job["needs"], ["nightly"])+ cond = self.job["if"]+ self.assertTrue(cond.startswith("always() && "), cond)+ self.assertIn("github.ref == 'refs/heads/main'", cond)+ self.assertIn("github.event_name == 'schedule'", cond)+ self.assertIn("github.event_name == 'workflow_dispatch' && inputs.full", cond)+ self.assertIn("!github.event.repository.private", cond)+ on = self.doc.get("on", self.doc.get(True)) # PyYAML reads the bare key `on` as True+ self.assertIn("schedule", on)+ self.assertIn("workflow_dispatch", on)++ def test_least_privilege_and_only_the_workflow_token(self):+ self.assertEqual(self.job["permissions"], {"contents": "read", "actions": "read", "issues": "write"})+ self.assertEqual(self.doc["permissions"], {"contents": "read"}, "the workflow default stays read-only")+ blob = yaml.safe_dump(self.job)+ self.assertNotIn("secrets.", blob)+ steps = self.job["steps"]+ envs = [s.get("env", {}) for s in steps]+ self.assertIn("${{ github.token }}", [e.get("GH_TOKEN") for e in envs])+ for s in steps:+ if "run" in s:+ self.assertNotIn("${{", s["run"], "expressions go through env:, never into the script")+ self.assertIn("scripts/nightly_report.py", s["run"])++ def test_pins_match_the_rest_of_the_workflow(self):+ text = CI.read_text(encoding="utf-8")+ pins = set(re.findall(r"uses:\s*actions/checkout@(\S+)", text))+ self.assertEqual(len(pins), 1, "every checkout in ci.yml uses the same pin: %s" % pins)+ self.assertTrue(SCRIPT.is_file())+++# A real failed nightly's lines (trimmed): run_all.py -j 2 on two images+LOG_WIN = """\+2026-10-07T11:59:05.0294618Z [56/64] FAIL test_signatures.py 900.7s rc=124 timed out after 900s+2026-10-07T12:01:17.8061457Z [59/64] PASS test_studio.py 64.9s+2026-10-07T12:06:27.9524780Z ============================== test_signatures.py FAIL (rc=124) timed out after 900s ==============================+2026-10-07T12:06:27.9525501Z ...+2026-10-07T12:06:27.9525944Z test file result seconds+2026-10-07T12:06:27.9560363Z test_signatures.py FAIL 900.7 timed out after 900s+2026-10-07T12:06:27.9566089Z 63/64 test files passed in 3497.7s wall (2 at a time); failed: test_signatures.py+"""+LOG_MAC = """\+2026-10-07T11:24:24.2978030Z [18/64] FAIL test_cut_frames.py 376.9s rc=1+2026-10-07T12:09:46.3813690Z [54/64] FAIL test_showreel.py[2/3] 441.5s rc=1+2026-10-07T12:23:30.8992460Z ============================== test_cut_frames.py FAIL (rc=1) ==============================+2026-10-07T12:23:30.8999020Z ..F..+2026-10-07T12:23:30.9000700Z ======================================================================+2026-10-07T12:23:30.9002810Z FAIL: test_default_render_draws_every_first_frame (__main__.CutFrames.test_default_render_draws_every_first_frame)+2026-10-07T12:23:30.9004780Z ----------------------------------------------------------------------+2026-10-07T12:23:30.9006240Z Traceback (most recent call last):+2026-10-07T12:23:30.9008270Z File "/Users/runner/work/showtime/showtime/skills/showtime/tests/test_cut_frames.py", line 164, in t+2026-10-07T12:23:30.9014740Z self.assertEqual(wrong, [], "frames without their scene's colour (frame, rgb)")+2026-10-07T12:23:30.9022470Z AssertionError: Lists differ: [(10, (255, 255, 255))] != []+2026-10-07T12:23:30.9029300Z FAILED (failures=1)+2026-10-07T12:23:30.9030650Z ============================== test_showreel.py[2/3] FAIL (rc=1) ==============================+2026-10-07T12:23:30.9050800Z .......E............+2026-10-07T12:23:30.9054200Z ERROR: test_template_checks_clean_at_every_aspect (__main__.CheckTests.test_template_checks_clean_at_every_aspect)+2026-10-07T12:23:30.9056540Z The showreel template lays out for 16:9 and recomposes for tall and square frames+2026-10-07T12:23:30.9059700Z Traceback (most recent call last):+2026-10-07T12:23:30.9087980Z raise TimeoutExpired(+2026-10-07T12:23:30.9092950Z subprocess.TimeoutExpired: Command '['/Users/runner/.showtime/venv/bin/python', 'check']' timed out+2026-10-07T12:23:30.9101160Z FAILED (errors=1)+2026-10-07T12:23:30.9102240Z test file result seconds+2026-10-07T12:23:30.9118910Z test_cut_frames.py FAIL 376.9+2026-10-07T12:23:30.9174670Z 62/64 test files passed in 4526.6s wall; failed: test_cut_frames.py, test_showreel.py+"""+SERVER = "https://github.com/o/r"+JOBS = [+ {"id": 1, "name": "nightly (macos-14)", "conclusion": "success", "head_sha": "a" * 40, "steps": []},+ {"id": 2, "name": "nightly (windows-2022)", "conclusion": "failure", "head_sha": "a" * 40,+ "html_url": SERVER + "/actions/runs/9/job/2",+ "steps": [{"name": "Setup (core tier)", "conclusion": "success"},+ {"name": "Full test suite", "conclusion": "failure"}]},+ {"id": 3, "name": "nightly (macos-15-intel)", "conclusion": "failure", "head_sha": "a" * 40,+ "html_url": SERVER + "/actions/runs/9/job/3",+ "steps": [{"name": "Full test suite", "conclusion": "failure"}]},+ {"id": 4, "name": "fast (${{ matrix.os }}, ${{ matrix.shard }}/3)", "conclusion": "skipped", "steps": []},+]+++class FakeGh:+ """Answers the gh calls nightly_report.py makes; records every call (nothing reaches GitHub)."""++ def __init__(self, labelled=(), titled=(), fail_labelled_create=False):+ self.calls, self.labelled, self.titled = [], list(labelled), list(titled)+ self.fail_labelled_create = fail_labelled_create++ def __call__(self, args, stdin=None):+ self.calls.append((list(args), stdin))+ if args[:2] == ["issue", "list"]:+ if "--label" in args:+ return json.dumps([{"number": n, "title": nr.TITLE} for n in self.labelled])+ who = args[args.index("--author") + 1] if "--author" in args else None+ return json.dumps([{"number": x[0], "title": x[1]} for x in self.titled+ if who is None or (x[2] if len(x) > 2 else nr.BOT) == who])+ if args[0] == "api" and args[1].endswith("/logs"):+ return {"2": LOG_WIN, "3": LOG_MAC}[args[1].split("/")[-2]]+ if args[0] == "api":+ return json.dumps({"jobs": JOBS})+ if args[:2] == ["issue", "create"] and "--label" in args and self.fail_labelled_create:+ raise RuntimeError("could not add label: 'ci: nightly' not found")+ return "https://github.com/o/r/issues/30\n"++ def writes(self):+ return [(a, s) for a, s in self.calls if a[0] == "issue" and a[1] in ("create", "comment", "close")]+++def run_main(argv, gh):+ out = io.StringIO()+ with contextlib.redirect_stdout(out):+ rc = nr.main(["--repo", "o/r", "--run-id", "9", "--server", "https://github.com"] + argv, gh=gh)+ return rc, out.getvalue()++[email protected](nr is None, SKIP_REPO)+class NightlyReportScript(unittest.TestCase):+ def test_parse_log_finds_files_tests_and_exception_types(self):+ win = nr.parse_log(LOG_WIN)+ self.assertEqual(list(win), ["test_signatures.py"])+ self.assertEqual(win["test_signatures.py"]["note"], "timed out after 900s")+ self.assertEqual(win["test_signatures.py"]["seconds"], 900.7)+ self.assertEqual(win["test_signatures.py"]["tests"], [])+ mac = nr.parse_log(LOG_MAC)+ self.assertEqual(sorted(mac), ["test_cut_frames.py", "test_showreel.py[2/3]"])+ self.assertEqual(mac["test_cut_frames.py"]["tests"],+ [["FAIL", "test_default_render_draws_every_first_frame", "AssertionError"]])+ self.assertEqual(mac["test_showreel.py[2/3]"]["tests"],+ [["ERROR", "test_template_checks_clean_at_every_aspect", "subprocess.TimeoutExpired"]])+ self.assertEqual(mac["test_cut_frames.py"]["note"], "")++ def test_parse_log_serial_runner_and_noise(self):+ # -j 1: each file's output streams between its start line and its result line+ log = ("=== test_a.py (--fast)\nFAIL: test_one (__main__.A.test_one)\nValueError: bad\n"+ "=== test_a.py FAIL (rc=1) in 3.2s \n"+ "=== test_b.py (--fast)\nFAIL: a_test_that_printed_this (x)\n=== test_b.py PASS in 1.0s\n"+ "FAIL: not_in_a_file (x)\n")+ got = nr.parse_log(log)+ self.assertEqual(list(got), ["test_a.py"])+ self.assertEqual(got["test_a.py"]["tests"], [["FAIL", "test_one", "ValueError"]])+ self.assertEqual(got["test_a.py"]["seconds"], 3.2)+ self.assertEqual(nr.parse_log(""), {})+ self.assertEqual(nr.parse_log("random text\nFAIL: x (y)\n"), {})++ def test_comment_names_jobs_steps_files_and_tests(self):+ body = nr.build_comment(JOBS, {2: LOG_WIN, 3: LOG_MAC}, SERVER + "/actions/runs/9", SERVER + "/commit/abc")+ self.assertIn(SERVER + "/actions/runs/9", body)+ self.assertIn("**windows-2022**: failure, failed step: Full test suite ([log](%s/actions/runs/9/job/2))"+ % SERVER, body)+ self.assertIn("- `test_signatures.py` (timed out after 900s, 901 s)", body)+ self.assertIn("- `test_cut_frames.py` (377 s): `test_default_render_draws_every_first_frame` AssertionError",+ body)+ self.assertIn("`test_template_checks_clean_at_every_aspect` subprocess.TimeoutExpired", body)+ self.assertIn("Passed: macos-14.", body)+ self.assertNotIn("matrix.os", body) # the skipped fast jobs are not nightly jobs+ self.assertNotIn("/Users/runner", body) # nothing but names comes out of a log+ self.assertNotIn("Lists differ", body)++ def test_comment_without_logs_or_failed_jobs(self):+ body = nr.build_comment(JOBS, {}, "U")+ self.assertIn("**macos-15-intel**: failure, failed step: Full test suite", body)+ self.assertNotIn("test_cut_frames", body)+ body = nr.build_comment([JOBS[0]], {}, "U")+ self.assertIn("No nightly job reported a failure", body)++ def test_comment_is_capped_and_inert(self):+ log = "[1/2] FAIL test_x.py 1.0s rc=1 `boom` | <b>[x](y)</b>\n========== test_x.py FAIL (rc=1)\n"+ log += "".join("FAIL: test_%d (m.C.test_%d)\n" % (i, i) for i in range(25))+ files = nr.parse_log(log)+ self.assertEqual(files["test_x.py"]["note"], "boom bx(y)/b")+ body = nr.build_comment([JOBS[2]], {3: log}, "U")+ self.assertIn("and 15 more", body)+ self.assertNotIn("<b>", body)++ def test_decide(self):+ self.assertEqual(nr.decide("failure", True, None), "create")+ self.assertEqual(nr.decide("failure", False, 30), "comment")+ self.assertEqual(nr.decide("success", True, 30), "close")+ self.assertEqual(nr.decide("success", False, 30), "none") # a run on fewer images never closes it+ self.assertEqual(nr.decide("success", True, None), "none")+ self.assertEqual(nr.decide("cancelled", True, 30), "none")+ self.assertEqual(nr.decide("skipped", True, None), "none")++ def test_failure_opens_the_issue_with_its_labels(self):+ gh = FakeGh()+ rc, _ = run_main(["--result", "failure", "--full"], gh)+ self.assertEqual(rc, 0)+ (args, body), = gh.writes()+ self.assertEqual(args[:2], ["issue", "create"])+ self.assertIn("Nightly failing on main", args)+ self.assertEqual([args[i + 1] for i, a in enumerate(args) if a == "--label"], ["ci: nightly", "type: chore"])+ self.assertIn("--body-file", args)+ self.assertIn("https://github.com/o/r/actions/runs/9", body)+ self.assertIn("https://github.com/o/r/commit/" + "a" * 40, body)+ self.assertIn("test_signatures.py", body)++ def test_failure_comments_on_the_open_issue(self):+ gh = FakeGh(labelled=[30])+ run_main(["--result", "failure"], gh)+ (args, body), = gh.writes()+ self.assertEqual(args[:3], ["issue", "comment", "30"])+ self.assertIn("test_cut_frames.py", body)++ def test_green_full_run_closes_it(self):+ gh = FakeGh(labelled=[30])+ run_main(["--result", "success", "--full"], gh)+ (args, _), = gh.writes()+ self.assertEqual(args[:3], ["issue", "close", "30"])+ self.assertIn("Green again: https://github.com/o/r/actions/runs/9\n", args)+ gh = FakeGh(labelled=[30])+ run_main(["--result", "success"], gh)+ self.assertEqual(gh.writes(), [])+ gh = FakeGh(labelled=[30])+ run_main(["--result", "cancelled", "--full"], gh)+ self.assertEqual(gh.writes(), [])++ def test_missing_label_falls_back_to_the_title(self):+ gh = FakeGh(fail_labelled_create=True)+ run_main(["--result", "failure"], gh)+ creates = [a for a, _ in gh.calls if a[:2] == ["issue", "create"]]+ self.assertEqual(len(creates), 2)+ self.assertNotIn("--label", creates[1])+ # found again by its exact title (another issue whose title only contains it does not count)+ gh = FakeGh(titled=[(31, "Re: Nightly failing on main?"), (32, nr.TITLE)])+ run_main(["--result", "failure"], gh)+ (args, _), = gh.writes()+ self.assertEqual(args[:3], ["issue", "comment", "32"])+ # someone else's issue with that title is never adopted (commented on, closed on green)+ gh = FakeGh(titled=[(33, nr.TITLE, "a-stranger")])+ run_main(["--result", "failure"], gh)+ (args, _), = gh.writes()+ self.assertEqual(args[:2], ["issue", "create"])+ search = [a for a, _ in gh.calls if a[:2] == ["issue", "list"] and "--search" in a][0]+ self.assertEqual(search[search.index("--author") + 1], "app/github-actions")+ gh = FakeGh(titled=[(33, nr.TITLE, "a-stranger")])+ run_main(["--result", "success", "--full"], gh)+ self.assertEqual(gh.writes(), [])++ def test_dry_run_writes_nothing(self):+ for labelled, result in (([], "failure"), ([30], "failure"), ([30], "success")):+ gh = FakeGh(labelled=labelled)+ rc, out = run_main(["--result", result, "--full", "--dry-run"], gh)+ self.assertEqual(rc, 0)+ self.assertEqual(gh.writes(), [])+ self.assertIn("would run: gh issue", out)+++if __name__ == "__main__":+ argv = [a for a in sys.argv if a != "--fast"]+ unittest.main(argv=argv, verbosity=2 if "-v" in argv else 1)diff --git a/skills/showtime/tests/test_highlights.py b/skills/showtime/tests/test_highlights.pyindex 8db9919..536abd5 100644--- a/skills/showtime/tests/test_highlights.py+++ b/skills/showtime/tests/test_highlights.py@@ -461,6 +461,11 @@ class ClipsTest(unittest.TestCase):for c in rep["clips"]: # each segment: sound as long as picturesegs = sorted((Path(c["edl"]).parent / "work" / Path(c["edl"]).stem / "segments").glob("seg*.mov"))self.assertTrue(segs, c)+ # the clip's own intermediates: work/<name>/render, not work/<name>/<name> (Windows' 260-character+ # limit with long paths off failed opening the temp WAV there)+ shared = Path(c["edl"]).parent / "work" / Path(c["edl"]).stem+ self.assertTrue((shared / "render").is_dir(), sorted(p.name for p in shared.iterdir()))+ self.assertFalse((shared / Path(c["edl"]).stem).exists())for sp in segs:raw = json.loads(ff.run([ff.ffprobe_path(), "-v", "error", "-show_entries","stream=codec_type,duration", "-of", "json", str(sp)], check=True).stdout)diff --git a/skills/showtime/tests/test_job.py b/skills/showtime/tests/test_job.pyindex a276629..2e2eb68 100644--- a/skills/showtime/tests/test_job.py+++ b/skills/showtime/tests/test_job.py@@ -141,11 +141,14 @@ class JobTests(unittest.TestCase):self.assertIsNone(ledger.windows_path_warning(deep, "x", windows=False))if os.name != "nt":self.assertIsNone(ledger.windows_path_warning(Path("/" + "d" * 300), "x"))- # job init records it in the ledger's warnings (here with Windows simulated and a deep base)+ # job init records it in the ledger's warnings (here with Windows simulated and a deep base). The folder+ # really made is short: a Windows machine with long paths off (LongPathsEnabled=0) cannot create a+ # 260-character one, so the check sees the job's name under a deep simulated base instead.real = ledger.windows_path_warning- base = self.tmp / ("deep-" + "b" * 200)- with mock.patch.object(ledger, "windows_path_warning", lambda j, s: real(j, s, windows=True)):- d, data = ledger.init("long-path-test", base=base)+ deep_base = PureWindowsPath("D:\\" + "\\".join(["b" * 40] * 5))+ with mock.patch.object(ledger, "windows_path_warning",+ lambda j, s: real(deep_base / Path(j).name, s, windows=True)):+ d, data = ledger.init("long-path-test", base=self.tmp / "deep")self.assertTrue(any("260-character" in x for x in data["warnings"]), data["warnings"])cp = showtime("job", "init", "short", "--no-check", "--json", "--base", self.tmp / "shallow")self.assertNotIn("path_warning", json.loads(cp.stdout))diff --git a/skills/showtime/tests/test_looks.py b/skills/showtime/tests/test_looks.pyindex ef2f373..d28e79a 100644--- a/skills/showtime/tests/test_looks.py+++ b/skills/showtime/tests/test_looks.py@@ -17,6 +17,9 @@ marble, metaballs).* WebGL contexts (Chrome keeps about 16 per page): 20 looks in one scene all draw (none white or empty) andcheck fails the page with look_contexts; 20 scenes with a look each draw every scene, give the same frameswith 1 and 3 workers, pass check's shuffled-order probe, and count one look on screen at a time+ * frames read back on a GPU: check reports each look's present ('readback' in a render on a GPU, 'webgl'+ without one); forced on without a GPU the frames are the WebGL ones within a code value, and scenes with a look+ each give the same frames with 1 and 3 workersNeeds a browser. usage: python tests/test_looks.py [--fast] [-v]"""@@ -282,7 +285,14 @@ class LooksTests(unittest.TestCase):<div class="p" style="left:0;width:50%%"><div data-st="tilt-shift" data-src="media/plate.png" data-scale="1" data-blur="2"style="inset:auto;left:0;top:0;width:2400px;height:1350px" id="big"></div></div><div class="p" style="left:50%%;width:50%%"><div data-st="tilt-shift" data-src="media/plate.png" id="small"></div></div>"""- rep = check(self.project("budget", page(body=body.replace("%%", "%"))))+ proj = self.project("budget", page(body=body.replace("%%", "%")))+ rep = check(proj)+ # the summary names each look's cost too (it was only in report.json)+ cp = showtime("check", proj, "--no-determinism", "--no-timeline", "--no-history", "--samples", "2", check=False)+ line = re.search(r"looks\s+(.+ per frame without a GPU \(budget 50 ms\))", cp.stdout)+ self.assertTrue(line, cp.stdout)+ self.assertRegex(line.group(1), r"tilt-shift #big [\d.]+ ms \(over\)")+ self.assertRegex(line.group(1), r"tilt-shift #small [\d.]+ ms(,| per)")items = {x["sel"]: x for x in (rep.get("looks") or {}).get("items", [])}self.assertIn("#big", items, items)self.assertGreater(items["#big"]["ms"], 50, items["#big"])@@ -436,6 +446,51 @@ class LooksTests(unittest.TestCase):self.assertIn("#big", warn[0]["message"])self.assertIn("data-scale", warn[0].get("fix", ""))+ # ------------------------------------------------------------- frames read back on a GPU+ def test_10_gpu_frames_read_back(self):+ """A GPU can hand the screenshot a WebGL canvas it has not finished writing (on the macOS CI runner one look+ came out 3 frames behind, in one frame of 93, so 1 and 3 workers differed): in a render on a GPU each look+ is read back into a 2D canvas the page shows. check reports present 'readback' on a GPU and 'webgl' without+ one; forced on without a GPU (ST_LOOKS_READBACK) the frames are the WebGL ones (within a code value, where+ alpha is rounded), and scenes with a look each (contexts given back and built again) give the same frames+ with 1 and 3 workers."""+ FORCE = "<script>window.ST_LOOKS_READBACK = true;</script>"+ proj = self.project("present", page())+ forced = self.project("present-forced", page(FORCE))+ for p, gpu in ((proj, "off"), (proj, "auto"), (forced, "off")):+ items = (check(p, "--gpu", gpu).get("looks") or {}).get("items") or []+ self.assertEqual(sorted(x["look"] for x in items), sorted(LOOKS), items)+ for x in items:+ self.assertIn(x["software"], (True, False), x)+ if gpu == "off":+ self.assertTrue(x["software"], x)+ want = "readback" if p == forced or not x["software"] else "webgl"+ self.assertEqual(x["present"], want, "gpu %s: %s" % (gpu, x))+ stills = {}+ for name, p in (("webgl", proj), ("readback", forced)):+ r = json.loads(showtime("snap", p, "--at", "0.3,1.2,2.5", "--gpu", "off", "-o", self.tmp / ("present-" + name),+ "--format", "png", "--json").stdout)+ stills[name] = [Path(s["file"]) for s in r["stills"]]+ for a, b in zip(stills["webgl"], stills["readback"]):+ counts, big = panel_diff(a, b)+ self.assertLessEqual(big, 1, "%s: the read-back frame is not the WebGL one (changed pixels per panel %s, "+ "largest change %d)" % (b.name, counts, big))+ scenes = "".join(+ '<section class="scene" data-start="%.1f" data-dur="0.2" style="position:absolute;inset:0;background:#05060f">'+ '<div data-st="%s" data-seed="%d"></div></section>'+ % (i * 0.2, ("liquid-metal", "fluted-glass")[i % 2], i) for i in range(10))+ sp = self.project("present-scenes", page(FORCE, body=scenes), w=320, h=180, dur=2)+ frames = {}+ for w in (1, 3):+ files, frames[w] = self.frames_of(sp, "present-scenes", w, "off")+ self.assertEqual(len(files), 60)+ if w == 1:+ for i in range(0, 60, 6): # every scene's first frame is drawn, not the bare ground+ px = self.gray(files[i], 8, 4)+ self.assertGreater(max(px) - min(px), 20, "scene %d's first frame is flat" % (i // 6))+ diff = [i for i in range(60) if frames[1][i] != frames[3][i]]+ self.assertEqual(diff, [], "read back: frames that differ between 1 and 3 workers: %s" % diff[:12])+if __name__ == "__main__":argv = [a for a in sys.argv if a != "--fast"]diff --git a/skills/showtime/tests/test_os_install.py b/skills/showtime/tests/test_os_install.pynew file mode 100644index 0000000..e49ee57--- /dev/null+++ b/skills/showtime/tests/test_os_install.py@@ -0,0 +1,472 @@+#!/usr/bin/env python3+"""A new user's machine: what clean macOS, Windows and Ubuntu installs ran into.++ * uv and Node.js are checked before setup downloads anything: setup stops with the install line for this OS,+ and `setup --estimate` names what is missing;+ * Windows: a missing Visual C++ 2015-2022 runtime is named (with its download link) before onnxruntime's+ "DLL load failed", in setup, doctor and any command's error;+ * Windows `setup --force`: the launchers run setup with a Python outside the venv it replaces, and files of the+ old venv still in use are moved aside instead of failing with WinError 5;+ * ffmpeg too old for showtime (Ubuntu 22.04's 4.4.2): found by probing the options showtime uses, refused by+ setup's system-ffmpeg pick, warned by doctor;+ * the loudness meter: a run that failed (an ebur128 option an old ffmpeg rejects) is never read as 0 LUFS;+ * setup --estimate says what the install takes on disk, by component, and what grows later;+ * the preview window turns off Chrome's device discovery (the macOS local-network prompt), and every local+ server binds 127.0.0.1;+ * Windows paths: a clip's work folder no longer repeats its name, and temp names shrink near 260 characters.++Light: stdlib, Node for the meter test, no browser, no network (setup's downloads are stubbed out).+usage: python tests/test_os_install.py [--fast] [-v]+"""+from __future__ import annotations++import _isolate # noqa: F401 (run from a scratch folder: never write into the repository)++import argparse+import io+import json+import os+import re+import shutil+import stat+import subprocess+import sys+import tempfile+import unittest+from contextlib import redirect_stdout, redirect_stderr+from pathlib import Path+from unittest import mock++TESTS_DIR = Path(__file__).resolve().parent+SKILL = TESTS_DIR.parent+sys.path.insert(0, str(SKILL / "lib"))++from st import lazy # noqa: E402+from st import platform as plat # noqa: E402+from st.launcher import build_env, showtime_home # noqa: E402++ENV = build_env(showtime_home())+NODE = shutil.which("node", path=ENV.get("PATH")) or shutil.which("node")+POSIX = os.name == "posix"+++def setup_mod():+ return lazy._setup()+++class Tmp(unittest.TestCase):+ def setUp(self):+ self.tmp = Path(tempfile.mkdtemp(prefix="st-os-"))+ self.addCleanup(shutil.rmtree, str(self.tmp), True)+++# ------------------------------------------------------------------ 1. uv / Node.js before any download++class TestPrereqsFirst(Tmp):+ def no_tool(self, missing):+ real = plat.find_tool+ return mock.patch.object(plat, "find_tool", lambda name, path=None: None if name in missing else real(name, path))++ def test_setup_stops_before_downloading(self):+ su = setup_mod()+ home = self.tmp / "home"+ out, err = io.StringIO(), io.StringIO()+ fetched = []+ env = {k: v for k, v in os.environ.items() if k not in ("SHOWTIME_UV", "SHOWTIME_NODE")}+ with mock.patch.dict(os.environ, env, clear=True), self.no_tool({"uv", "node"}), \+ mock.patch.object(su, "fetch", lambda *a, **k: fetched.append(a) or "fetched"), \+ mock.patch.object(su.Installer, "step_ffmpeg", lambda self: fetched.append("ffmpeg") or ("ok", "")), \+ redirect_stdout(out), redirect_stderr(err):+ rc = su.main(["--home", str(home), "--json"])+ self.assertEqual(rc, 1)+ self.assertEqual(fetched, [], "nothing is downloaded when uv or Node.js is missing")+ text = err.getvalue()+ self.assertIn("uv was not found", text)+ self.assertIn("Node.js was not found", text)+ self.assertIn("Nothing was downloaded", text)+ if os.name == "nt":+ self.assertIn("install.ps1", text)+ else:+ self.assertIn("curl -LsSf https://astral.sh/uv/install.sh | sh", text)+ rows = {r["component"]: r for r in json.loads(out.getvalue())["results"]}+ self.assertEqual(rows["uv"]["status"], "fail")+ self.assertEqual(rows["node"]["status"], "fail")+ self.assertNotIn("ffmpeg", rows)++ def test_estimate_names_what_is_missing(self):+ su = setup_mod()+ out = io.StringIO()+ env = {k: v for k, v in os.environ.items() if k != "SHOWTIME_UV"}+ with mock.patch.dict(os.environ, env, clear=True), self.no_tool({"uv"}), redirect_stdout(out):+ self.assertEqual(su.main(["--home", str(self.tmp / "h"), "--estimate"]), 0)+ self.assertIn("Install first", out.getvalue())+ self.assertIn("uv was not found", out.getvalue())+ out = io.StringIO()+ with mock.patch.dict(os.environ, env, clear=True), self.no_tool({"uv"}), redirect_stdout(out):+ su.main(["--home", str(self.tmp / "h"), "--estimate", "--json"])+ self.assertEqual(json.loads(out.getvalue())["missing"], ["uv"])+ # --skip python needs no uv+ self.assertEqual([m["tool"] for m in su.missing_prereqs(["python", "node"])], [])++ def test_old_node_is_named(self):+ su = setup_mod()+ with mock.patch.object(su, "find_node", lambda: ("/x/node", (18, 19, 0))), \+ mock.patch.object(su, "find_uv", lambda: "/x/uv"):+ miss = su.missing_prereqs()+ self.assertEqual([m["tool"] for m in miss], ["node"])+ self.assertIn("18.19.0 is too old", miss[0]["problem"])+++# ------------------------------------------------------------------ 2. Windows: the Visual C++ runtime++class TestVcRuntime(Tmp):+ def test_nothing_to_say_off_windows(self):+ if os.name == "nt":+ self.skipTest("checks the other platforms")+ self.assertEqual(plat.missing_vc_runtime(), [])+ self.assertIsNone(plat.explain_dll_error("DLL load failed while importing onnxruntime_pybind11_state"))++ def test_dll_error_becomes_the_runtime_link(self):+ msg = "DLL load failed while importing onnxruntime_pybind11_state: The specified module could not be found."+ with mock.patch.object(plat, "IS_WINDOWS", True), \+ mock.patch.object(plat, "missing_vc_runtime", lambda python=None: ["msvcp140.dll"]):+ fix = plat.explain_dll_error(msg)+ from st import cli+ err = cli.explain(ImportError(msg, name="onnxruntime.capi.onnxruntime_pybind11_state"))+ self.assertIn(plat.VC_REDIST_URL, fix)+ self.assertIn("msvcp140.dll", fix)+ self.assertIn(plat.VC_REDIST_URL, err.format(color=False))+ self.assertIn("could not load its DLLs", err.format(color=False))+ self.assertIn("vcruntime140_1.dll", plat.VC_CHECK_CODE)++ def test_doctor_names_it_before_the_imports(self):+ from st import doctor+ d = doctor.Doctor(argparse.Namespace(verify=False, verbose=False, quick=True))+ d.p = dict(d.p, venv_python=Path(sys.executable))+ fake = json.dumps(dict({"python": "3.12.9"}, **{m: {"ok": m != "onnxruntime", "version": "1",+ "error": "ImportError: DLL load failed while importing x"}+ for m in doctor.REQUIRED_MODULES}))+ with mock.patch.object(plat, "IS_WINDOWS", True), \+ mock.patch.object(plat, "missing_vc_runtime", lambda python=None: ["msvcp140.dll"]), \+ mock.patch.object(d, "_run_streaming", lambda *a, **k: (fake, "")):+ d.check_python()+ rows = {r["check"]: r for r in d.rows}+ self.assertEqual(rows["vc++ runtime"]["status"], "fail")+ self.assertIn(plat.VC_REDIST_URL, rows["vc++ runtime"]["hint"])+ self.assertIn(plat.VC_REDIST_URL, rows["python packages"]["hint"], "the import failure points to the runtime")+ order = [r["check"] for r in d.rows]+ self.assertLess(order.index("vc++ runtime"), order.index("python packages"))+++# ------------------------------------------------------------------ 3. Windows: setup --force and its own venv++class TestForceVenv(Tmp):+ def test_files_in_use_move_aside(self):+ su = setup_mod()+ venv = self.tmp / "venv"+ (venv / "Scripts").mkdir(parents=True)+ (venv / "Lib" / "site-packages" / "numpy").mkdir(parents=True)+ busy = venv / "Scripts" / "python.exe"+ busy.write_bytes(b"MZ")+ (venv / "Lib" / "site-packages" / "numpy" / "core.pyd").write_bytes(b"x")+ (venv / "pyvenv.cfg").write_text("home = x\n")+ real_unlink = os.unlink++ def unlink(p, *a, **k): # Windows: a running python.exe cannot be deleted (WinError 5)+ if os.path.basename(str(p)) == "python.exe":+ raise PermissionError(13, "Access is denied", str(p))+ return real_unlink(p, *a, **k)+ trash = self.tmp / "cache" / "trash"+ with mock.patch("os.unlink", unlink), mock.patch("os.remove", unlink):+ moved = su.rmtree_aside(venv, trash)+ self.assertFalse(venv.exists(), "the old venv is gone, so `uv venv` can make a new one")+ self.assertEqual([Path(m).name for m in moved], ["python.exe"])+ self.assertEqual(len(list(trash.iterdir())), 1)+ su.empty_trash(trash) # a later setup deletes what was moved aside+ self.assertEqual(list(trash.iterdir()), [])++ def test_a_file_that_cannot_move_names_the_cause(self):+ su = setup_mod()+ home = self.tmp / "home"+ (home / "venv" / "Scripts").mkdir(parents=True)+ (home / "venv" / "Scripts" / "python.exe").write_bytes(b"MZ")+ args = su.parse_args(["--home", str(home), "--force"])+ inst = su.Installer(args)+ with mock.patch.object(su, "find_uv", lambda: "/x/uv"), \+ mock.patch.object(su, "rmtree_aside", mock.Mock(side_effect=PermissionError(13, "Access is denied"))), \+ redirect_stderr(io.StringIO()):+ status, detail = inst.step_python()+ self.assertEqual(status, "fail")+ self.assertIn("a running showtime process uses it", detail)+ self.assertIn("MCP server", detail)++ def test_launchers_run_setup_outside_the_venv(self):+ cmd = (SKILL / "bin" / "showtime.cmd").read_text(encoding="utf-8")+ self.assertLess(cmd.index('if /i "%~1"=="setup" goto findpy'), cmd.index('goto venv'))+ self.assertIn(":findpy", cmd)+ ps1 = (SKILL / "bin" / "showtime.ps1").read_text(encoding="utf-8")+ self.assertIn("-not $isSetup", ps1)+ for f in ("showtime.cmd", "showtime.ps1"):+ self.assertIn(b"\r\n", (SKILL / "bin" / f).read_bytes(), "%s keeps CRLF line ends" % f)++ @unittest.skipUnless(POSIX and shutil.which("sh"), "runs the POSIX launcher")+ def test_posix_launcher_skips_the_windows_venv_for_setup(self):+ home = self.tmp / "home"+ fake = home / "venv" / "Scripts" / "python.exe" # Git Bash on Windows: the venv's python.exe+ fake.parent.mkdir(parents=True)+ fake.write_text("#!/bin/sh\necho venv-python \"$@\"\n")+ fake.chmod(fake.stat().st_mode | stat.S_IEXEC)+ env = dict(os.environ, SHOWTIME_HOME=str(home))+ env.pop("SHOWTIME_PYTHON", None)+ run = lambda *a: subprocess.run(["sh", str(SKILL / "bin" / "showtime")] + list(a), env=env, # noqa: E731+ stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8", timeout=120)+ self.assertIn("venv-python", run("version").stdout, "other commands still take the venv's python")+ cp = run("setup", "--estimate")+ self.assertNotIn("venv-python", cp.stdout + cp.stderr, "setup runs with a Python outside the venv")+ self.assertIn("showtime setup --tier", cp.stdout)+++# ------------------------------------------------------------------ 4. an ffmpeg too old for showtime++OLD_FFMPEG = r"""#!/bin/sh+# ffmpeg 4.4.2 as Ubuntu 22.04 ships it: the filters are there, the newer options are not+case "$*" in+ *-version*) echo "ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers"; exit 0;;+ *-filters*) for f in subtitles ass drawtext loudnorm ebur128 xfade scale overlay amix sidechaincompress silencedetect palettegen zscale arnndn; do echo " T.. $f A->A x"; done; exit 0;;+ *-encoders*) for e in libx264 aac; do echo " V..... $e x"; done; exit 0;;+ *"bsf=setts"*) echo "setts_bsf AVOptions:"; echo " -ts <string> ...VAS..B.. set expression"; exit 0;;+ *"filter=ebur128"*) echo " framelog <int> ..FVA...... force frame logging level"; echo " info 32"; echo " verbose 40"; exit 0;;+ *"-h long"*) echo "-filter_complex graph"; exit 0;;+esac+exit 0+"""++[email protected](POSIX, "uses a shell-script stand-in for ffmpeg")+class TestOldFfmpeg(Tmp):+ def fake(self):+ f = self.tmp / "bin" / "ffmpeg"+ f.parent.mkdir(parents=True)+ f.write_text(OLD_FFMPEG)+ f.chmod(0o755)+ (self.tmp / "bin" / "ffprobe").write_text("#!/bin/sh\nexit 0\n")+ (self.tmp / "bin" / "ffprobe").chmod(0o755)+ return str(f)++ def test_probe_and_verdict(self):+ from st import ff+ exe = self.fake()+ feats = ff.probe_features(exe)+ self.assertEqual(feats, {"setts duration": False, "display_rotation": False, "ebur128 framelog=quiet": False})+ old = ff.too_old("4.4.2-0ubuntu0.22.04.1", feats)+ self.assertEqual(old[0], "version 4.4.2-0ubuntu0.22.04.1 < 6.0")+ self.assertIn("display_rotation", old)+ self.assertEqual(ff.too_old("N-112345-gabc", feats)[:1], ["setts duration"], "a git build: the probes decide")+ self.assertEqual(ff.too_old("7.1", {"setts duration": True, "display_rotation": True}), [])+ real = ff.resolve().ffmpeg+ self.assertEqual(ff.too_old(ff._version_of(real), ff.probe_features(real)), [], "showtime's own ffmpeg is fine")++ def test_setup_refuses_it_and_doctor_warns(self):+ su = setup_mod()+ exe = self.fake()+ args = su.parse_args(["--home", str(self.tmp / "home"), "--ffmpeg", "system"])+ inst = su.Installer(args)+ ok, req, _rec, v = inst._ff_check(exe)+ self.assertFalse(ok)+ self.assertTrue(req[0].startswith("too old: version 4.4.2"), req)+ with mock.patch("st.ff._system_candidates", lambda name: [exe]), redirect_stderr(io.StringIO()):+ status, detail = inst.step_ffmpeg()+ self.assertEqual(status, "fail")+ self.assertIn("showtime setup --ffmpeg static", detail)+ from st import ff, doctor+ with mock.patch.dict(os.environ, {"SHOWTIME_FFMPEG": exe, "SHOWTIME_HOME": str(self.tmp / "home")}):+ ff._cached = None+ try:+ d = doctor.Doctor(argparse.Namespace(verify=False, verbose=False, quick=True))+ d.check_ffmpeg()+ finally:+ ff._cached = None+ rows = {r["check"]: r for r in d.rows}+ self.assertEqual(rows["ffmpeg version"]["status"], "warn")+ self.assertIn("showtime setup --ffmpeg static", rows["ffmpeg version"]["hint"])+++# ------------------------------------------------------------------ 5. a failed loudness reading is not 0 LUFS++# ffmpeg 4.x rejects `framelog=quiet` and still prints a Summary of zeros ("I: 0.0 LUFS"): the stand-in does the same+# and passes every other call to the real ffmpeg+METER_WRAPPER = r"""#!/bin/sh+for a in "$@"; do+ case "$a" in+ *framelog=quiet*|*%s*)+ echo "[ebur128 @ 0x1] Unable to parse option value \"quiet\"" >&2+ echo "[AVFilterGraph @ 0x2] Error initializing filter 'ebur128' with args '$a'" >&2+ printf '[Parsed_ebur128_0 @ 0x3] Summary:\n\n Integrated loudness:\n I: 0.0 LUFS\n Threshold: 0.0 LUFS\n\n Loudness range:\n LRA: 0.0 LU\n\n True peak:\n Peak: -inf dBFS\n' >&2+ echo "Conversion failed!" >&2+ exit 1;;+ esac+done+exec "%s" "$@"+"""++[email protected](POSIX and NODE, "a shell-script ffmpeg stand-in and Node.js")+class TestLoudnessReading(Tmp):+ def wrapper(self, name, also_reject):+ from st import ff+ f = self.tmp / name / "ffmpeg"+ f.parent.mkdir(parents=True)+ f.write_text(METER_WRAPPER % (also_reject, ff.resolve().ffmpeg))+ f.chmod(0o755)+ return str(f)++ def meter(self, ffmpeg_exe, wav):+ js = ("import { ebur128 } from %s; import { master } from %s;\n"+ "const m = await ebur128(%s);\n"+ "const r = await master(%s, %s, { target: -14, tp: -1, useModule: false });\n"+ "console.log(JSON.stringify({ m, r }));" % (+ json.dumps((SKILL / "scripts" / "lib" / "ff.mjs").as_uri()),+ json.dumps((SKILL / "scripts" / "lib" / "audio.mjs").as_uri()),+ json.dumps(str(wav)), json.dumps(str(wav)), json.dumps(str(self.tmp / ("out-%s.wav" % Path(ffmpeg_exe).parent.name)))))+ cp = subprocess.run([NODE, "--input-type=module", "-e", js], env=dict(ENV, SHOWTIME_FFMPEG=ffmpeg_exe),+ stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8", timeout=180)+ self.assertEqual(cp.returncode, 0, cp.stderr[-2000:])+ return json.loads(cp.stdout.strip().splitlines()[-1])++ def test_old_ffmpeg_falls_back_and_a_failed_meter_is_null(self):+ from st import ff+ wav = self.tmp / "tone.wav"+ subprocess.run([ff.resolve().ffmpeg, "-v", "error", "-y", "-f", "lavfi", "-i", "sine=f=440:d=3",+ "-af", "volume=-12dB", "-ac", "2", str(wav)], check=True, timeout=60)+ # 1) the option is rejected: the meter reads again without it and gets the real level+ got = self.meter(self.wrapper("old", "never-matches"), wav)+ self.assertIsNotNone(got["m"]["I"])+ self.assertLess(got["m"]["I"], -10, got["m"])+ self.assertNotIn("error", got["m"])+ self.assertEqual(got["r"]["mode"] in ("linear", "limited"), True, got["r"])+ # 2) every form fails: null and a reason, never 0 LUFS; the master keeps the sound as mixed and says why+ got = self.meter(self.wrapper("broken", "ebur128="), wav)+ self.assertIsNone(got["m"]["I"])+ self.assertIsNone(got["m"]["TP"])+ self.assertIn("ebur128", got["m"]["error"])+ self.assertEqual(got["r"]["mode"], "unmeasured")+ self.assertIsNone(got["r"]["lufs"])+ self.assertIn("error", got["r"])++ def test_python_readers_ignore_a_failed_run(self):+ from st import ff+ from st.audio import meter+ exe = self.wrapper("broken-py", "ebur128=")+ wav = self.tmp / "t.wav"+ subprocess.run([ff.resolve().ffmpeg, "-v", "error", "-y", "-f", "lavfi", "-i", "sine=f=440:d=1", str(wav)],+ check=True, timeout=60)+ with mock.patch.dict(os.environ, {"SHOWTIME_FFMPEG": exe}):+ ff._cached = None+ try:+ self.assertEqual(ff.audio_levels(wav), {"integrated_lufs": None, "true_peak_dbtp": None})+ self.assertEqual(meter.ffmpeg_ebur128(wav)["integrated_lufs"], None)+ finally:+ ff._cached = None+++# ------------------------------------------------------------------ 9. what the install takes on disk++class TestDiskEstimate(Tmp):+ def test_estimate_has_the_installed_size(self):+ su = setup_mod()+ man = su.load_manifest()+ with mock.patch.object(su, "system_browsers", lambda: []):+ est = su.install_estimate("core", [], self.tmp / "empty", man)+ for part in ("python", "node", "ffmpeg", "models", "browser"):+ self.assertIn(part, est["disk"], est["disk"])+ self.assertEqual(est["disk_bytes"], sum(est["disk"].values()))+ self.assertGreater(est["disk_bytes"], 1.15e9, "unpacked, the install is well over its download")+ self.assertGreater(est["disk_bytes"], 2 * est["total_bytes"])+ self.assertIn("on disk", su.describe_estimate(est))+ self.assertIn("Python packages", su.describe_disk(est))+ for key in ("mac-arm64", "mac-x64", "win-x64", "linux-x64", "linux-arm64"):+ self.assertGreater(su.packages_bytes(man, "python", key, "disk"), 5e8, key)+ self.assertGreater(su.packages_bytes(man, "node", key, "disk"), 2e8, key)+ ids = {c["id"] for cands in man["ffmpeg"].values() if isinstance(cands, list) for c in cands}+ self.assertEqual(ids - set(man["disk"]["ffmpeg"]), set(), "every ffmpeg build has its installed size")+ # an installed home has nothing left to take+ out = io.StringIO()+ with redirect_stdout(out):+ su.main(["--home", str(self.tmp / "empty"), "--estimate"])+ self.assertIn("on disk once installed", out.getvalue())+ self.assertIn("Later:", out.getvalue())+++# ------------------------------------------------------------------ 10. the macOS local-network prompt++class TestLocalOnly(unittest.TestCase):+ def test_preview_window_has_no_device_discovery(self):+ src = (SKILL / "scripts" / "preview.mjs").read_text(encoding="utf-8")+ m = re.search(r"PREVIEW_DISABLED_FEATURES = '([^']+)'", src)+ self.assertTrue(m)+ for feat in ("MediaRouter", "DialMediaRouteProvider"):+ self.assertIn(feat, m.group(1).split(","))+ self.assertIn("--disable-features=${PREVIEW_DISABLED_FEATURES}", src)++ def test_servers_bind_loopback(self):+ for rel, pat in (("scripts/server.mjs", r"const host = o\.host \|\| '127\.0\.0\.1'"),+ ("scripts/lib/review/server.mjs", r"listen\(pt, '127\.0\.0\.1'\)"),+ ("scripts/lib/studio/server.mjs", r"listen\(p, '127\.0\.0\.1'\)"),+ ("scripts/lib/capture.mjs", r"listen\(0, '127\.0\.0\.1'")):+ self.assertRegex((SKILL / rel).read_text(encoding="utf-8"), pat, rel)+ for p in (SKILL / "lib" / "st").rglob("*.py"):+ text = p.read_text(encoding="utf-8")+ self.assertNotRegex(text, r"\.bind\(\(\s*['\"](0\.0\.0\.0)?['\"]", p.name)+++# ------------------------------------------------------------------ 7. Windows paths near 260 characters++class TestWindowsPaths(Tmp):+ def test_long_temp_names_shrink(self):+ from st import common+ deep = self.tmp / ("d" * 200) / "program_norm.wav"+ with mock.patch.object(common, "_WINDOWS", True):+ tmp = common.part_path(deep)+ self.assertLess(len(str(tmp)), len(str(deep)) + 20)+ self.assertTrue(tmp.name.endswith(".part.wav"), tmp.name)+ self.assertNotIn("program_norm", tmp.name)+ short = common.part_path(self.tmp / "program_norm.wav")+ self.assertIn("program_norm", short.name, "short paths keep the readable name")++ def test_clip_work_folder_does_not_repeat_its_name(self):+ src = (SKILL / "lib" / "st" / "footage" / "render_edl.py").read_text(encoding="utf-8")+ self.assertIn('shared / (out.stem if out.stem != edl_path.stem else "render")', src)+++# ------------------------------------------------------------------ 11. the dom template at 10 s++class TestDomTemplateCopy(unittest.TestCase):+ """`showtime new dom x --duration 10` scales every beat by 2/3: the hook is then on screen about 2 s, its+ supporting line and the feature lines under 2 s, so they stay short enough for the phone check's reading time+ (17 characters/s or 3 words/s, plus 0.3 s). Verified with `showtime check` on 10 s projects in four looks."""++ def test_lines_fit_their_time_at_10_s(self):+ html = (SKILL / "templates" / "dom" / "index.html").read_text(encoding="utf-8")++ def text(pattern):+ m = re.search(pattern, html, re.S)+ self.assertTrue(m, pattern)+ return re.sub(r"\s+", " ", re.sub(r"<[^>]+>", " ", m.group(1))).strip()++ def need(s):+ return 0.3 + max(len(s) / 17.0, len(s.split()) / 3.0)+ # on screen at 10 s (measured by check with the cobalt look), less a margin for slower motion styles+ for pattern, held in ((r'<h1 class="t-hero headline"[^>]*>(.*?)</h1>', 2.1), (r'<p class="sub"[^>]*>(.*?)</p>', 1.8),+ (r'<h2 class="t-display head"[^>]*>(.*?)</h2>', 2.1)):+ s = text(pattern)+ self.assertLessEqual(need(s), held - 0.25, "%r needs %.2f s" % (s, need(s)))+ cards = [re.sub(r"<[^>]+>", "", p) for p in re.findall(r'<div class="txt"><h3>[^<]*</h3><p>(.*?)</p>', html)]+ self.assertEqual(len(cards), 3)+ for s in cards:+ self.assertLessEqual(need(s), 1.8 - 0.15, "%r needs %.2f s" % (s, need(s)))+++if __name__ == "__main__":+ argv = [a for a in sys.argv if a != "--fast"]+ prog = unittest.main(argv=argv, exit=False, verbosity=2 if "-v" in argv else 1)+ sys.exit(0 if prog.result.wasSuccessful() else 1)diff --git a/skills/showtime/tests/test_pacing.py b/skills/showtime/tests/test_pacing.pyindex a48d61c..eacaa4f 100644--- a/skills/showtime/tests/test_pacing.py+++ b/skills/showtime/tests/test_pacing.py@@ -90,6 +90,17 @@ PROJECTS = {"same": ('<section class="scene" id="s1" data-start="0" data-dur="3"><ul><li>One sample item</li><li>Two sample items</li><li>Three sample items</li></ul></section>', 3, {}),"stagger": ('<section class="scene" id="s1" data-start="0" data-dur="3"><ul class="stag"><li style="--i:0">One sample item</li>''<li style="--i:1">Two sample items</li><li style="--i:2">Three sample items</li></ul></section>', 3, {}),+ # three lines invisible from frame 0, each entering later by its own keyframes (an adopted CSS design: one 8 s+ # animation each, opacity 0 until 3.0 / 4.6 / 6.2 s): not a same-frame entrance+ "keyframed": ('<style>@keyframes k1{0%,37.5%{opacity:0}40%,100%{opacity:1}}@keyframes k2{0%,57.5%{opacity:0}60%,100%{opacity:1}}'+ '@keyframes k3{0%,77.5%{opacity:0}80%,100%{opacity:1}}.kf p{margin:0;font:500 6cqh/1.3 serif;color:var(--fg)}</style>'+ '<section class="scene" id="s1" data-start="0" data-dur="8"><div class="kf"><p style="animation:k1 8s linear both">One '+ 'sample line</p><p style="animation:k2 8s linear both">Two sample lines</p><p style="animation:k3 8s linear both">'+ 'Three sample lines</p></div></section>', 8, {}),+ # the same keyframes all holding to 3.0 s: they do land together, at frame 90+ "keyframed-same": ('<style>@keyframes k1{0%,37.5%{opacity:0}40%,100%{opacity:1}}.kf p{margin:0;font:500 6cqh/1.3 serif;'+ 'color:var(--fg);animation:k1 8s linear both}</style><section class="scene" id="s1" data-start="0" data-dur="8">'+ '<div class="kf"><p>One sample line</p><p>Two sample lines</p><p>Three sample lines</p></div></section>', 8, {}),}@@ -220,6 +231,25 @@ class PacingChecks(unittest.TestCase):self.assertIn("frame 3", same[0]["fix"])self.assertEqual(self.codes("stagger", "same_frame_entrance"), [])+ def test_dom_template_lengthened_keeps_moving(self):+ """`new dom --duration 24`: the hero (data-stretch="spread") spreads its beats over its longer length, so check+ finds no slow scene (it held still for 5.4 s after its last change) and the cut still builds after Generate."""+ p = self.tmp / "dom24"+ showtime("new", "dom", p, "--duration", "24", "--look", "template")+ html = (p / "index.html").read_text(encoding="utf-8")+ self.assertIn('data-dur="10.88"', html)+ self.assertIn('data-st="typewriter" data-at="5.36"', html)+ rep = json.loads(showtime("check", p, "--json", "--no-determinism", check=False).stdout)+ bad = [(f["code"], f["message"][:100]) for f in rep["findings"] if f["severity"] in ("error", "warning")]+ self.assertEqual(bad, [])++ def test_keyframed_entrances_count_from_where_they_appear(self):+ # opacity 0 from frame 0 is not the entrance: the keyframe where it starts rising is+ self.assertEqual(self.codes("keyframed", "same_frame_entrance"), [], self.rep["keyframed"]["findings"])+ same = self.codes("keyframed-same", "same_frame_entrance")+ self.assertEqual(len(same), 1, self.rep["keyframed-same"]["findings"])+ self.assertIn("frame 90", same[0]["message"])+if __name__ == "__main__":argv = [a for a in sys.argv if a != "--fast"]diff --git a/skills/showtime/tests/test_poster_colour.py b/skills/showtime/tests/test_poster_colour.pynew file mode 100644index 0000000..349a22d--- /dev/null+++ b/skills/showtime/tests/test_poster_colour.py@@ -0,0 +1,230 @@+#!/usr/bin/env python3+"""JPEG stills from a video come out in the video's colours.++A final is H.264 BT.709 tv range; a JPEG is read by every viewer as BT.601 full range. A still pulled from the+video straight into a JPEG (ffmpeg -frames:v 1 x.jpg) kept the 709 matrix under JPEG's 601 tag, so saturated+colours shifted: example 28's purple-to-orange poster came out ~6 levels darker than its frame (qa+poster_mismatch). Each patch of a known frame, encoded as showtime encodes finals, must come back within ~2 levels+of its source RGB through every path that writes a JPEG still: deliver poster (also the render's auto poster),+deliver thumb, qa's review frames, the render's own poster.jpg and snap. qa's poster_mismatch compares the poster+with the frame it was taken from (the same seek, not one rounded to 3 places).++usage: python tests/test_poster_colour.py [--fast] [-v] (--fast skips the renders and snap: no browser)+"""+from __future__ import annotations++import _isolate # noqa: F401 (run from a scratch folder: never write into the repository)++import json+import shutil+import subprocess+import sys+import tempfile+import unittest+from pathlib import Path++TESTS_DIR = Path(__file__).resolve().parent+SKILL = TESTS_DIR.parent+LAUNCHER = SKILL / "lib" / "st" / "launcher.py"+sys.path.insert(0, str(SKILL / "lib"))++from st import ff # noqa: E402+from st.launcher import build_env, showtime_home # noqa: E402++FAST = "--fast" in sys.argv+ENV = build_env(showtime_home())++W, H, BAND = 180, 320, 64 # a 9:16 frame of five flat bands, 64 px each+PATCHES = [("purple", (122, 42, 213)), ("orange", (255, 122, 26)), ("grey", (128, 128, 128)),+ ("navy", (20, 24, 70)), ("green", (40, 200, 90))]+# levels off the source, means over each patch's inside: per channel (two 8-bit Y'CbCr hops, the video's BT.709+# tv range then the JPEG's BT.601 full range, cost up to 3 on a channel at 255; the video frame alone is 2 off)+# and in luma; the BT.709 frame in a JPEG unconverted was ~19 off in purple's green and ~6 in its luma+TOL, TOL_LUMA = 3.0, 2.0+# the render's own encode (scripts/render.mjs TO_709, TAG_709, TAGS_709)+FINAL_VF = ("scale=out_color_matrix=bt709:out_range=tv:flags=accurate_rnd+full_chroma_int,format=yuv420p,"+ "setparams=range=tv:color_primaries=bt709:color_trc=bt709:colorspace=bt709")+FINAL_TAGS = ["-colorspace", "bt709", "-color_primaries", "bt709", "-color_trc", "bt709", "-color_range", "tv"]+++def showtime(*args, check=True, timeout=600):+ cp = subprocess.run([sys.executable, str(LAUNCHER)] + [str(a) for a in args], env=ENV, stdout=subprocess.PIPE,+ stderr=subprocess.PIPE, encoding="utf-8", errors="replace", timeout=timeout)+ if check and cp.returncode != 0:+ raise AssertionError("showtime %s failed (rc=%d):\n%s\n%s" % (" ".join(map(str, args)), cp.returncode,+ cp.stdout[-3000:], cp.stderr[-3000:]))+ return cp+++def rgb_of(path: Path) -> bytes:+ """The picture as rgb24, W x H. A JPEG is read as a viewer reads one (BT.601 full range, whatever its tags);+ a PNG is RGB already."""+ jpeg = path.suffix.lower() in (".jpg", ".jpeg")+ vf = ("scale=%d:%d:in_color_matrix=bt601:in_range=pc:flags=accurate_rnd+full_chroma_int,format=rgb24" if jpeg+ else "scale=%d:%d,format=rgb24") % (W, H)+ cp = subprocess.run([ff.ffmpeg_path(), "-hide_banner", "-nostdin", "-loglevel", "error", "-i", str(path),+ "-frames:v", "1", "-vf", vf, "-f", "rawvideo", "-"], stdout=subprocess.PIPE, timeout=60)+ assert len(cp.stdout) == W * H * 3, "could not decode %s" % path+ return cp.stdout+++def patch_means(buf: bytes):+ """{name: (r, g, b)} means over each band's inside (away from the edges chroma subsampling blurs)."""+ out = {}+ for k, (name, _) in enumerate(PATCHES):+ s, n = [0, 0, 0], 0+ for y in range(k * BAND + 16, k * BAND + BAND - 16):+ row = y * W * 3+ for x in range(30, W - 30):+ i = row + 3 * x+ s[0] += buf[i]+ s[1] += buf[i + 1]+ s[2] += buf[i + 2]+ n += 1+ out[name] = tuple(v / n for v in s)+ return out+++class Tmp(unittest.TestCase):+ def setUp(self):+ self.tmp = Path(tempfile.mkdtemp(prefix="st-poster-colour-"))++ def tearDown(self):+ shutil.rmtree(str(self.tmp), ignore_errors=True)++ def assertPatches(self, image: Path, what: str):+ got = patch_means(rgb_of(image))+ luma = lambda c: 0.2126 * c[0] + 0.7152 * c[1] + 0.0722 * c[2] # noqa: E731+ worst = max(abs(g - s) for name, src in PATCHES for g, s in zip(got[name], src))+ worst_y = max(abs(luma(got[name]) - luma(src)) for name, src in PATCHES)+ msg = "%s: %.1f levels off the source in a channel, %.1f in luma (%s)" % (what, worst, worst_y, ", ".join(+ "%s %s vs %s" % (n, tuple(round(v) for v in got[n]), s) for n, s in PATCHES))+ self.assertLessEqual(worst, TOL, msg)+ self.assertLessEqual(worst_y, TOL_LUMA, msg)+ return worst+++class StillsFromAVideo(Tmp):+ """deliver poster, deliver thumb and qa's frames, from a final-like video."""++ def setUp(self):+ super().setUp()+ raw = self.tmp / "frame.rgb"+ raw.write_bytes(b"".join(bytes(rgb) * (W * BAND) for _, rgb in PATCHES))+ self.src = self.tmp / "frame.png"+ ff.run_ffmpeg(["-f", "rawvideo", "-pix_fmt", "rgb24", "-s", "%dx%d" % (W, H), "-i", raw, "-frames:v", "1", self.src])+ self.video = self.tmp / "final.mp4"+ ff.run_ffmpeg(["-loop", "1", "-framerate", "30", "-t", "1", "-i", self.src, "-vf", FINAL_VF, "-c:v", "libx264",+ "-preset", "veryfast", "-crf", "10", "-pix_fmt", "yuv420p"] + FINAL_TAGS + [self.video])++ def test_the_source_and_the_video_frame(self):+ self.assertPatches(self.src, "source PNG")+ png = self.tmp / "frame-out.png"+ ff.run_ffmpeg(["-ss", "0.5", "-i", self.video, "-frames:v", "1", png])+ self.assertPatches(png, "video frame as PNG")++ def test_deliver_poster_jpeg(self):+ out = self.tmp / "poster.jpg"+ showtime("deliver", "poster", self.video, "--at", "0.5", "--out", out)+ self.assertPatches(out, "deliver poster --out poster.jpg")++ def test_deliver_thumb_jpeg(self):+ out = self.tmp / "thumb.jpg"+ showtime("deliver", "thumb", self.video, "--at", "0.5", "--size", "%dx%d" % (W, H), "-o", out)+ self.assertPatches(out, "deliver thumb -o thumb.jpg")++ def test_qa_review_frames(self):+ from st.qa import media+ [jpg] = media.extract_frames(self.video, [0.5], self.tmp / "frames", duration=1.0, fps=30)+ self.assertEqual(jpg.suffix, ".jpg")+ self.assertPatches(jpg, "qa review frame")+ [(_, run)] = media.extract_run(self.video, 15, 1, 30, self.tmp / "run", duration=1.0)+ self.assertPatches(run, "qa cut frame")++ def test_gradient_stills_as_bright_as_the_source(self):+ """Example 28's purple-to-orange gradient: ffmpeg's default conversion out of 4:2:0 drew a PNG still+ 1.5 levels darker than its source (exact rounding and full chroma interpolation: equal)."""+ from st.qa import media+ src, v = self.tmp / "grad.png", self.tmp / "grad.mp4"+ ff.run_ffmpeg(["-f", "lavfi", "-i", "gradients=s=%dx%d:c0=0x7a2bd6:c1=0xff7a1a:x0=0:y0=0:x1=0:y1=%d:nb_colors=2,"+ "format=rgb24" % (W, H, H), "-frames:v", "1", src])+ ff.run_ffmpeg(["-loop", "1", "-framerate", "30", "-t", "1", "-i", src, "-vf", FINAL_VF, "-c:v", "libx264",+ "-preset", "veryfast", "-crf", "10", "-pix_fmt", "yuv420p"] + FINAL_TAGS + [v])+ want = media.mean_luma(src)+ self.assertLess(abs(media.mean_luma(v, at=0.5) - want), 0.75)+ for name in ("poster.png", "poster.jpg"):+ showtime("deliver", "poster", v, "--at", "0.5", "--out", self.tmp / name)+ [frame] = media.extract_frames(v, [0.5], self.tmp / "frames", duration=1.0, fps=30)+ showtime("snap", v, "--at", "0.5", "-o", self.tmp / "snap.png")+ for p in (self.tmp / "poster.png", self.tmp / "poster.jpg", frame, self.tmp / "snap.png"):+ self.assertLess(abs(media.mean_luma(p) - want), 0.75, "%s: %.2f vs the source's %.2f" % (+ p.name, media.mean_luma(p), want))++ def test_qa_poster_match_compares_like_with_like(self):+ from st.qa import media+ out = self.tmp / "poster.jpg"+ showtime("deliver", "poster", self.video, "--at", "0.5", "--out", out)+ self.assertLess(abs(media.mean_luma(out) - media.mean_luma(self.video, at=0.5)), 1.0)+ (self.tmp / "render.json").write_text(json.dumps({"output": str(self.video), "duration": 1,+ "poster": {"file": "poster.jpg", "time": 0.5}}), encoding="utf-8")+ q = json.loads(showtime("qa", self.video, "--json", "--no-sheet", check=False).stdout)+ self.assertNotIn("poster_mismatch", [f["rule"] for f in q["findings"]])++ def test_qa_reads_the_poster_frame_not_the_next(self):+ """A render's poster time is frame/fps (2/30 = 0.0667 s); rounded to 0.067 the seek read frame 3."""+ from st.qa import media+ v = self.tmp / "steps.mp4"+ ff.run_ffmpeg(["-f", "lavfi", "-i", "color=c=black:s=64x36:r=30:d=0.1[a];color=c=white:s=64x36:r=30:d=0.2[b];"+ "[a][b]concat=n=2:v=1:a=0", "-c:v", "libx264", "-pix_fmt", "yuv420p"] + FINAL_TAGS + [v])+ self.assertLess(media.mean_luma(v, at=2 / 30.0), 20) # frame 2: black+ self.assertGreater(media.mean_luma(v, at=3 / 30.0), 230) # frame 3: white+++PAGE = ('<!doctype html><html><head><script src="/_st/stage.js"></script><style>body{margin:0}'+ '.b{position:absolute;left:0;width:%dpx;height:%dpx}</style></head><body>'+ '<section data-start="0" data-dur="1">%s</section></body></html>')++[email protected](FAST, "renders with a browser (skipped with --fast)")+class StillsFromARender(Tmp):+ """The render's own poster.jpg (from a captured PNG frame, and the auto-picked one from the video) and snap."""++ def project(self, poster):+ proj = self.tmp / "proj"+ proj.mkdir(exist_ok=True)+ bands = "".join('<div class="b" style="top:%dpx;background:rgb(%d,%d,%d)"></div>' % ((k * BAND,) + rgb)+ for k, (_, rgb) in enumerate(PATCHES))+ (proj / "index.html").write_text(PAGE % (W, BAND, bands), encoding="utf-8")+ cfg = {"title": "Bands", "width": W, "height": H, "fps": 30, "duration": 1}+ if poster is not None:+ cfg["poster"] = poster+ (proj / "showtime.json").write_text(json.dumps(cfg), encoding="utf-8")+ return proj++ def render(self, name, poster, *extra):+ out = self.tmp / name / "final.mp4"+ showtime("render", self.project(poster), "-o", out, "--no-audio", "--no-check", "-q", *extra, timeout=600)+ rep = json.loads((out.with_suffix(".work") / "render.json").read_text(encoding="utf-8"))+ return out, Path(rep["poster"]["file"]), rep["poster"]++ def test_render_poster_from_a_png_frame(self):+ v, poster, info = self.render("png", 0.5, "--format", "png")+ self.assertEqual(poster.name, "poster.jpg")+ self.assertPatches(poster, "render poster.jpg (PNG capture)")+ q = json.loads(showtime("qa", v, "--json", "--no-sheet", check=False).stdout)+ self.assertNotIn("poster_mismatch", [f["rule"] for f in q["findings"]])++ def test_render_auto_poster_and_snap(self):+ v, poster, info = self.render("auto", None)+ self.assertEqual(info.get("method"), "auto") # deliver poster on the video+ self.assertPatches(poster, "render auto poster.jpg")+ q = json.loads(showtime("qa", v, "--json", "--no-sheet", check=False).stdout)+ self.assertNotIn("poster_mismatch", [f["rule"] for f in q["findings"]])+ snap = self.tmp / "snap.jpg"+ showtime("snap", v, "--at", "0.5", "-o", snap)+ self.assertPatches(snap, "snap -o snap.jpg")+++if __name__ == "__main__":+ argv = [a for a in sys.argv if a != "--fast"]+ unittest.main(argv=argv)diff --git a/skills/showtime/tests/test_pr_video.py b/skills/showtime/tests/test_pr_video.pyindex b6e31a3..05b8cd2 100644--- a/skills/showtime/tests/test_pr_video.py+++ b/skills/showtime/tests/test_pr_video.py@@ -255,7 +255,7 @@ class TestBodyPlanPage(unittest.TestCase):p = pv.plan(meta, body, stats, pv.pick_hunks(files))self.assertEqual(p["budget"], pv.length_budget(6, 24))self.assertEqual([s["id"] for s in p["scenes"]], ["hook", "sum1", "files", "diff1", "end"])- self.assertEqual((p["shown"], p["more"]), (1, 3)) # a small PR keeps one line+ self.assertEqual((p["shown"], p["more"]), (1, 2)) # a small PR keeps one line; "+ 2 more": the list's itemsself.assertLessEqual(sum(s["dur"] for s in p["scenes"]), p["budget"])self.assertEqual((p["name"], p["version"], p["files"], p["additions"], p["deletions"]),("acme/tool", "#482", 6, 20, 4))@@ -271,6 +271,36 @@ class TestBodyPlanPage(unittest.TestCase):self.assertEqual(big["shown"], 4) # a big PR has room for allself.assertLessEqual(sum(s["dur"] for s in big["scenes"]), 45.0)+ def test_list_items_by_their_bold_leads(self):+ """A fix-list PR (like showtime's PR #7): a long opening paragraph no longer takes four frames, each item shows+ its bold lead (or its first sentence), a Checks section is left out, and "+ N more" counts the items."""+ intro = ("Fixes found by running the tool in a locked-down sandbox (no writable HOME, no local listen, egress "+ "only through an HTTP proxy, env files unreadable), plus a Windows race the push CI caught.")+ body = intro + "\n\n" + "\n".join(+ ["- **Fix number %d was found and is now gone.** It used to fail when the folder was long, and the hint "+ "said nothing useful; now it names the path length and the way out, and setup checks it too." % i+ for i in range(1, 7)]+ + ["- A plain item without a lead. Its second sentence is detail."]) + \+ "\n\n## Checks\n- Every fix has a test that failed before.\n- Fast suite: 54/54.\n"+ b = pv.parse_body(body)+ self.assertEqual(len(b["items"]), 8) # the intro + 7 items+ self.assertEqual(b["items"][1]["show"], "Fix number 1 was found and is now gone.")+ self.assertEqual(b["items"][-1]["show"], "A plain item without a lead.")+ self.assertTrue(b["items"][1]["text"].startswith("Fix number 1 was found and is now gone. It used to fail"))+ self.assertNotIn("Fast suite: 54/54.", b["summary"]) # a Checks section is evidence+ meta = pv.normalize_meta(dict(PR, body=body))+ p = pv.plan(meta, b, [], [], max_items=4, max_seconds=45.0)+ texts = [s["text"] for s in p["scenes"] if s["id"].startswith("sum")]+ self.assertEqual(texts, ["Fix number %d was found and is now gone." % i for i in (1, 2, 3, 4)])+ self.assertEqual((p["shown"], p["total"], p["more"]), (4, 7, 3))+ self.assertEqual([s["more"] for s in p["scenes"] if s["id"].startswith("sum")][-1], 3)+ # a short intro still opens the list (it fits one frame); a description without a list is unchanged+ p2 = pv.plan(meta, pv.parse_body("Speeds up export.\n\n- **Faster seeks.** Details.\n- **Smaller files.** More."),+ [], [], max_seconds=45.0)+ self.assertEqual([s["text"] for s in p2["scenes"] if s["id"].startswith("sum")],+ ["Speeds up export.", "Faster seeks.", "Smaller files."])+ self.assertEqual(p2["more"], 0)+def test_length_budget_and_holds(self):self.assertTrue(16 <= pv.length_budget(2, 18) <= 20)self.assertEqual(pv.length_budget(400, 20000), 45.0)diff --git a/skills/showtime/tests/test_qa.py b/skills/showtime/tests/test_qa.pyindex e0a0d4c..91f3c1e 100644--- a/skills/showtime/tests/test_qa.py+++ b/skills/showtime/tests/test_qa.py@@ -1025,6 +1025,21 @@ Film.start({ look: 'dark', design: [1920, 1080], scenes(T, g, F) {self.assertEqual(M.png_colour_chunks(poster), [])self.assertEqual(poster.read_bytes(), raw)self.assertNotIn("poster_mismatch", rules())+ # a saturated frame (a showreel's frame 0) encoded as the render does (BT.709, tv range) and its poster+ # JPEG from the same pixels: the same level (each file's own Y channel differed by ~4: 601 vs 709 luma)+ src = d / "frame.png"+ ffmpeg("-f", "lavfi", "-i", "color=c=0x05060f:s=320x568,drawbox=x=0:y=0:w=320:h=150:c=0xff3b30:t=fill,"+ "drawbox=x=0:y=180:w=320:h=120:c=0x2337ff:t=fill,drawbox=x=0:y=330:w=160:h=120:c=0xff4fd8:t=fill,"+ "drawbox=x=160:y=330:w=160:h=120:c=0x29e7ff:t=fill", "-frames:v", "1", src)+ ffmpeg("-loop", "1", "-framerate", "30", "-t", "2", "-i", src, "-vf",+ "scale=out_color_matrix=bt709:out_range=tv:flags=accurate_rnd+full_chroma_int,format=yuv420p",+ "-c:v", "libx264", "-crf", "18", "-colorspace", "bt709", "-color_primaries", "bt709", "-color_trc", "bt709",+ "-color_range", "tv", str(v))+ ffmpeg("-i", src, "-q:v", "2", d / "poster.jpg")+ (d / "render.json").write_text(json.dumps({"output": str(v), "duration": 2,+ "poster": {"file": "poster.jpg", "time": 0.0}}), encoding="utf-8")+ self.assertLess(abs(M.mean_luma(d / "poster.jpg") - M.mean_luma(v, at=0.0)), 1.0)+ self.assertNotIn("poster_mismatch", rules())if __name__ == "__main__":diff --git a/skills/showtime/tests/test_readback.py b/skills/showtime/tests/test_readback.pyindex 4699c17..c5edb8b 100644--- a/skills/showtime/tests/test_readback.py+++ b/skills/showtime/tests/test_readback.py@@ -6,8 +6,12 @@- what matters in a line (names, acronyms, numbers, lexicon words), a lone "A" told as the article- the case that shipped (7 Oct): the maths explainer's line "Now Open A I says ..." (bm_george); the fixtureis a 3 s cut of that render's own voice-over, in which the recognizer hears "open an eye" (when installed)-- qa: the `readback` item (WARN, FAIL for a title/brand/lexicon name, INFO when it cannot run),- voice/readback.json reused for the same vo.wav, audio.txt's table, the receipt's QA line+- qa: the `readback` item (WARN; FAIL for a title/brand/lexicon name only when a second recognizer also hears it+ differently; INFO when it cannot run, with the fetch hint only when the recognizer is missing), voice/readback.json+ reused for the same vo.wav, audio.txt's table, the receipt's QA line+- a right read respelled by the recognizer (review of 0.4.1: "JSON" written "JSO" by Parakeet, heard "JSON" by+ Whisper small.en, in a project titled "JSON for teams"): WARN, not FAIL; showtime.json "readback": {"ok": [...]}+ clears it for voice script and qa; the recognizer's name is in the cache key- `voice script`'s "heard back" lines; lexicon precedence (project over the built-in list)- without --fast, when Kokoro and the recognizer are here: `voice script` flags the bad line, passes the fix@@ -197,17 +201,17 @@ class QaTests(Base):for w in words(HEARD_BAD, 0.4)]calls = []- def fake(wav, lang, key=None):+ def fake(wav, lang, key=None, model="auto"):calls.append(Path(wav).name)return heard- orig = self.rb.heard_words- orig_ready = self.rb.asr_ready+ orig = self.rb.heard_words, self.rb.asr_ready, self.rb.second_recognizerself.rb.heard_words, self.rb.asr_ready = fake, (lambda lang: (True, ""))+ self.rb.second_recognizer = lambda lang: Noneself.rb._READY.clear()try:rep = self.rb.for_project(d)finally:- self.rb.heard_words, self.rb.asr_ready = orig, orig_ready+ self.rb.heard_words, self.rb.asr_ready, self.rb.second_recognizer = origself.rb._READY.clear()self.assertEqual(calls, ["vo.wav"]) # no line clips: the whole vo.wav, split by lineself.assertEqual(rep["source"], "voice/vo.wav")@@ -227,12 +231,12 @@ class QaTests(Base):def boom(*a, **k):raise AssertionError("the recognizer ran although readback.json belongs to this vo.wav")- orig = self.rb.heard_words- self.rb.heard_words = boom+ orig = self.rb.heard_words, self.rb.second_recognizer+ self.rb.heard_words, self.rb.second_recognizer = boom, (lambda lang: None)try:rep = self.rb.for_project(d)finally:- self.rb.heard_words = orig+ self.rb.heard_words, self.rb.second_recognizer = origself.assertIn("readback.json", rep["source"])self.assertTrue(rep["suspects"][0]["critical"]) # "OpenAI" is a name in the title# a timeline newer than the video is not what the video plays@@ -256,11 +260,24 @@ class QaTests(Base):self.assertIn("one word", F.items[0]["fix"])rep["suspects"][0]["critical"] = TrueF = Findings()- hearing.check_readback(F, rep)+ hearing.check_readback(F, rep) # a title/brand name heard by one recognizer only: WARN+ self.assertEqual(F.items[0]["severity"], "WARN")+ self.assertIn("a name in the title, brand or lexicon", F.items[0]["message"])+ rep["suspects"][0].update(confirmed=True, second={"by": "Whisper small.en", "heard": "OpenI"})+ F = Findings()+ hearing.check_readback(F, rep) # a second recognizer heard it wrong too: FAILself.assertEqual(F.items[0]["severity"], "FAIL")+ self.assertIn('Whisper small.en also hears "OpenI"', F.items[0]["message"])F = Findings()- hearing.check_readback(F, {"skipped": "the speech recognizer is not installed", "suspects": []})+ hearing.check_readback(F, {"skipped": "the speech recognizer is not installed (showtime setup --fetch x)",+ "suspects": []})+ self.assertEqual(F.items[0]["severity"], "INFO")+ self.assertIn("setup --fetch", F.items[0]["fix"])+ F = Findings() # installing changes nothing for a language it does not cover+ hearing.check_readback(F, {"skipped": "the local recognizer (Parakeet) does not cover language 'zh'",+ "suspects": []})self.assertEqual(F.items[0]["severity"], "INFO")+ self.assertNotIn("fix", F.items[0])F = Findings()hearing.check_readback(F, {"summary": "read-back: 7 lines heard back", "suspects": []})self.assertEqual((F.items, F.passed), ([], ["read-back: 7 lines heard back"]))@@ -283,6 +300,159 @@ class QaTests(Base):self.assertEqual(qa_line, 'QA: WARN (0 fail, 1 warn) on final.mp4; read-back: "Open A I" heard as "OpenI" at 26.7s')+JSON_LINE = "Open the JSON file in Visual Studio Code, then press the Enter key twice."+JSON_PARAKEET = "Open the JSO file in Visual Studio Code, then press the Enter key twice." # the review's l5+JSON_WHISPER = "Open the JSON file in Visual Studio Code, then press the Enter key twice."+++class RespelledNameTests(Base):+ """A right read the first recognizer respells: one recognizer is not enough to FAIL qa, a person can clear it."""++ def json_project(self, ok=None):+ d = Path(tempfile.mkdtemp(prefix="st-rb-json-"))+ cfg = {"title": "JSON for teams", "duration": 10}+ if ok is not None:+ cfg["readback"] = {"ok": ok}+ (d / "showtime.json").write_text(json.dumps(cfg), encoding="utf-8")+ (d / "narration.md").write_text("## l5\n%s\n" % JSON_LINE, encoding="utf-8")+ tl = {"file": "vo.wav", "script": "../narration.md", "lines": [+ {"id": "l5", "text": JSON_LINE, "source_text": JSON_LINE, "lang": "en-us", "start": 1.0, "end": 5.8,+ "speech_start": 1.05, "speech_end": 5.7, "file": "lines/01-l5.wav", "audio_key": "k5"}]}+ (d / "voice").mkdir()+ (d / "voice" / "timeline.json").write_text(json.dumps(tl), encoding="utf-8")+ _wav(d / "voice" / "vo.wav", 6.0)+ _wav(d / "voice" / "lines" / "01-l5.wav", 4.8)+ return d++ def run_project(self, d, second_hears=JSON_WHISPER, second=True):+ calls = []++ def fake(wav, lang, key=None, model="auto"):+ calls.append(model)+ return words(JSON_PARAKEET if model == "auto" else second_hears, 0.32)+ orig = self.rb.heard_words, self.rb.asr_ready, self.rb.second_recognizer+ self.rb.heard_words, self.rb.asr_ready = fake, (lambda lang: (True, ""))+ self.rb.second_recognizer = ((lambda lang: {"model": "small.en", "label": "Whisper small.en"}) if second+ else (lambda lang: None))+ self.rb._READY.clear()+ try:+ return self.rb.for_project(d), calls+ finally:+ self.rb.heard_words, self.rb.asr_ready, self.rb.second_recognizer = orig+ self.rb._READY.clear()++ def qa(self, rep):+ from st.qa import hearing+ from st.qa.video import Findings+ F = Findings()+ hearing.check_readback(F, rep)+ return F++ def test_matcher_flags_the_respelling_only(self):+ self.assertEqual(self.flagged(JSON_LINE, JSON_PARAKEET, "en-us"), [("JSON", "JSO")])+ self.assertEqual(self.flagged(JSON_LINE, JSON_WHISPER, "en-us"), [])++ def test_title_name_heard_right_by_the_second_recognizer_is_a_warn(self):+ d = self.json_project()+ rep, calls = self.run_project(d)+ self.assertEqual(calls, ["auto", "small.en"]) # the second recognizer hears only the flagged line+ s = rep["suspects"][0]+ self.assertEqual((s["word"], s["heard"], s["critical"], s["confirmed"]), ("JSON", "JSO", True, False))+ F = self.qa(rep)+ self.assertEqual([(f["rule"], f["severity"]) for f in F.items], [("readback", "WARN")])+ self.assertIn("Whisper small.en hears it as written", F.items[0]["message"])+ self.assertIn('"readback": {"ok": ["JSON"]}', F.items[0]["fix"])+ self.assertIn("listen to lines/01-l5.wav", F.items[0]["fix"])++ def test_title_name_heard_wrong_by_both_is_a_fail(self):+ rep, _ = self.run_project(self.json_project(), second_hears=JSON_PARAKEET)+ self.assertTrue(rep["suspects"][0]["confirmed"])+ F = self.qa(rep)+ self.assertEqual(F.items[0]["severity"], "FAIL")+ self.assertIn('Whisper small.en also hears "JSO"', F.items[0]["message"])++ def test_no_second_recognizer_is_a_warn(self):+ rep, calls = self.run_project(self.json_project(), second=False)+ self.assertEqual(calls, ["auto"])+ self.assertNotIn("confirmed", rep["suspects"][0])+ self.assertEqual(self.qa(rep).items[0]["severity"], "WARN")++ def test_a_word_cleared_after_listening(self):+ rep, _ = self.run_project(self.json_project(ok=["json"]), second_hears=JSON_PARAKEET)+ self.assertEqual(rep["suspects"], [])+ self.assertEqual([s["word"] for s in rep["cleared"]], ["JSON"])+ self.assertIn('cleared after listening (showtime.json readback.ok): "JSON"', rep["summary"])+ F = self.qa(rep)+ self.assertEqual(F.items, [])+ self.assertIn("cleared after listening", F.passed[0])+ from st.qa import hearing+ self.assertIn("cleared after listening", "\n".join(hearing.readback_text(rep)))++ def test_stored_readback_gets_the_second_opinion_and_the_clearance(self):+ from st.footage.util import quick_hash+ d = self.json_project()+ stored = {"version": self.rb.READBACK_VERSION, "vo_hash": quick_hash(d / "voice" / "vo.wav"), "checked": 4,+ "lines": [{"id": "l5", "start": 1.0, "script": JSON_LINE, "heard": JSON_PARAKEET,+ "suspects": ["JSON"]}],+ "suspects": [{"line": "l5", "word": "JSON", "heard": "JSO", "keys": ["json"], "critical": False,+ "kind": "lexicon", "t": 1.64, "clip": "lines/01-l5.wav"}]}+ (d / "voice" / "readback.json").write_text(json.dumps(stored), encoding="utf-8")+ rep, calls = self.run_project(d)+ self.assertEqual(calls, ["small.en"]) # only the second opinion: the first is reused+ self.assertEqual(rep["suspects"][0]["confirmed"], False)+ self.assertEqual(self.qa(rep).items[0]["severity"], "WARN")+ cfg = json.loads((d / "showtime.json").read_text(encoding="utf-8"))+ cfg["readback"] = {"ok": ["JSON"]} # cleared after voice script ran: qa honours it+ (d / "showtime.json").write_text(json.dumps(cfg), encoding="utf-8")+ rep, _ = self.run_project(d)+ self.assertEqual((rep["suspects"], rep["lines"][0]["suspects"]), ([], []))+ self.assertEqual(self.qa(rep).items, [])++ def test_voice_script_lines_and_cleared_words(self):+ lines = [{"id": "l5", "text": JSON_LINE, "lang": "en-us", "start": 27.237, "heard": words(JSON_PARAKEET)}]+ rep = self.rb.check_lines(lines, self.lex, {"json"},+ second={"label": "Whisper small.en", "hear": lambda ln: words(JSON_WHISPER)})+ out = self.rb.report_lines(rep)+ self.assertIn('WARN', out[1])+ self.assertIn("[a name in the title, brand or lexicon; Whisper small.en hears it as written]", out[1])+ d = Path(tempfile.mkdtemp(prefix="st-rb-ok-"))+ (d / "showtime.json").write_text(json.dumps({"readback": {"ok": ["JSON", 3, ""]}}), encoding="utf-8")+ self.assertEqual(self.rb.cleared_words(d), ["JSON"])+ self.rb.apply_cleared(rep, self.rb.cleared_words(d))+ self.assertEqual(rep["suspects"], [])+ self.assertIn("cleared after listening", self.rb.report_lines(rep)[0])++ def test_cache_key_names_the_recognizer(self):+ from st.footage import transcribe as T+ cache = Path(tempfile.mkdtemp(prefix="st-rb-cache-"))+ ran = []++ def fake_transcribe(wav, model="auto", **kw):+ ran.append(model)+ return {"model": model, "words": [{"type": "word", "text": "hi", "start": 0.0, "end": 0.2}]}, None+ orig = self.rb._cache_dir, T.transcribe+ self.rb._cache_dir, T.transcribe = (lambda: cache), fake_transcribe+ old_env = os.environ.pop("SHOWTIME_ASR_MODEL", None)+ try:+ wav = cache / "x.wav"+ wav.write_bytes(b"0")+ self.rb.heard_words(wav, "en", "k1")+ self.rb.heard_words(wav, "en", "k1") # cached+ os.environ["SHOWTIME_ASR_MODEL"] = "turbo" # another recognizer: heard again+ self.rb.heard_words(wav, "en", "k1")+ del os.environ["SHOWTIME_ASR_MODEL"]+ self.rb.heard_words(wav, "en", "k1", model="small.en")+ finally:+ self.rb._cache_dir, T.transcribe = orig+ os.environ.pop("SHOWTIME_ASR_MODEL", None)+ if old_env is not None:+ os.environ["SHOWTIME_ASR_MODEL"] = old_env+ self.assertEqual(ran, ["auto", "auto", "small.en"])+ names = sorted(p.name for p in cache.glob("k1-*.json"))+ self.assertEqual(names, ["k1-en-large-v3-turbo.json", "k1-en-sherpa-onnx-nemo-parakeet-tdt-0.6b-v3-int8.json",+ "k1-en-small.en.json"])++class VoiceScriptTests(Base):def test_heard_back_lines(self):rep = {"summary": "read-back: 1 word heard differently in 7 lines (\"Open A I\" as \"OpenI\")", "suspects": [diff --git a/skills/showtime/tests/test_render.py b/skills/showtime/tests/test_render.pyindex 0bd6bff..4e1ca7d 100644--- a/skills/showtime/tests/test_render.py+++ b/skills/showtime/tests/test_render.py@@ -568,10 +568,12 @@ class RenderTests(unittest.TestCase):showtime("new", "dom", proj, "--size", "640x360", "--duration", 20)cfg = json.loads((proj / "showtime.json").read_text(encoding="utf-8"))self.assertEqual(cfg["duration"], 20)- # the poster is the hook frame (claim + product teaser, before the camera move); a longer hero keeps- # the offset from its start (the hero now runs 0-9.067 s), so it stays inside the hook- self.assertGreater(cfg["poster"], 1.0)- self.assertLess(cfg["poster"], 2.3)+ # the poster is the hook frame (claim + product teaser, before the camera move); the hero (now 0-9.067 s)+ # is a data-stretch="spread" scene, so the poster spreads with its beats (1.9 s x 9.067/6.8) and stays+ # before the headline's exit (2.2 s spread the same way)+ k = 9.067 / 6.8+ self.assertAlmostEqual(cfg["poster"], 1.9 * k, places=2)+ self.assertLess(cfg["poster"], 2.2 * k)mix = json.loads((proj / "audio" / "mix.json").read_text(encoding="utf-8"))secs = mix["tracks"][0]["compose"]["sections"]self.assertTrue(secs.endswith("16:outro"), secs) # the outro starts with the retimed close scenediff --git a/skills/showtime/tests/test_render_speed.py b/skills/showtime/tests/test_render_speed.pyindex a98aa0f..43755dd 100644--- a/skills/showtime/tests/test_render_speed.py+++ b/skills/showtime/tests/test_render_speed.py@@ -394,7 +394,10 @@ class TestRender(unittest.TestCase):decision (__ST_RENDER__.softwareGL, read by the looks through gl.js softwareGL), render.json records it,and a span spliced into a job's full render takes that render's decision."""proj = self.tmp / "gpu"- write(proj / "showtime.json", json.dumps({"width": 128, "height": 72, "fps": 10, "duration": 2, "poster": 0}))+ # 256x144, the size of the other small pages here: at 128x72 (the only page this small in the suite) a+ # no-GPU Ubuntu machine (SwiftShader) saw this test's screenshots wait out the 60 s shot timeout, about 4+ # minutes instead of seconds+ write(proj / "showtime.json", json.dumps({"width": 256, "height": 144, "fps": 10, "duration": 2, "poster": 0}))write(proj / "index.html", GL_DECISION_HTML)r, _ = render(proj, self.tmp / "gpu-out" / "final.mp4", "--gpu", "off", "--workers", 2, "--no-audio",env=dict(ENV, SHOWTIME_TEST_FAIL_WRITE="5"))@@ -423,13 +426,13 @@ class TestRender(unittest.TestCase):# the colour says what the page was told: red = no GPU, green = a GPU, blue = not told (gl.js probed)GL_DECISION_HTML = """<!doctype html><html><head><script src="/_st/stage.js"></script></head>-<body style="margin:0;background:#000"><canvas id="c" width="128" height="72"></canvas>+<body style="margin:0;background:#000"><canvas id="c" width="256" height="144"></canvas><script type="module">import { softwareGL } from '/_st/effects/gl.js';window.__told = !!window.__ST_RENDER__ && 'softwareGL' in window.__ST_RENDER__; window.__sw = softwareGL();</script><script>const g = document.getElementById('c').getContext('2d');ST.onSeek((t) => {- g.fillStyle = !window.__told ? '#0000ff' : window.__sw ? '#ff0000' : '#00ff00'; g.fillRect(0, 0, 128, 72);+ g.fillStyle = !window.__told ? '#0000ff' : window.__sw ? '#ff0000' : '#00ff00'; g.fillRect(0, 0, 256, 144);g.fillStyle = '#fff'; g.fillRect((t * 40) % 120, 4, 6, 6);});</script></body></html>diff --git a/skills/showtime/tests/test_showreel.py b/skills/showtime/tests/test_showreel.pyindex a9a8283..fedbe12 100644--- a/skills/showtime/tests/test_showreel.py+++ b/skills/showtime/tests/test_showreel.py@@ -359,6 +359,38 @@ class NewProjectTests(unittest.TestCase):for kind in ("chart(", "morph(", "spiro(", "halftone(", "burst(", "tunnel(", "ST.three(", "mix-blend-mode: multiply"):self.assertIn(kind, html)+ def test_chart_counter_stays_in_square_and_tall_frames(self):+ """reel.js chart(): in a square frame (and 4:5, 9:16) the counter takes the tall layout, and its clip box and+ ring stay inside the frame through the shot's camera push (example 30's 1:1 ran off the right edge with+ `tall = H > W`); the ring stays above the label. The counter's cell is measureText('0') * 1.04 in the page:+ 0.56 em here, a little wider than Anton's digits."""+ mod = self.tmp / "reel.mjs" # reel.js is a browser module: node imports it as .mjs+ shutil.copy(str(SKILL / "templates" / "showreel" / "reel.js"), str(mod))+ html = (SKILL / "templates" / "showreel" / "index.html").read_text(encoding="utf-8")+ import re+ dur = float(re.search(r'id="data"[^>]*data-dur="([\d.]+)"', html).group(1))+ sizes = [[1080, 1080], [1080, 1350], [1080, 1920], [1920, 1080]]+ lays = node_json("console.log(JSON.stringify(%s.map(([w, h]) => R.chartLayout(w, h))))" % json.dumps(sizes),+ mod=mod)+ z = 1 + 0.06 * dur # the push at the shot's last frame, round (W/2, 0.55 H)+ for (w, h), lay in zip(sizes, lays):+ push = lambda x, y: (w / 2 + (x - w / 2) * z, 0.55 * h + (y - 0.55 * h) * z)+ self.assertEqual(lay["tall"], h >= w, (w, h))+ if not lay["tall"]:+ continue+ size, cell = lay["size"], lay["size"] * 0.56 * 1.04+ left = lay["cx"] - cell * 3 / 2 # three digits (900)+ ring_y, r = lay["cy"] - size * 0.42, size * 0.95+ boxes = {"counter": (left - cell * 0.2, lay["cy"] - size * 0.95, left + cell * 3.2, lay["cy"] + size * 0.05),+ "ring": (lay["cx"] - r, ring_y - r, lay["cx"] + r, ring_y + r)}+ for name, (ax, ay, bx, by) in boxes.items():+ (ax, ay), (bx, by) = push(ax, ay), push(bx, by)+ self.assertTrue(0 <= ax and bx <= w and 0 <= ay and by <= h,+ "%s box %s outside %dx%d" % (name, [round(v) for v in (ax, ay, bx, by)], w, h))+ label_top = lay["labelY"] - min(w, h) * 0.05 * 0.8+ self.assertLess(ring_y + r, label_top, (w, h))+ self.assertLess(lay["labelY"], lay["top"], (w, h))+def test_brief_words_set_the_tone(self):cp = showtime("job", "init", "reel-job", "--request", ROUND1, "--base", self.tmp, "--no-check")self.assertIn('tone: showreel tone (the brief says "showreel")', cp.stderr + cp.stdout)diff --git a/skills/showtime/tests/test_site_build.py b/skills/showtime/tests/test_site_build.pyindex 4b0ed8a..bb8503d 100644--- a/skills/showtime/tests/test_site_build.py+++ b/skills/showtime/tests/test_site_build.py@@ -35,6 +35,21 @@ try:except ImportError: # pragma: no coverbuild = None+# The examples (their READMEs and MEDIA.json) live in examples/ of the development checkout, or in a clone of the+# examples repository next to this one (site/config.json "examples_dir"). The public plugin repository has neither:+# the tests that read the real gallery skip there, with this reason.+HAVE_EXAMPLES = False+NO_EXAMPLES = "needs the examples folder: examples/ in this checkout or a clone of the examples repository next to it"+if build is not None:+ try:+ _ex = build.find_examples()+ if _ex != build.EXAMPLES.resolve():+ build.configure_examples(_ex)+ HAVE_EXAMPLES = True+ except SystemExit:+ NO_EXAMPLES = "needs the examples folder (examples/ here, or a clone of %s at %s)" % (+ build.CONFIG.get("examples_repo", "the examples repository"), build.CONFIG.get("examples_dir", "../"))+def page(body: str, footer: bool = True) -> str:return ("<!doctype html><html><head><title>A page</title><script>var a='<b>';</script></head><body><main>%s</main>%s"@@ -185,6 +200,7 @@ class PeoplePages(unittest.TestCase):self.assertIn("docs/whats-new.html", start)self.assertIn("docs/faq.html", start)+ @unittest.skipUnless(HAVE_EXAMPLES, NO_EXAMPLES)def test_example_without_a_card_links_to_github(self):# examples/<NN>-*/ folders that have no gallery card get no page; a link to one must not point at a missing pagetmp = Path(tempfile.mkdtemp(prefix="st-site-"))@@ -200,6 +216,95 @@ class PeoplePages(unittest.TestCase):self.assertTrue(out.startswith("https://github.com/owner/repo/"), out)+CARD = """<a id="ex-{id}"></a>++<table>+<tr>+<td width="44%" valign="top"><a href="{folder}/"><img src="../assets/readme/gallery/{folder}.webp" width="100%" alt="An alt."></a></td>+<td valign="top">+<sub>{label} · 8 s · 16:9</sub><br>+<b><a href="{folder}/">A title</a></b>+<p><sub>THE PROMPT</sub><br><i>\u201cMake it.\u201d</i></p>+<p><sub>WHAT IT SHOWS</sub><br>Something</p>+<p>\u25b6 <a href="{folder}/final.mp4"><code>final.mp4</code></a>{html}<br><a href="{folder}/">the folder, the story and the commands</a></p>+</td>+</tr>+</table>+"""++[email protected](build is None, "needs markdown-it-py (showtime's venv has it)")+class GalleryCards(unittest.TestCase):+ """examples/README.md is the gallery's source: numbered cards, named demo cards, and "Also in this group"."""++ def setUp(self):+ self.tmp = Path(tempfile.mkdtemp(prefix="st-cards-"))+ self.saved = build.EXAMPLES++ def tearDown(self):+ import shutil+ build.EXAMPLES = self.saved+ shutil.rmtree(str(self.tmp), ignore_errors=True)++ def parse(self, text: str):+ (self.tmp / "README.md").write_text(text, encoding="utf-8")+ build.EXAMPLES = self.tmp+ return build.parse_examples()++ def test_named_demo_cards_and_also_lines(self):+ text = ("# Examples\n\n## Footage\n\n" + CARD.format(id="06", folder="06-a", label="06", html="") ++ "\n<sub>Also in this group: <a href=\"#ex-30\"><b>30 \u00b7 Later</b></a>, below.</sub>\n\n"+ "## Looks and motion\n\n" + CARD.format(id="30", folder="30-b", label="30", html="") + "\n" ++ CARD.format(id="looks", folder="_looks", label="Demo", html="") ++ "\n<sub>Also in this group: <a href=\"#ex-06\"><b>06 \u00b7 Earlier</b></a>, above.</sub>\n\n## Also here\n\n- x\n")+ groups, exs = self.parse(text)+ self.assertEqual([g for g, _ in groups], ["footage", "looks-and-motion"])+ by = {e["num"]: e for e in exs}+ self.assertEqual([e["num"] for e in exs], ["06", "30", "looks"], "numbers first, then demos")+ self.assertEqual(by["looks"]["folder"], "_looks")+ self.assertEqual(by["looks"]["meta"], "8 s \u00b7 16:9")+ self.assertEqual(build.ex_label(by["looks"]), "Demo")+ self.assertEqual(build.ex_label(by["06"]), "06")+ # an "Also" line under a card counts for the group it sits in, even for a card the page has not reached yet+ self.assertEqual(by["30"]["tags"], ["looks-and-motion", "footage"])+ self.assertEqual(by["06"]["tags"], ["footage", "looks-and-motion"])++ @unittest.skipUnless(HAVE_EXAMPLES, NO_EXAMPLES)+ def test_this_checkout_parses(self):+ groups, exs = build.parse_examples()+ self.assertGreater(len(exs), 20)+ names = [g for g, _ in groups]+ for e in exs:+ self.assertTrue(e["watch"], e["num"])+ self.assertTrue(set(e["tags"]) <= set(names), e["num"])+ self.assertTrue((build.EXAMPLES / e["folder"] / "README.md").is_file(), e["folder"])+ counts = {g: sum(1 for e in exs if g in e["tags"]) for g in names}+ nav = (build.EXAMPLES / "README.md").read_text(encoding="utf-8")+ for g, name in groups: # the use-case line's counts match the cards+ self.assertIn('<a href="#%s"><b>%s</b></a> (%d)' % (g, name, counts[g]), nav, g)++ def test_folder_export_is_copied_whole(self):+ ex = self.tmp / "examples" / "40-x" / "interactive"+ (ex / "assets" / "media").mkdir(parents=True)+ (ex / "index.html").write_text("<!doctype html><title>x</title>", encoding="utf-8")+ (ex / "assets" / "vfs.js").write_text("window.__ST_FILES__ = {};", encoding="utf-8")+ (ex / "assets" / "media" / "soundtrack.m4a").write_bytes(b"\0" * 16)+ site = build.Site(self.tmp / "out", [self.tmp / "examples"], "", None, "main")+ dst, _ = site.media("examples/40-x/interactive/index.html", "40-x")+ self.assertEqual(dst, "media/40-x/interactive/index.html")+ out = self.tmp / "out" / "media" / "40-x" / "interactive"+ for f in ("index.html", "assets/vfs.js", "assets/media/soundtrack.m4a"):+ self.assertTrue((out / f).is_file(), f)+ # a single-file export (no assets/vfs.js beside it) is still copied alone+ one = self.tmp / "examples" / "41-y"+ one.mkdir(parents=True)+ (one / "film.html").write_text("<!doctype html><title>y</title>", encoding="utf-8")+ (one / "notes.txt").write_text("not copied", encoding="utf-8")+ dst, _ = site.media("examples/41-y/film.html", "41-y")+ self.assertTrue((self.tmp / "out" / dst).is_file())+ self.assertFalse((self.tmp / "out" / "media" / "41-y" / "notes.txt").exists())++GUIDE_SECTIONS = ["Say this", "What happens", "What you get", "How long it takes", "Phrases that change it", "Limits","The example"]@@ -250,6 +355,7 @@ class Guides(unittest.TestCase):self.assertEqual([h for h in heads if h in GUIDE_SECTIONS], GUIDE_SECTIONS, p.name)self.assertRegex(text, r"(example|examples)/|<!-- example: \d\d -->", p.name)+ @unittest.skipUnless(HAVE_EXAMPLES, NO_EXAMPLES)def test_an_example_without_a_page_links_to_github(self):# an example folder links to its page only when the gallery builds it; else to the folder on GitHubbuilt = sorted(build.EXAMPLES.glob("[0-9][0-9]-*/README.md"))[0].parentdiff --git a/skills/showtime/tests/test_site_search.py b/skills/showtime/tests/test_site_search.pyindex 70bad63..80af17e 100644--- a/skills/showtime/tests/test_site_search.py+++ b/skills/showtime/tests/test_site_search.py@@ -31,6 +31,15 @@ spec = importlib.util.spec_from_file_location("site_build", SITE / "build.py")build = importlib.util.module_from_spec(spec)spec.loader.exec_module(build)+# a real build reads the gallery: examples/ in the development checkout, or a clone of the examples repository next+# to this one (site/config.json "examples_dir"); the public plugin repository has neither, and the build test skips+try:+ build.find_examples()+ NO_EXAMPLES = ""+except SystemExit:+ NO_EXAMPLES = "needs the examples folder (examples/ here, or a clone of %s at %s)" % (+ build.CONFIG.get("examples_repo", "the examples repository"), build.CONFIG.get("examples_dir", "../"))+def norm_query(q: str) -> str:"""app.js norm(), with the character class read from app.js itself."""@@ -113,6 +122,7 @@ class Sections(unittest.TestCase):class RealBuild(unittest.TestCase):"""The whole site, without videos: the build's own check passes and long pages are searchable to the end."""+ @unittest.skipIf(bool(NO_EXAMPLES), NO_EXAMPLES)def test_build(self):out = Path(tempfile.mkdtemp(prefix="st-site-out-"))try:diff --git a/skills/showtime/tests/test_site_share.py b/skills/showtime/tests/test_site_share.pyindex 73e6933..3802477 100644--- a/skills/showtime/tests/test_site_share.py+++ b/skills/showtime/tests/test_site_share.py@@ -189,14 +189,17 @@ class ExampleLinks(unittest.TestCase):self.assertTrue(links, f)self.assertEqual([u for u in links if not u.startswith(want)], [], f)- def test_rebuild_steps_keep_the_template_look(self):+ def test_rebuild_steps_pin_the_look(self):+ # a rebuild starts in the look the example was made in: the template's own (--look template, the examples+ # made before look signatures) or the signature it used (--look tidewater); without --look, `new` picks onelines = []for f in sorted(EXAMPLES.glob("[0-9][0-9]-*/README.md")):for ln in f.read_text(encoding="utf-8").splitlines():if re.match(r"^showtime new (dom|launch|short|data) <", ln):lines.append((f.parent.name, ln))self.assertGreaterEqual(len(lines), 12)- self.assertEqual([x for x in lines if "--look template" not in x[1]], [])+ self.assertEqual([x for x in lines if not re.search(r"--look [a-z][a-z0-9-]*", x[1])], [])+ self.assertGreaterEqual(sum(1 for x in lines if "--look template" in x[1]), 12)if __name__ == "__main__":diff --git a/skills/showtime/tests/test_skill_structure.py b/skills/showtime/tests/test_skill_structure.pyindex a2f2158..f296585 100644--- a/skills/showtime/tests/test_skill_structure.py+++ b/skills/showtime/tests/test_skill_structure.py@@ -85,6 +85,20 @@ class TestRepoHygiene(unittest.TestCase):self.assertTrue((REPO / name).is_file(), name + " is missing")self.assertTrue(list((REPO / ".out-of-scope").glob("*.md")), ".out-of-scope/ has no entries")+ def test_template_sample_urls_are_reserved_names(self):+ """A template's sample URL (data-url) shows on screen in every video made from it: it must be a reserved+ name (RFC 2606 / 6761: .example, .test, .invalid, example.com), never a domain someone can own+ (northwind.app was registered)."""+ import re+ bad = []+ for page in sorted((SKILL / "templates").rglob("*.html")):+ for url in re.findall(r'data-url="([^"]*)"', page.read_text(encoding="utf-8")):+ host = re.sub(r"^[a-z]+://", "", url).split("/")[0].split(":")[0].lower()+ if not (re.search(r"\.(example|test|invalid|localhost)$", host)+ or host in ("localhost", "example.com", "example.org", "example.net")):+ bad.append("%s: %s" % (page.relative_to(SKILL), url))+ self.assertEqual(bad, [])+def test_gitattributes_line_endings(self):text = (REPO / ".gitattributes").read_text(encoding="utf-8")for pat, eol in (("*.sh", "lf"), ("*.py", "lf"), ("*.mjs", "lf"), ("*.md", "lf"),diff --git a/skills/showtime/tests/test_speaker.py b/skills/showtime/tests/test_speaker.pyindex f51dd5b..a0ba278 100644--- a/skills/showtime/tests/test_speaker.py+++ b/skills/showtime/tests/test_speaker.py@@ -132,10 +132,10 @@ class SpeakerTests(unittest.TestCase):th = hearing.thresholds()self.assertEqual((th["speaker_gap_lu"], th["speaker_gap_fail_lu"]), (10.0, 18.0))- def run(gap, mix=None):+ def run(gap, mix=None, **kw):F = Collect()- sp = {"integrated_lufs": -14.0, "above_300_lufs": -14.0 - gap, "gap_300_lu": gap,- "above_1k_lufs": -20.0 - gap, "gap_1k_lu": gap + 6, "mix": mix}+ sp = dict({"integrated_lufs": -14.0, "above_300_lufs": -14.0 - gap, "gap_300_lu": gap,+ "above_1k_lufs": -20.0 - gap, "gap_1k_lu": gap + 6, "mix": mix}, **kw)hearing.check_speaker(F, {"thresholds": th, "speaker": sp})return F.itemsself.assertEqual(run(8.2), [])@@ -145,6 +145,11 @@ class SpeakerTests(unittest.TestCase):self.assertIn("about 9 dB quieter", w[0]["message"])self.assertIn("speaker-safe", w[0]["fix"])self.assertEqual(run(19.0)[0]["severity"], "FAIL")+ # a soundtrack showtime did not mix (the user's own song, a footage edit's sound): WARN, never a FAIL+ own = run(19.0, showtime_mix=False)+ self.assertEqual(own[0]["severity"], "WARN")+ self.assertIn("showtime did not mix this soundtrack", own[0]["message"])+ self.assertEqual(run(19.0, showtime_mix=True)[0]["severity"], "FAIL")off = run(13.6, {"on": False, "set_by": "the mix's master.speaker_safe"})self.assertEqual(off[0]["severity"], "INFO")capped = run(12.0, {"on": True, "set_by": "default", "capped": True, "shelf_db": -12.0})diff --git a/skills/showtime/tests/test_splice.py b/skills/showtime/tests/test_splice.pyindex 4a69d61..a699197 100644--- a/skills/showtime/tests/test_splice.py+++ b/skills/showtime/tests/test_splice.py@@ -454,6 +454,43 @@ class TestSpanClips(unittest.TestCase):rep, _ = render(self.proj, "--from", 1, "--to", 2, "-o", self.tmp / "o" / "clip.mp4", cwd=self.tmp)self.assertEqual((Path(rep["output"]).name, rep["kind"]), ("clip.mp4", "span"))self.assertTrue(ledger.is_span_video(self.tmp / "o" / "clip.mp4"))+ # -o with its own name inside a job folder (no --job): written there too, not <job>/work/span-1-2.mp4,+ # and never spliced into the job's full render+ job = new_job("named", self.tmp)+ render(self.proj, "--job", job, cwd=self.tmp)+ rep, _ = render(self.proj, "--from", 1, "--to", 2, "-o", job / "loops" / "look-01.mp4", cwd=self.tmp)+ self.assertEqual((Path(rep["output"]), rep["kind"], rep["frames"]), (job / "loops" / "look-01.mp4", "span", 30))+ self.assertIn("-o names a clip", rep["span_reason"])+ self.assertEqual(ledger.latest_video(job)[0], job / "final.mp4")++ def test_new_folders_are_claimed_atomically(self):+ """Renders started in the same second with the same title get folders of their own (the folder is claimed by+ an exclusive mkdir; two span renders once shared one and one failed on its frames)."""+ from st import common+ base = self.tmp / "race"+ code = ("import { jobDir } from %s; const go = %d; while (Date.now() < go) {} "+ "console.log(JSON.stringify(jobDir('same-title', %s)));")+ go = int(time.time() * 1000) + 1500+ procs = [subprocess.Popen([NODE, "--input-type=module", "-e", code % (+ json.dumps((SKILL / "scripts" / "lib" / "cli.mjs").as_uri()), go, json.dumps(str(base)))],+ stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8", env=ENV) for _ in range(6)]+ dirs = []+ for p in procs:+ out, err = p.communicate(timeout=60)+ self.assertEqual(p.returncode, 0, err[-2000:])+ dirs.append(json.loads(out))+ self.assertEqual(len(set(dirs)), 6, dirs)+ # the Python side (showtime-out folders of the other commands): threads released together+ import threading+ got, gate = [], threading.Barrier(6)++ def claim():+ gate.wait()+ got.append(str(common.output_dir("same-title", base)))+ ts = [threading.Thread(target=claim) for _ in range(6)]+ [t.start() for t in ts]+ [t.join(30) for t in ts]+ self.assertEqual(len(set(got)), 6, got)# a --preview span is a draft of those secondsjob = new_job("prev", self.tmp)rep, _ = render(self.proj, "--from", 1, "--to", 2, "--job", job, "--preview", cwd=self.tmp)