mirror of https://github.com/mifi/lossless-cut
Detect missing source file when extracting frames and tracks too
Follow-up to #2797. `cutMultiple` already calls `assertFileExists` before spawning ffmpeg, so a source file that was moved or deleted after being opened produces a clear "Source file no longer exists or is not accessible" message instead of a raw ExecaError plus the generic "Unable to export this file" checklist (change output format, try keyframe cut, change working directory...), none of which can help. The other export paths had no such guard, so they still fail with a bare ffmpeg "No such file or directory". Add the same check to: - `captureFramesRange` (export segment frames as images) - `captureFrameFromFfmpeg` (capture snapshot) - `extractStreams` (extract all tracks / extract single track) `extractAllStreams`/`extractSingleStream` swallowed the error message and showed a generic toast, so let UserFacingError through there as well, matching how the export and merge flows already handle it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PqUn6Bh7hWqPqWejqR8p7uclaude/losslesscut-export-error-wtlsc6
parent
8983749ff3
commit
9406996fc5
Loading…
Reference in New Issue