AI-Live-Review: Live Stream Recording & Review
Recording, transcription, keyframe extraction, and automatic review reports — the first AI application I built.

This is the first AI application I built, and so far the only one with public code. What it does: record a live stream, then have AI watch it and produce a review report.
Recording and scheduling
Supported platforms: Douyin, Kuaishou, Bilibili, and Taobao. Recording jobs are scheduled with APScheduler, and a job carries a fair amount of configuration: the live-room address, the streamer’s identifier and name, the recording interval, the per-session duration, the maximum number of segments (0 means unlimited), and a checkbox for whether AI analysis runs automatically after recording. Jobs can be paused, resumed, and stopped, and stop automatically at the segment limit. The data model is just three tables — Task (tasks), Record (recording records), and Settings (system settings) — stored in SQLite, with records managed grouped by streamer.
The backend is split fairly cleanly by service: the scheduler (scheduler.py) manages job lifecycles; stream fetching (stream_fetcher) is based on the open-source DouyinLiveRecorder; the recording service (recorder) is a wrapper around FFmpeg; media processing (media_processor) extracts audio and frames from the recordings; and AI analysis (ai_service) together with prompt management (prompt_manager) handles the analysis side. Beyond the stream fetching, the scheduling, analysis, interface, and reporting are my own development.
Analysis: transcription, keyframes, reports
After recording, two analysis lines run. The audio is transcribed with Alibaba Cloud’s DashScope, and there’s a detail here I spent some effort on at the time: the transcription service’s raw output is word-level timestamps, characters popping out one at a time, and the system intelligently merges them into complete sentences, displayed sentence by sentence with start and end times — otherwise the transcript is simply unreadable. The video gets keyframes extracted automatically for visual content analysis. The two results combine into a consolidated evaluation report, and each job can have its own dedicated analysis Prompt (a commerce stream and a teaching stream look at different things, for instance). The frontend’s record-detail page puts these three side by side: the recording playing online, the sentence-by-sentence timestamped transcript, and the AI report. Everything is exportable: video as MP4; transcripts and reports as TXT or Markdown — and the Markdown transcript carries the streamer, the time, and section headings, so it can go straight into notes.
Stack: backend FastAPI + SQLModel + FFmpeg + APScheduler; frontend React 18 + TypeScript + TailwindCSS, with React Query for automatic data refresh; pages include a dashboard, job management, the record list, record details, and settings. Deployment is one Docker Compose command, with frontend and backend as two separate services.
Pitfalls and boundaries
The pitfalls were mostly in media handling: unstable live streams, FFmpeg parameters, jobs timing out and getting stuck. The repository has a TROUBLESHOOTING document recording a good deal of how those were handled at the time; looking back now, that document is worth more than the code itself. The real live-stream pipeline wasn’t re-verified this time, and things planned in the README don’t count as implemented features.
What it did for me was walk the whole chain once: how data comes in, how it’s preprocessed, how the model analyzes it, how results are presented, and how you investigate when something breaks. Every project after it benefited from that pass.
Designed and built by me (live-stream fetching wraps an open-source project, see above).
Diagrams
graph LR A[Scheduled job] --> B[Fetch live stream] B --> C[FFmpeg recording] C --> D[Audio + keyframes] D --> E[Transcription] D --> F[Keyframe analysis] E --> G[Combined report] F --> G G --> H[Export video + docs]
graph TB
subgraph L1["Frontend"]
FE[React UI]
end
subgraph L2["Backend services"]
SC[Scheduler]
SF[Stream fetcher]
RC[Recorder]
MP[Media processor]
AI[AI analysis]
PM[Prompt manager]
end
subgraph L3["Data layer"]
DB[(SQLite, 3 tables)]
FS[Recording files]
end
FE --> SC
SC --> SF --> RC --> MP
MP --> AI
PM -.-> AI
SC --> DB
RC --> FSUpdates
- Project code published on GitHub