{"record":{"id":"17d8866301bd3721","repo":"HKUDS/DeepTutor","slug":"rendered-video-duration-could-not-be-parsed-for-vi","errorCode":null,"errorMessage":"Rendered video duration could not be parsed for visual review.","messagePattern":"Rendered video duration could not be parsed for visual review\\.","errorType":"exception","errorClass":"ManimRenderError","httpStatus":null,"severity":"error","filePath":"deeptutor/agents/math_animator/visual_review.py","lineNumber":116,"sourceCode":"            \"-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),\n            min(duration * 0.5, duration),\n            max(duration * 0.85, 0.0),\n        ]\n\n    @staticmethod\n    def _path_to_attachment(path: Path) -> Attachment:\n        suffix = path.suffix.lower()","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/HKUDS/DeepTutor/blob/3e82f130422a813cdd73c10b21a44e9325f5821a/deeptutor/agents/math_animator/visual_review.py#L98-L134","documentation":"Error \"Rendered video duration could not be parsed for visual review.\" thrown in HKUDS/DeepTutor.","triggerScenarios":"Thrown at deeptutor/agents/math_animator/visual_review.py:116 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"}