Output was a fixed name (merged_annotated.mp4) so every download looked
the same. The source clip name is now appended at the back:
merged_annotated_rekap_2026-10-27.mp4
- src/naming.py: annotated_output_name() + source_stem(); client upload
name wins, stored file name is the fallback (reuse endpoint), unsafe
chars replaced, stem capped at 80 chars
- src/job.py: Job.source_stem + add_job(source_stem=...); both output
paths go through the helper
- app.py: capture the sanitized client filename before the collision
suffix is added
- cli.py: same helper for the CLI output name
Verified live on .93: POST /api/analyze with 'rekap 2026-10-27.mp4' ->
output/job-e0409b05/merged_annotated_rekap_2026-10-27.mp4, download 200.