{"record":{"id":"1c3c1b74a0a63970","repo":"HKUDS/DeepTutor","slug":"failed-to-inspect-rendered-video-duration","errorCode":null,"errorMessage":"Failed to inspect rendered video duration: ","messagePattern":"Failed to inspect rendered video duration: ","errorType":"exception","errorClass":"ManimRenderError","httpStatus":null,"severity":"error","filePath":"deeptutor/agents/math_animator/visual_review.py","lineNumber":109,"sourceCode":"    async def _probe_duration(self, video_path: Path) -> float:\n        command = [\n            \"ffprobe\",\n            \"-v\",\n            \"error\",\n            \"-show_entries\",\n            \"format=duration\",\n            \"-of\",\n            \"default=noprint_wrappers=1:nokey=1\",\n            str(video_path),\n        ]\n        process = await asyncio.create_subprocess_exec(\n            *command,\n            stdout=asyncio.subprocess.PIPE,\n            stderr=asyncio.subprocess.PIPE,\n        )\n        stdout, stderr = await process.communicate()\n        if process.returncode != 0:\n            raise ManimRenderError(\n                \"Failed to inspect rendered video duration: \"\n                + stderr.decode(errors=\"ignore\").strip()\n            )\n        try:\n            return max(float(stdout.decode().strip() or \"0\"), 0.0)\n        except ValueError as exc:\n            raise ManimRenderError(\n                \"Rendered video duration could not be parsed for visual review.\"\n            ) from exc\n\n    @staticmethod\n    def _choose_timestamps(duration: float) -> list[float]:\n        if duration <= 0:\n            return [0.0]\n        if duration < 2:\n            return [0.0, min(duration / 2, duration), max(duration - 0.05, 0.0)]\n        return [\n            max(duration * 0.15, 0.0),","sourceCodeStart":91,"sourceCodeEnd":127,"githubUrl":"https://github.com/HKUDS/DeepTutor/blob/3e82f130422a813cdd73c10b21a44e9325f5821a/deeptutor/agents/math_animator/visual_review.py#L91-L127","documentation":"Error \"Failed to inspect rendered video duration: \" thrown in HKUDS/DeepTutor.","triggerScenarios":"Thrown at deeptutor/agents/math_animator/visual_review.py:109 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e82f130422a813cdd73c10b21a44e9325f5821a","analyzedAt":"2026-08-27T06:57:25.364Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}