World's first open-source, agentic video production system. 12 production pipelines, 100+ tools, 700+ agent skill and production-knowledge files. Turn your AI coding assistant into a full video production studio.
Python agentagentic-aiaiclaudecopilotcursorelevenlabsffmpegfluximage-generationopen-sourceopenaipythonremotionstable-diffusiontext-to-speechtext-to-videovideo-generationvideo-production
fix: probe Ark audio data URIs on Windows
calesthio4e0150adc342
diff --git a/tools/video/seedance_ark.py b/tools/video/seedance_ark.pyindex f6843fd4..8412d8a1 100644--- a/tools/video/seedance_ark.py+++ b/tools/video/seedance_ark.py@@ -1194,10 +1194,17 @@ class SeedanceArkVideo(BaseTool):def _probe_audio_bytes(self, decoded: bytes, mime: str) -> float:suffix = ".wav" if mime == "audio/wav" else ".mp3"- with tempfile.NamedTemporaryFile(suffix=suffix) as temp:+ # 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()- return self._probe_local_audio_duration(Path(temp.name))+ temp_path = Path(temp.name)+ try:+ return self._probe_local_audio_duration(temp_path)+ finally:+ temp_path.unlink(missing_ok=True)@staticmethoddef _probe_local_audio_duration(path: Path) -> float: