Skip to content

capcut-cli 0.37.0: the miner report's top 9 in one release - #184

Merged
renezander030 merged 13 commits into
masterfrom
release/v0.37.0-r2
Nov 23, 2026
Merged

renezander030 merged 13 commits into
masterfrom
release/v0.37.0-r2

Conversation

@renezander030

Copy link
Copy Markdown
Owner

Rene reviews this release himself, in place of the nine-step records (Rene, 23 Nov 2026 ~10:55 CET: "I REVIEW"). Reviewed head: 4bc68f256df7b1815a9d232080c22453e3e9fd03.

Checks on this head: full suite on rio with ffmpeg 7.1.5: 1542 tests, 1540 pass, 0 fail, 2 skipped (live cloud ASR and translation). Full suite on xima without ffmpeg: 1552 tests, 0 fail, 33 skipped. Build clean.

Not run (known gap): native macOS and Windows. The Windows zip and its capcut.cmd launchers are built and run on the release's own Windows runner before publishing; macOS runs only in CI. No claim is made for either here.

Supersedes PR 14 (head ab88de3): this head adds two fixes found in review: a soft-caption render without audio is held to its gaps-closed length (a1b1ef9), and a render that exits non-zero reports ok false (4bc68f2).

The nine-step review's code changes, not in this release (they go to a 0.37.1 card with full records):

  1. planDubClips returns the caller's own clips, so dub no longer matches placed clips back by cue and start time (no output change).
  2. The portable build's runtime path comes from the per-target layout (no output change).
  3. One registryVerdict for the version write guard and capcut version (output byte-identical).
  4. The Chinese command reference regenerated from describe: adds dub, matting, catalogue, detect-retakes; a drift test covers it.

