How benayaram-sandspace/ai-touter-video-generation works
This repository is a course-authoring and automated video-rendering application. Users organize courses into modules and topics, edit scripts and video modes in the studio, then track generated renders and play or download course videos. The backend manages course data and render jobs; rendering prepares narration and audio before producing video, while the client’s Remotion composition selects animated scene types. Several frontend and backend connections are inferred only from module names or unsampled files, so they are omitted rather than presented as verified calls.
Main entry points: videoRenderController.js Render controller · CourseDashboard.jsx Course dashboard · index.js HTTP and socket server · courseController.js Course controller
Components 19
Course authoring
- Course dashboard
client/src/pages/CourseDashboard.jsx - Course tree
client/src/components/CourseTree.jsx - Script studio
client/src/pages/ScriptStudio.jsx - Render queue UI
client/src/components/RenderQueueModal.jsx - Video player
client/src/components/VideoPlayer.jsx
Video rendering
- Scene composition
client/src/remotion/Composition.jsx - Scene catalog
client/src/remotion/scenes - Scene components
client/src/remotion/components - Render controller
server/src/controllers/videoRenderController.js - Google Chirp TTS
server/src/services/googleChirpTTS.js - Telugu TTS
server/src/services/teluguTTS.js
Course API
- HTTP and socket server
server/src/index.js - Course routes
server/src/routes/courseRoutes.js - Video routes
server/src/routes/videoRoutes.js - Course controller
server/src/controllers/courseController.js
Data and storage
- Course model
server/src/models/Course.js - MongoDB
server/src/config/db.js - R2 and local storage
server/src/config/r2.js
Other components
- Course editor
Connections 18
- Course editor → Course dashboard: organizes courses
- Course dashboard → Course tree: renders
client/src/pages/CourseDashboard.jsx - Course dashboard → Script studio: opens
client/src/pages/CourseDashboard.jsx - Course dashboard → Render queue UI: opens
client/src/pages/CourseDashboard.jsx - Script studio → Video player: renders
client/src/pages/ScriptStudio.jsx - HTTP and socket server → Course routes: mounts
server/src/index.js - HTTP and socket server → Video routes: mounts
server/src/index.js - HTTP and socket server → MongoDB: connects
server/src/index.js - Course routes → Course controller: routes requests
server/src/routes/courseRoutes.js - Video routes → Render controller: routes requests
server/src/routes/videoRoutes.js - Course controller → Course model: reads and writes
server/src/controllers/courseController.js - Course controller → R2 and local storage: uploads media
server/src/controllers/courseController.js - Render controller → Course model: loads course
server/src/controllers/videoRenderController.js - Render controller → R2 and local storage: stores output
server/src/controllers/videoRenderController.js - Render controller → Google Chirp TTS: synthesizes speech
server/src/controllers/videoRenderController.js - Render controller → Telugu TTS: uses Telugu speech
server/src/controllers/videoRenderController.js - Scene composition → Scene catalog: selects scene
client/src/remotion/Composition.jsx - Scene catalog → Scene components: uses visuals
client/src/remotion/scenes/TitleScene.jsx