ExploreMaths/CodeVideoRenderer
ExploreMaths/CodeVideoRenderer has 59 GitHub stars and 5 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-16 20:16 UTC. Last push 2026-06-20.
What you can do
- 🎬 Professional animation effects: Based on Manim engine, providing high-quality animation rendering
- 📝 Multi-language support: Syntax highlighting for various programming languages including Python, JavaScript, Java, and more
- ⚙️ Highly customizable: Adjustable typing speed, line spacing, camera behavior, and other parameters
- 🎨 Rich styling: Multiple code highlighting styles (such as github-dark, monokai, etc.)
Measured star growth
- in 24h
- +1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
A Python library for rendering dynamic code videos based on Manim
Creative & MediaREADME.md
Original
A Python library for rendering dynamic code videos based on Manim
CodeVideoRenderer is a Python animation library specifically designed for creating dynamic code demonstration videos. It transforms static code into lively animations that simulate real programming processes.
✨ Core Features
- 🎬 Professional animation effects: Based on Manim engine, providing high-quality animation rendering
- 📝 Multi-language support: Syntax highlighting for various programming languages including Python, JavaScript, Java, and more
- ⚙️ Highly customizable: Adjustable typing speed, line spacing, camera behavior, and other parameters
- 🎨 Rich styling: Multiple code highlighting styles (such as github-dark, monokai, etc.)
- 🔧 Dual renderers: Support for both Cairo and OpenGL rendering backends
🚀 Quick Installation
Prerequisites
- Python 3.8+
- FFmpeg (required for video rendering)
Install FFmpeg first if you haven't:
# Windows
winget install ffmpeg
# macOS
brew install ffmpeg
# Linux
sudo apt update && sudo apt install ffmpeg
Install from PyPI
pip install codevideorenderer
💡 Quick Start
from CodeVideoRenderer import CameraFollowCursorCV
code = '''
def fibonacci(n):
"""Calculate the nth Fibonacci number"""
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
# Example usage
result = fibonacci(10)
print(f"Fibonacci(10) = {result}")
'''
video = CameraFollowCursorCV(
code=('string', code),
language='python',
formatter_style='github-dark',
video_name='FibonacciExample'
)
video.render()
📋 Main Features
Code Animation
- Simulate typing process: Display code character by character, line by line
- Intelligent cursor tracking: Camera automatically follows cursor movement
- Syntax highlighting support: Integrates Pygments syntax highlighting engine
Camera System
- Auto-scaling: Automatically adjust camera zoom based on code content
- Smooth movement: Camera smoothly follows cursor movement
- Focus management: Intelligently recognizes code structure to ensure important parts remain visible
🎯 Use Cases
- Educational demonstrations: Create code explanation videos for programming courses
- Technical presentations: Make code demonstration segments for conference talks
- Algorithm visualization: Dynamically showcase algorithm implementation processes and logic
- Code review: Visualize code modifications and refactoring processes
📚 Documentation
Full documentation and examples available at https://codevideorenderer.readthedocs.io/.
🤝 Contact Us
Found any issues? Please send them to my 163 email or Gmail email. We'll fix them as soon as possible.