Engine Architecture
GTA VI Stream Clipper
Autonomous 24/7 stream monitoring, chat radar, RAM ring buffers, and vertical reframing.
The stream clipping engine (clipper/) monitors live Twitch and YouTube streams autonomously to produce 9:16 vertical shorts from high-engagement gaming moments.
1. Key Subsystems
[Live Stream (HLS / RTMP)] ──▶ RAM Ring Buffer (120s in memory)
│
[Live IRC Chat] ──▶ Velocity Radar ──▶ Peak Trigger (>3x baseline)
│
â–¼
Vertical Split-Screen Reframer (Webcam + Gameplay)
│
â–¼
Animated Bouncy Captions & Final FFmpeg Encode- IRC Chat Velocity Radar (
irc_radar.py): Ingests live Twitch IRC / YouTube chat messages. Calculates a rolling rolling z-score of chat velocity. When chat spikes above threshold, it triggers highlight evaluation. - Rolling RAM Ring Buffer (
ring_buffer.py): Maintains the preceding 120 seconds of video in system memory, avoiding constant SSD wear. - Vertical Split-Screen Reframing (
render_clip.py): Isolates the streamer facecam into the top 35% of the frame and centers gameplay in the remaining 65%, with word-by-word bouncy animated subtitles.