How juneyaooo/rea-video works
rea-video is a video reverse-engineering CLI: an engineer or agent supplies a clip and receives a shot-by-shot account of how it was made, plus a remake plan and report. The documented analysis spans shot segmentation, production-method classification, visual and audio evidence, overlays and editing, and photographic production aspects; optional vision-model and agent review can refine the findings. The graph follows the documented workflow and source-index references. Some implementation details and call sites were not sampled, so uncertain connections are omitted rather than inferred.
Main entry points: pipeline.py Decomposition · cli.py CLI · review.py Agent review · capsule_cinema.py Capsule bridge
Components 24
Entry and orchestration
- CLI
rea_video/cli.py - Decomposition
rea_video/pipeline.py - Language support
rea_video/i18n.py
Video analysis
- Media probing
rea_video/media.py - Video metadata
rea_video/probe.py - Shot detection
rea_video/shots.py - Visual features
rea_video/features.py - Visual analysis
rea_video/visual.py - Audio analysis
rea_video/audio.py - Sound sources
rea_video/sound_source.py - Text and overlays
rea_video/packaging.py - Motion analysis
rea_video/motion.py
Interpretation and review
- Method classification
rea_video/classify.py - Vision model
rea_video/vlm.py - Agent review
rea_video/review.py - Review memory
rea_video/memory.py - Production aspects
rea_video/aspects/base.py
Plans and outputs
- Production summary
rea_video/production.py - Remake plan
rea_video/plan.py - Analysis report
rea_video/report.py - Evaluation
rea_video/evaluate.py
Remake integration
- Capsule bridge
rea_video/integrations/capsule_cinema.py - Remake workflow
rea_video/remake.py
Other components
- Video analyst
Connections 25
- Video analyst → CLI: submits video
- CLI → Decomposition: runs analysis
rea_video/cli.py - Decomposition → Media probing: reads media
rea_video/pipeline.py - Decomposition → Video metadata: probes video
rea_video/pipeline.py - Decomposition → Shot detection: finds shots
rea_video/pipeline.py - Decomposition → Visual features: extracts features
rea_video/pipeline.py - Decomposition → Method classification: classifies shots
rea_video/pipeline.py - Decomposition → Visual analysis: analyzes visuals
rea_video/pipeline.py - Decomposition → Audio analysis: analyzes audio
rea_video/pipeline.py - Decomposition → Sound sources: finds sound sources
rea_video/pipeline.py - Decomposition → Text and overlays: analyzes overlays
rea_video/pipeline.py - Decomposition → Motion analysis: measures motion
rea_video/pipeline.py - Decomposition → Vision model: requests model analysis
rea_video/pipeline.py - Decomposition → Production aspects: uses aspect analyses
rea_video/pipeline.py - CLI → Agent review: builds review tasks
rea_video/cli.py - Agent review → Review memory: uses review hints
rea_video/review.py - CLI → Review memory: uses stored patterns
rea_video/cli.py - CLI → Remake plan: creates plan
rea_video/cli.py - CLI → Capsule bridge: exports analysis
rea_video/cli.py - CLI → Remake workflow: runs remake
rea_video/cli.py - CLI → Evaluation: evaluates results
rea_video/cli.py - Decomposition → Analysis report: provides report data
rea_video/pipeline.py - Capsule bridge → Remake plan: uses plan details
rea_video/integrations/capsule_cinema.py - CLI → Language support: sets language
rea_video/cli.py - Video analyst → Vision model: configures optionally