Engineer map of the stack — readable on phone. The full dump still lives in repo README.TECHNICAL.md for clone-time reading.
RideReel at a glance
Architecture
RideReel is a headless batch pipeline plus optional FastAPI UI.
| Idea |
Detail |
| Job |
One recording (or compile) = one SQLite row + work/<rec_id>/ |
| Stages |
S1→S10; never call each other — artifacts only |
| Concurrency |
One GPU worker, one job at a time |
| Offline |
Watch/pipeline: no downloads. Serve: Photos / YT / IG OK |
Pipeline stages (S1→S10)
Product paths
| Path |
Starts from |
Output |
| Per-recording reels |
Upload / inbox num_reels |
reel_*.mp4 9:16 |
| Cinematic |
Upload / compile cinematic |
cinematic_*.mp4 16:9 |
| Multi-source compile |
Library batch / CLI |
Multi-source EDL job |
| Album Shorts drip |
Library → Start program |
1 job/day × 2 Shorts |
| Dual masters |
platform_dual |
reel_XX_yt + reel_XX_ig |
See also: Pipeline · Cinematic · Library & albums · Story matrix
Stack (by concern)
| Concern |
Tech |
| Media |
ffmpeg / ffprobe / PyAV |
| 360 / geometry |
Equirect / dual fisheye projection |
| Audio ML |
VAD, PANNs-class events, RPM cues |
| ASR |
faster-whisper + word timestamps |
| Telemetry |
Gyro / accel / GPS when present |
| Vision |
ONNX YOLO, tracking, optical flow, pose |
| VLM / LLM |
llama.cpp — Qwen2.5-VL captions, narrative |
| Edit |
Heuristic / narrative / LLM → EDL + hooks |
| Render |
S9 ffmpeg; S9a Voicebox; S9b MusicGen |
| UI |
FastAPI + classic / v2 shell |
| Publish |
YouTube + Instagram schedule queues |
| Learn |
Shorts → ridereel.learning.yaml (Wed IST) |
Dual-platform masters
Config & layout
config/ridereel.yaml # committed defaults
config/ridereel.local.yaml # machine overrides (gitignored)
config/ridereel.learning.yaml # Shorts tune deltas
work/<rec_id>/ # stage artifacts
outbox/<rec_id>/ # finished MP4 + manifest
Install: editable app /opt/ridereel/app, venv /opt/ridereel/venv, media /srv/ridereel.
systemd
| Unit |
Command |
ridereel |
ridereel watch |
ridereel-serve |
UI + IG publisher + Wed learning + album drip |
Env on units: HF_HUB_OFFLINE=1, TRANSFORMERS_OFFLINE=1, CUDA_VISIBLE_DEVICES=0.
CLI map
| Command |
Use |
ridereel watch |
Inbox → jobs |
ridereel serve |
UI + schedulers |
ridereel compile |
Multi-source reel/cinematic |
ridereel learn |
pull / tune / auto / status |
ridereel doctor |
Hardware / models |
Key modules
| Module |
Role |
pipeline.py / stages |
S1–S10 runners |
album_program.py |
Daily Shorts drip |
story_graph.py |
Opt-in story-matrix path |
hook.py |
H1–H3 open retention |
platform_dual.py |
YT vs IG masters |
learning.py |
Shorts feedback |
instagram_upload.py |
IG schedule + publish |
web/markdown_docs.py |
This handbook catalog |
Working rules
- Verify before assuming — measurements in
docs/verification.md.
- No network in the watch pipeline.
- Stages stay decoupled (disk only).
- Tunables in config; prompts hashed into cache keys.
- Implement backlog only when named (
memory.md).
story_matrix stays gated until the Hampi trial is signed off.