Move processed videos and snapshots out of incoming folders into output_dir #112
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Today the incoming camera folders are a mix of processed and unprocessed media: transcoded .dav sources stay behind unless delete_after_transcode is set, and snapshots are served from the incoming tree forever (the snapshots table points there). There is no way to look at an incoming folder and know what has been processed.
Anything still sitting in an incoming folder should mean "not processed yet". Processed snapshots and videos should live in cang's own storage (output_dir) and be removed from incoming, including .idx sidecars and emptied date/hour directories. Existing deployments (DB rows pointing into incoming, already-transcoded sources still in incoming, per-clip snapshot copy dirs) need to migrate to the new scheme automatically.
Findings from exploration:
Plan of attack:
<camera>/clips/<date>/…,<camera>/snapshots/<date>/…), copy_into_store, prune_empty_dirs.