EcoVid: Efficient Code to Video with a Token-Saving and Geometry-Aware Agent Harness
Generating narrated explainer videos by writing executable animation code yields sharp typography, crisp vector diagrams, and exact mathematical visuals, yet existing declarative pipelines and native VLM agents remain slow, costly, and prone to spatial layout collisions and audio-visual drift. Analyzing multi-turn agent trajectories reveals that over two-thirds of model turns and token expenditure are consumed by mechanical bookkeeping---manual frame-offset arithmetic, pixel-level screenshot inspection, and uncached history replay---rather than high-level visual design. We propose EcoVid (Efficient code-to-Video), a carrier-agnostic, token-saving, and geometry-aware agent harness that offloads this mechanical bookkeeping to three deterministic runtime mechanisms. First, Symbolic TTS Timing Binding schedules visual transitions against symbolic sentence anchors in code and binds them to measured speech intervals at runtime, eliminating cumulative timing drift across variable speaking rates. Second, Geometry-Aware Feedback inspects the structured scene layout to deterministically flag bounding-box overlaps, shape occlusions, canvas overflows, and low contrast at zero vision-token…
- arXiv
- 2611.40472
- Authors
- Zexuan Yan, Zhikai Wang, Zhenkun Gao, Yizhuo Jia, Juncheng Zhou and 6 more
- Categories
- cs.CV