Footage Ingest
1. Five Mandatory Steps (Ingest is not complete without all)
| Item | Specification | Database Field(s) |
|---|
| Content Fingerprint | File sha256 (full file, not frame hash) | asset.sha256 |
| Technical Specs | ffprobe: duration/resolution/framerate/audio tracks/channels/bitrate | asset.durationSeconds, etc. |
| Rights & Usage | rights.status + rights.declaredUsage[] | See Rights Classification below |
| Proxy File | H.264 720p or 1080p low-bitrate proxy + thumbnail | asset.proxyPath |
| Index Entry | Tags/entities/availability/reuse suggestions | media_index_entry |
2. Idempotency Rules
- Same sha256 uploaded again → matches existing asset, no new record created; only missing fields (title/tags/rights) can be filled in.
- Same name, different content → treated as new asset, filename gets a sequence number (overwrite same-named files prohibited).
- Resumable: Each ingest step leaves a
footage. event marker; reruns continue from the last successful step.
3. Rights & Usage Classification (G-ED2 Prerequisite)
| Status | Allowed Actions |
|---|
cleared + usage includes timeline-source | Can be edited into final video, can be used for cover |
cleared + only cover/thumbnail | Can only be used for cover/thumbnail, cannot enter timeline |
cleared + only reference-only | Can only be used for style/composition reference, cannot appear in final video |
pending / restricted / unknown | Only ingested and logged, cannot be used in a film; missing fields treated as violation (fail-closed) |
Rights classification references the factual statement from the footage provider. Footage librarians must not determine copyright ownership on their own.
4. Proxy & Thumbnail Parameters (Default, Overridable)
Proxy: ffmpeg -i <src> -vf scale=-2:720 -c:v libx264 -preset veryfast -crf 24 \
-c:a aac -ar 48000 -ac 2 -movflags +faststart <proxy.mp4>
Thumbnail: single frame at 1s (if <1s, take first frame) → scale=640:-2 → <thumb.jpg>
- Proxy files are for preview and rough cut only; final assembly uses the source file (avoids double compression).
- Transcoding failures must produce an explicit error (missing ffmpeg / source file unreadable / disk full); zero-byte fake outputs are not allowed.
5. Self-Check List
6. Failure Modes
| Symptom | First Check | Resolution |
|---|
| Two records for the same material | SHA-256 calculation method inconsistent (full file vs. segment) | Standardize full-file SHA-256; merge tags after content deduplication |
| Proxy plays but final render fails | Proxy mistakenly used as source | Force use of asset.localPath source path during rendering |
| Footage used in film later flagged as violation | Rights/usage not registered | Roll back the film, re-register rights, re-export the timeline (keep old version) |
| Thumbnail frame is all black | Source is HDR / color space anomaly | Add -vf zscale=t=linear:npl=100,tonemap=hable,zscale=p=bt709 during transcoding as fallback and log it |