Repository navigation
capcut-cli 0.37.0: the miner report's top 9 in one release - #184
Merged
Merged
Conversation
….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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.cmdlaunchers 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):
planDubClipsreturns the caller's own clips, sodubno longer matches placed clips back by cue and start time (no output change).registryVerdictfor the version write guard andcapcut version(output byte-identical).describe: addsdub,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.
capcut versionnames the write-only route for JianYing 11.x drafts (#50, PR 178, easy-jianying#1).renderpads 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).quickstart --srtanddetect-retakes --srtrefuse a subtitle file that is not valid UTF-8, asimport-srtdoes (subtitleedit#16978).renderplays audio at speeds above 2x and below 0.5x by chaining tempo stages (Concat#762).import-srt,quickstart --srt,detect-retakes --srt,compilecaptions anddub(bili-sub2txt#1).render --burn-captionsnames a caption font that is missing instead of reporting a faithful render;--strictrefuses (mockingbird#276).capcut.cmdlaunchers, built and run on a Windows runner before publishing (rea-capcut#12).dubturns a subtitle track into speech, one clip per cue from a local TTS command (Concat#770).render --audio-trackand--audio-channelchoose 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
dubto the README tables.Evidence
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:
rendernow exits 1 on an output shorter than the draft (0.36.0 exited 0),import-srtand the other subtitle readers accept WebVTT, a newdubcommand, newrender --audio-track/--audio-channeloptions, a new Windows zip and release job. Draft files are written as before.🤖 Generated with Claude Code