calesthio/OpenMontage · error · ValueError
local audio file does not exist: {path}
Error message
local audio file does not exist: {path} What it means
Error "local audio file does not exist: {path}" thrown in calesthio/OpenMontage.
Source
Thrown at tools/video/seedance_ark.py:1162
self, decoded: bytes, mime: str, *, max_seconds: int = 15
) -> float:
suffix = ".wav" if mime == "audio/wav" else ".mp3"
# Windows does not allow ffprobe to reopen a NamedTemporaryFile while
# Python still holds the file handle. Close it before probing, then
# remove it explicitly on every path.
with tempfile.NamedTemporaryFile(suffix=suffix, delete=False) as temp:
temp.write(decoded)
temp.flush()
temp_path = Path(temp.name)
try:
return self._probe_local_audio_duration(temp_path, max_seconds=max_seconds)
finally:
temp_path.unlink(missing_ok=True)
@staticmethod
def _probe_local_audio_duration(path: Path, *, max_seconds: int = 15) -> float:
if not path.is_file():
raise ValueError(f"local audio file does not exist: {path}")
ffprobe = shutil.which("ffprobe")
if not ffprobe:
raise ValueError("ffprobe is required to validate local reference audio")
try:
proc = subprocess.run(
[
ffprobe,
"-v",
"error",
"-show_entries",
"format=duration",
"-of",
"default=noprint_wrappers=1:nokey=1",
str(path),
],
capture_output=True,
text=True,
timeout=10,View on GitHub (pinned to 95e1c3d0ab)
Solutions
- Correct the audio file path; the file does not exist at the given location.
- Use an absolute path or verify the working directory if using a relative path.
When it happens
Trigger: A local reference audio path passed to Seedance Ark does not exist on disk.
Common situations: See trigger scenarios.
AI-assisted analysis of calesthio/OpenMontage@95e1c3d0ab (2026-08-15).
Data as JSON: /api/errors/c18560b1d7d00b31.
Report an issue: GitHub.