video_editing_poc/docs/cost-model-by-video-minute.md

45 lines
1.8 KiB
Markdown

# Cost Model By Video Minute
This document captures the reproducible planning baseline for performance plan item `Cost model by video minute`.
What this model is:
- A benchmark-backed planning model for cost per source-video minute.
- Derived from the checked-in FFmpeg runtime baseline and object-storage bandwidth baseline.
- Based on explicit example cost assumptions that are intended to be replaced with current vendor-specific prices during rollout.
What this model is not:
- It is not live cloud pricing.
- It is not a production invoice forecast.
- It does not include cross-region egress, observability platform costs, database costs, or support overhead.
How to rerun:
```bash
mvn -q -Dtest=CostModelBenchmarkHarness test
```
Generated artifact:
- `target/benchmarks/cost-model-by-video-minute.md`
Interpretation notes:
- `compute` reflects FFmpeg worker time from the preset benchmark.
- `transfer` reflects worker time spent waiting on object-storage throughput assumptions.
- `retention` scales with source and output bitrate assumptions plus retention days.
- `requests` captures one source GET plus clip PUT activity and remains a minor component in the modeled scenarios.
Operational note:
- Replace the example hourly and storage rates with current prices from the target cloud before using this model for budgeting or margin decisions.
Modeled baseline on this workspace:
| Scenario | Compute USD / source min | Transfer USD / source min | Retention USD / source min | Request USD / source min | Total USD / source min |
| --- | ---: | ---: | ---: | ---: | ---: |
| `exact-veryfast-720p` | 0.000189 | 0.000048 | 0.000472 | 0.000045 | 0.000754 |
| `exact-medium-720p` | 0.000251 | 0.000048 | 0.000472 | 0.000045 | 0.000816 |
| `exact-veryfast-720p-slow-storage` | 0.000189 | 0.000096 | 0.000472 | 0.000045 | 0.000802 |