HKUDS/DeepTutor · error · ManimRenderError
Failed to extract review frames:
Error message
Failed to extract review frames:
What it means
Raised when the ffmpeg subprocess spawned to extract a review frame at a given timestamp exits non-zero. The ffmpeg stderr is appended to the message. Fires on malformed/corrupt video files, timestamps beyond the video duration, or a broken ffmpeg installation.
Solutions
- Verify ffmpeg is installed and on PATH
- Check the video file is a valid, non-empty container (run ffprobe on it)
- Clamp frame timestamps to the probed video duration before extraction
- Retry extraction at a nearby timestamp; skip frames that repeatedly fail
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at deeptutor/agents/math_animator/visual_review.py:85 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/DeepTutor@3e82f13042 (2026-08-27).
Data as JSON: /api/errors/ef077b289553ae79.
Report an issue: GitHub.
Appendix: source
Thrown at deeptutor/agents/math_animator/visual_review.py:85
f"{timestamp:.3f}",
"-i",
str(video_path),
"-frames:v",
"1",
str(frame_path),
]
await self._emit_progress(
f"Extracting review frame {idx}/{len(timestamps)} at {timestamp:.1f}s.",
raw=True,
)
process = await asyncio.create_subprocess_exec(
*command,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
)
_stdout, stderr = await process.communicate()
if process.returncode != 0 or not frame_path.exists():
raise ManimRenderError(
"Failed to extract review frames: " + stderr.decode(errors="ignore").strip()
)
frame_paths.append(frame_path)
return frame_paths
async def _probe_duration(self, video_path: Path) -> float:
command = [
"ffprobe",
"-v",
"error",
"-show_entries",
"format=duration",
"-of",
"default=noprint_wrappers=1:nokey=1",
str(video_path),
]
process = await asyncio.create_subprocess_exec(
*command,View on GitHub (pinned to 3e82f13042)