Architecture
Media Pipeline
Preview and HLS generation.
Media processing is async and uses FFmpeg.
- Preview PNGs for video/GIF
- HLS streams for audio/video
- Jobs are queued and executed in the background
Diagram
sequenceDiagram
participant U as User
participant API as API
participant Q as Job Queue
participant W as Worker/FFmpeg
participant S as Storage
U->>API: Upload media
API->>Q: Enqueue preview/stream jobs
Q->>W: Process job
W->>S: Write preview + HLS assets
API-->>U: Serve /hls and preview