How wildstar1965/rayflowai works
RayFlow AI is a browser-based studio for turning photos, soundtrack audio, and voice or text directions into vertical cinematic reels. The workflow runs from media upload and beat analysis through timeline planning and interactive editing to asynchronous FFmpeg rendering and export. The README also describes local project persistence, preview playback, captions, visual inserts, and creative editing features. Edges reflect the README, shown excerpts, and SOURCE INDEX references; several service internals were not sampled, so their detailed call paths are not asserted.
Main entry points: routes.py FastAPI Routes · StudioPage.tsx Studio Workspace · api.ts REST Client · creative_routes.py Creative Routes
Components 22
Editing Studio
- Studio Workspace
frontend/src/pages/StudioPage.tsx - Interactive Timeline
frontend/src/components/studio/InteractiveTimeline.tsx - Creative Controls
frontend/src/components/studio/CreativePanel.tsx - Live Preview
frontend/src/components/studio/useCreativePreview.ts - Local Projects
frontend/src/pages/StudioPage.tsx - REST Client
frontend/src/services/api.ts
Backend API
- FastAPI Routes
backend/app/api/routes.py - Creative Routes
backend/app/api/creative_routes.py - Editing Plan Schema
backend/app/schemas/editing_plan.py
Planning and Creative Services
- Beat Analysis
backend/app/services/audio_analysis.py - Directive Interpreter
backend/app/services/command_interpreter.py - Timeline Builder
backend/app/services/timeline_builder.py - Auto Reel Editing
backend/app/services/auto_edit.py - B-Roll Selection
backend/app/services/broll.py - Speech Transcription
backend/app/services/speech_transcription.py
Rendering and Media
- Media Uploads
backend/app/services/media.py - FFmpeg Renderer
backend/app/services/video_renderer.py - Media Storage
backend/app/core/config.py
Other components
- Creator
- Local Ollama
- Pixabay Provider
- Rendered Reel
Connections 23
- Creator → Studio Workspace: edits in
README.md - Studio Workspace → REST Client: requests media and edits
frontend/src/pages/StudioPage.tsx - Studio Workspace → Interactive Timeline: uses timeline
frontend/src/pages/StudioPage.tsx - Studio Workspace → Creative Controls: uses controls
frontend/src/pages/StudioPage.tsx - Studio Workspace → Live Preview: uses preview
frontend/src/pages/StudioPage.tsx - Studio Workspace → Local Projects: persists locally
README.md - Interactive Timeline → REST Client: loads media URLs
frontend/src/components/studio/InteractiveTimeline.tsx - Live Preview → REST Client: loads media
frontend/src/components/studio/useCreativePreview.ts - REST Client → FastAPI Routes: calls REST endpoints
frontend/src/services/api.ts - REST Client → Creative Routes: calls creative endpoints
frontend/src/services/api.ts - FastAPI Routes → Media Uploads: handles uploads
backend/app/api/routes.py - FastAPI Routes → Beat Analysis: analyzes soundtrack
backend/app/api/routes.py - FastAPI Routes → Directive Interpreter: interprets directives
backend/app/api/routes.py - FastAPI Routes → Timeline Builder: builds project plan
backend/app/api/routes.py - FastAPI Routes → Auto Reel Editing: starts auto edit
backend/app/api/routes.py - FastAPI Routes → Speech Transcription: uses transcription
backend/app/api/routes.py - FastAPI Routes → FFmpeg Renderer: starts render job
README.md - FastAPI Routes → Editing Plan Schema: validates plans
backend/app/api/routes.py - Creative Routes → B-Roll Selection: selects assets
backend/app/api/creative_routes.py - Creative Routes → Pixabay Provider: downloads assets
backend/app/api/creative_routes.py - Directive Interpreter → Local Ollama: optional interpretation
backend/app/services/command_interpreter.py - FFmpeg Renderer → Media Storage: reads and writes media
backend/app/services/video_renderer.py - FFmpeg Renderer → Rendered Reel: produces MP4
README.md