Reel Maker

← Upload

Reference

Technical reference

Architecture map, stack, deploy — readable on phone.

docs/handbook/technical.md

Engineer map of the stack — readable on phone. The full dump still lives in repo README.TECHNICAL.md for clone-time reading.

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

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)

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

  1. Verify before assuming — measurements in docs/verification.md.
  2. No network in the watch pipeline.
  3. Stages stay decoupled (disk only).
  4. Tunables in config; prompts hashed into cache keys.
  5. Implement backlog only when named (memory.md).
  6. story_matrix stays gated until the Hampi trial is signed off.