* fix(cli): media commands read only local, self-contained inputs
The shared ffmpeg/ffprobe input guard kept the hls and concat demuxers on
the grounds that the playlist folder walk confines what a list names, but
only render and check/snapshot run that walk. Commands such as transcribe,
audio, media-use generate, remove-background, init, measure and
grade-compare handed the named file straight to ffmpeg, which then opened
whatever the list named, anywhere on disk.
- mediaInputFormatArgs leaves the playlist demuxers out unless the caller
passes { playlists: true } after walking the file (render's urlInput,
snapshot held videos, measure reads of a guarded file), and limits every
input that is not an http(s) URL to the file protocol.
- init, media-use generate and remove-background run the existing walker
on every named source before creating folders, copying, uploading or
probing.
- The remaining bare -i reads go through the guard; the diff frame
sequence, the local TTS probe and studio-server's media input args get
explicit local-file limits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): walk playlists before every CLI read that allows them
Render's urlInputArgs keeps reading playlists because preflight walks every
source first, but the CLI calls the same engine probes on files nobody
walked: timeline, check, info, audio --element and remove-background.
- runFfprobe walks a local input first and throws PlaylistLeavesFolderError
for a list naming files outside its folder, so those probes fail as that
file's error instead of opening what the list names.
- check decodes a clip for silence with playlists allowed: the engine probe
before it already refused one that leaves its folder, so a contained HLS
clip keeps its audio findings.
- transcribe (every engine) and audio --read walk the input before hashing,
making cache folders or handing it on; media-use generate also walks
--motion and --audio. remove-background relies on the engine probe.
- One table test proves each up-front refusal fires before anything is
written, plus a listing-level check of the playlist opt-in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: trim comments the playlist changes added
Keeps each changed file at or under its comment share at the merge base:
the explanation moves into a name where it still matters.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): document the playlist refusal and walk file: URLs too
- docs: transcribe, audio, init --video/--audio and remove-background take a
single self-contained media file; playlists and concat lists are refused.
- The engine probe converts a file: URL to a path before the folder walk,
so a playlist named that way is refused like a plain path.
- init prints its refusal as literal CLI text, which keeps the printed-value
baseline.
- The probe tests wait for each spawn before starting the next, since the
walk now runs first and could reorder them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>