Repository navigation
Honor the CLI video output path and fail on unmatched text - #237
Merged
Merged
Conversation
Stage the numbered render privately, publish the requested video and subtitle, and report a missing text match as a failure. Keep existing explicit destinations intact. Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.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.
Summary
Honor the video path passed to the CLI's
--stage 2 --output_file. The shared renderer intentionally numbers outputs for the UI; the CLI was leaking that internal filename. Forselected clip.v2.mp4, the previous command exited zero but createdselected clip.v2_no0.mp4. A selection with no match also exited zero and wrote an empty SRT.User impact
With an explicit fresh MP4 destination, callers can now rely on exit status 0 and open that exact MP4 and its sibling SRT. No match exits nonzero without publishing files. An existing explicitly named MP4 or SRT is refused; neither is replaced. The English and Chinese CLI examples document this behavior. The audio CLI and the shared Gradio renderer are unchanged. For a normal input MP4 without an explicit destination, the legacy numbered video and unnumbered subtitle names are retained.
Validation
晚orlater. Tested multi-dot names with spaces, unmatched words, destination video/subtitle collisions, and legacy default names.The CLI stages media in the destination filesystem before publishing. This is not a claim of a two-file crash-safe transaction. Consumers should wait for a successful process exit before reading the pair.
Prepared and verified with Codex assistance.