capcut-cli 0.37.0: nine fixes and additions, each with its own commit, changelog line and tests that fail before the change and pass after it.

  1. Support table: CapCut 9.5.0 and 9.8.0 are recorded as reported builds with their evidence links, and capcut version names the write-only route for JianYing 11.x drafts (#50, PR 178, easy-jianying#1).
  2. render pads audio to the timeline, so a short sound no longer cuts the proxy, and a file shorter than the draft now fails instead of reporting success. A draft with main-track gaps is held to its gaps-closed length (ComeCut#26).
  3. quickstart --srt and detect-retakes --srt refuse a subtitle file that is not valid UTF-8, as import-srt does (subtitleedit#16978).
  4. render plays audio at speeds above 2x and below 0.5x by chaining tempo stages (Concat#762).
  5. WebVTT import in import-srt, quickstart --srt, detect-retakes --srt, compile captions and dub (bili-sub2txt#1).
  6. render --burn-captions names a caption font that is missing instead of reporting a faithful render; --strict refuses (mockingbird#276).
  7. A portable Windows x64 zip with the official Node runtime and capcut.cmd launchers, built and run on a Windows runner before publishing (rea-capcut#12).
  8. dub turns a subtitle track into speech, one clip per cue from a local TTS command (Concat#770).
  9. render --audio-track and --audio-channel choose the audio stream or channel, and the result lists each source's streams (lossless-cut#256).

Also: a test-only fix so the command-reference comparison passes on a CRLF checkout, and a final pass that gives subtitle reading one strict entry point, moves render's exit rules into one tested function, simplifies the portable builder per target, pins the Windows release image, shares one fake ffmpeg across the render tests and adds dub to the README tables.

Evidence

  • Full test suite on Linux with ffmpeg 7.1.5: 1530 tests, 1528 pass, 0 fail; the 2 skipped need live cloud services. Without ffmpeg: 1540 tests, 0 fail.
  • Every item's new tests fail on the previous code and pass on this branch.
  • Lint clean; a fresh install of the packed tarball passes the release smoke; the portable Linux archive tests pass (10 of 10) and the Windows archive layout tests pass (7 of 7).
  • An end-to-end run of each item against published 0.36.0 with ffprobe-measured output, for example: a 2 s sound under 6 s of video renders 2.000 s on 0.36.0 and 6.000 s here; 3x audio plays 2 s of its source on 0.36.0 and all 6 s here; a WebVTT file that 0.36.0 refuses imports as 2 cues at their times.
  • Not run: the Windows archive and launchers (they run on the release's Windows runner before publishing), macOS, a real speech engine for dub (tested with a stub TTS command), live cloud ASR and translation.

Door

Two-way until the release: reverting the merge undoes it. One-way after publishing: npm 0.37.0 and the release assets stay published; a fix would ship as 0.37.1.

Blast radius

The npm package and portable downloads for everyone who updates to 0.37.0: render now exits 1 on an output shorter than the draft (0.36.0 exited 0), import-srt and the other subtitle readers accept WebVTT, a new dub command, new render --audio-track/--audio-channel options, a new Windows zip and release job. Draft files are written as before.

🤖 Generated with Claude Code

renezander030 and others added 13 commits November 22, 2026 17:59
….x write-only route

capcut version now reports 9.5.0 and 9.8.0 as supported with reported
evidence and its link, and for JianYing 11.x drafts names the working
route: a new plaintext draft opens and the app encrypts it on save, while
an existing 11.x draft cannot be read or edited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ader

quickstart --srt and detect-retakes --srt decoded the file lossily, so a
Latin-1 SRT became replacement characters in the draft and in retake
detection. Both now use the strict reader import-srt uses and refuse the
file with the same message; quickstart reads it before creating the draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ses the draft

A sound shorter than the video ended the whole proxy through -shortest, and
the render still reported ok and exited 0. The mixed audio is now padded to
the draft's duration (apad, probed like the other chain filters), and a
written file whose probed duration drifts by more than one frame makes the
render exit non-zero, with or without --verify; the file is kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atempo accepts 0.5 to 2 per stage, and a speed outside that range left the
proxy's audio at 1x. The tempo is now a chain of stages whose product is the
speed, so 3x plays all of its source and 0.25x fills its slot at the same
pitch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…publishing

The release builds capcut-cli-v<version>-win-x64.zip next to the macOS and
Linux archives: the official Node runtime (node.exe and its license), the
packed CLI, capcut.cmd and capcut-cli.cmd launchers and a .sha256 file. The
zip is written by the builder itself, deterministically, so no zip tool is
needed. A Windows runner in the release's native matrix builds it and runs the
portable test through cmd.exe, and publishing waits for it; CI's Windows smoke
now requires the same test.
capcut dub <project> <subtitles.srt|.vtt> --tts-cmd <template> runs the same
local TTS template as tts once per cue (markup removed, the lexicon applied
when given), measures each clip with ffprobe and places it at the cue's start
on one audio track ("dub" unless --track-name). A clip whose speech runs into
the next cue or into a segment already on the track is refused before
anything is written; --trim-overlap cuts it there instead. The subtitles are
read as strict UTF-8; WebVTT headers, NOTE/STYLE/REGION blocks, cue settings
and mm:ss timestamps are accepted.
…r streams

render played the first audio stream of every source and dropped the rest
without a word. --audio-track <n> picks the stream, --audio-channel
left|right|mix takes one channel of a stereo source as mono (pan, probed
like the other conditional filters), the result lists each audio source's
stream count, stderr names a source with several streams, and a track a
source does not have is refused before ffmpeg runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ithful

A caption whose draft font file is missing or unusable was drawn in
ffmpeg's default face while the fidelity census still said faithful.
Those captions now count under fidelity.dropped.missing_fonts with each
font named once, stderr names the font, and --strict refuses. A caption
that names no font keeps the default face without a note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
import-srt refused a WebVTT file with "Invalid SRT timestamp near line 1:
WEBVTT" although export-srt writes that format. One reader in srt.ts,
parseSubtitles, tells the two apart by the WEBVTT header and reads the
spec's variants: titled headers with metadata lines, NOTE, STYLE and REGION
blocks, cue identifiers, cue settings, mm:ss.ttt and many-digit-hour
timestamps, voice, class, language and ruby tags, inline timestamps and
character references. import-srt, quickstart --srt, detect-retakes --srt,
compile captions and dub all use it; dub's own reader is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Subtitle cues come from one strict entry point, readSubtitleCues, used by
  import-srt, quickstart, detect-retakes, compile captions and dub.
- render's notes and exit rules live in renderOutcome, tested directly; the
  CLI only prints them and fails.
- The portable builder picks each target's runtime name, launchers and
  archive writer once (portableLayout).
- The Windows release build runs on windows-2025, and a test holds the
  release matrix to the builder's targets.
- Render tests share one fake ffmpeg whose filters follow PROBED_FILTERS.
- The README command tables name dub and WebVTT import in all three
  languages, and the README version check covers the Windows archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With --soft-captions and no audio, the proxy length took the last cue as
the end of the file. ffmpeg leaves the mov_text track out of the
container's duration, so the file ends with the video: a draft whose
last cue runs past the main track was held to a length the file never
has, and render exited 1 where 0.36.0 exited 0. The proxy is now the
gaps-closed length, as without captions; with audio it stays off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
render printed its result before applying the exit rules, so a file that
--verify turns into an error (a proxy-held length, or no ffprobe to
check with) printed ok true and then exited 1. The exit rules now run
first, and a render that exits non-zero reports ok false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@renezander030
renezander030 merged commit 628591f into master Nov 23, 2026
15 of 17 checks passed
@renezander030
renezander030 deleted the release/v0.37.0-r2 branch November 23, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant