Apply retention to refined replay originals
RetentionDays (0-365, default 7) sets OriginalsExpireAt from the end of
the live, or from publication with 0 days. The replay worker purges the
segments, source and draft of published emissions and deletes emissions
never published by the deadline, marking their flow deleted. Owners can
purge published originals early with DELETE podcasts/{id}/originals.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
46fc937443
commit
e9ffbc78be
17 changed files with 5618 additions and 27 deletions
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
### Added
|
||||
|
||||
* [Yavsc.Server/Podcasts] Apply the retention of refined replays: `RetentionDays` (0–365, default 7; migration `PodcastReplayRetention` adds `LiveFlow.RetentionDays`) sets `OriginalsExpireAt` from the end of the live, or from publication with 0 days. The replay worker then deletes the segments, source and draft of published emissions (`OriginalsDeleted`, the MP4 stays playable but no longer re-editable) and deletes emissions never published by the deadline, marking their flow deleted. The owner can purge published originals early with `DELETE podcasts/{id}/originals`. The web catalogue keeps showing the published MP4 after the purge.
|
||||
|
||||
* [Yavsc.Server/Podcasts] Add the private replay draft for emissions opted into refinement (`RefineReplay`, ignored for OBS; migration `PodcastRefineReplay` adds `LiveFlow.RefineReplay`). After the live, or after an interruption, the segments are remuxed into an owner-only `source.mp4` draft (`Preparing`, `Ready`, `Publishing`, `Failed`); the owner saves revisioned marks and removed ranges (`PUT podcasts/{id}/draft`, 409 on stale revision, marks inside removed ranges dropped), streams the source (`GET/HEAD podcasts/{id}/draft/source.mp4`) and queues an idempotent publication (`POST podcasts/{id}/draft/publish`). The worker renders or copies the source within quota and atomically replaces `replay.mp4`, keeping the previous replay on failure; re-edition is supported. Until publication, playlist and segments return 403 to other users, drafts are hidden from listeners, and the web catalogue shows "Replay en préparation". The FFmpeg editor now detects audio itself and keeps the last range open to the real end of the media.
|
||||
|
||||
* [Yavsc.Server/Podcasts] Add the frame-accurate replay editing prototype: `ReplayEditPlan` turns removed ranges into kept ranges (merge, clamp, reject empty, out-of-range, total or excessive removals) and `FfmpegPodcastReplayEditor` renders them with one accurate-seek FFmpeg input per range, `concat` and H.264/AAC re-encoding. Share the FFmpeg runner with the replay remuxer. Tests check exact kept frames, audio/video durations, faststart and quota on synthetic sources with and without a start offset; the editor is not wired to the API yet.
|
||||
|
|
|
|||
Loading…
Reference in a new issue