feat: export panel and Render menu, playback options, videos library (owner review 1 phase 5) (#27)
CI / Build and test (push) Successful in 9m41s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 9s
Release / Build, test and publish (push) Successful in 14m49s
CI / PostgreSQL 16 integration (push) Successful in 8m51s
CI / PostgreSQL 17 integration (push) Successful in 9m48s
CI / Docker image (push) Successful in 54s
Release / Server image (push) Successful in 1m39s

Owner review 1 R3, R8, R9. A grouped Export step and Render menu; encoding, playback (reverse, boomerang, loops, fades, hold) and still frames; one videos library on the desktop and the server with a verified trash and copies to a videos folder.

Closes #21

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #27.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-05 09:18:40 +01:00
1 parent 188b2c2e55
commit 728ffa35cb
729 files changed
+26954 -1652

No files matched your search

+292 -21
View File
@@ -332,7 +332,16 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
- **Render** — id, sequence id, preset name, settings JSON, output relative path, codec,
width, height, fps, duration, bytes, created, produced by (client id / server / node),
project id and project version id (the project and version rendered, the version only
when the home holds it with the settings rendered; amended 2026-10-26, R8).
when the home holds it with the settings rendered; amended 2026-10-26, R8), sha256 and
kind (amended 2026-11-05, owner review 1 R3/R8/R9: the SHA-256 of a single-file render,
taken when it is recorded, null for an image sequence's folder, verified file by file when
copied, and for a render recorded before migration 0010, hashed the first time it is
copied, deleted or restored; kind null for a video or an image sequence, told apart by the
codec, or `still` for one frame saved as an image, with fps 0 and duration 0).
- **RenderCopy** (amended 2026-11-05, owner review 1 R3/R8/R9) — id, render id, path, sha256,
bytes, copied at, copied by: one hash-verified copy of a render in a videos folder
(§12.10). No foreign key to the render, so the copy of a server render downloaded to a PC
is recorded too and a copy outlives its render; Chronos never deletes a copy.
- **Project** (amended 2026-10-26, R8) — id, sequence id, name (1–60 characters, unique
among the sequence's live projects), is main (one live Main per sequence), head version
id and number, mirrored version id and mirrored settings version (Main: the version and
@@ -361,8 +370,9 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
desktop only: amended 2026-10-26, R8; workspace-render, stored as 21, a render on this PC
from the originals a workspace project holds; workspace-send, stored as 22, those renders
sent home with their project and version; workspace-move, stored as 23, the workspace
folder moved with its projects; all three run by the desktop only: amended 2026-10-26, R8),
target ids, state (queued, running, paused, done, failed, cancelled),
folder moved with its projects; all three run by the desktop only: amended 2026-10-26, R8;
video-copy, stored as 24, renders copied hash-verified into a videos folder, desktop and
server: amended 2026-11-05, owner review 1 R3/R8/R9), target ids, state (queued, running, paused, done, failed, cancelled),
progress (done/total, fps, eta), log tail, created by, node id, attempts, error, schedule id
(the schedule that queued it; amended 2026-10-26, R10).
- **Schedule** (amended 2026-10-26, R10) — id, system key (set, and unique, on a host's
@@ -399,7 +409,10 @@ schedule, `schedules(enabled, next_run)` (amended 2026-10-26, R10),
`frame_removals(sequence_id, sha256)` (the key) and `frame_removals(sha256)` (migration 0008;
amended 2026-10-26, R6), `projects(sequence_id, name)` and `projects(sequence_id)` where
Main, both on live rows only, `project_versions(project_id, number)` (migration 0009, with
`renders.project_id` and `renders.project_version_id`; amended 2026-10-26, R8).
`renders.project_id` and `renders.project_version_id`; amended 2026-10-26, R8),
`renders(created)` and `render_copies(render_id)` (migration 0010, with `renders.sha256`,
`renders.kind` and the table `render_copies`, no backfill; amended 2026-11-05, owner review 1
R3/R8/R9).
Paging everywhere (keyset pagination on `(first_capture, id)`).
---
@@ -479,7 +492,7 @@ The archive is the source of truth; the database is an index that can be rebuilt
│ ├── locks/ lease files for concurrent writers (server + client on same share)
│ ├── journal/ rename-<plan>.json: a mass rename or Reorganize being applied; convert-<job>.json, .staged, .pins, .photos: a conversion (below; amended 2026-10-26, R7)
│ ├── staging/ copies an import is filing; convert-<job>/<sequence>/: the files a conversion made, until they take their place (below; amended 2026-10-26, R7)
│ └── trash/ deleted sequences and photos, and originals a conversion replaced, kept until Empty; .erased/: what Empty erased that a replaced entry needs (below; amended 2026-10-26, R6, R7)
│ └── trash/ deleted sequences and photos, and originals a conversion replaced, kept until Empty; .erased/: what Empty erased that a replaced entry needs; videos/: deleted renders (below; amended 2026-10-26, R6, R7; amended 2026-11-05, owner review 1 R3/R8/R9)
├── 2026/
│ └── 2026-09-28 Canon EOS R5 - Harbour sunset/ folder = expanded FolderTemplate
│ ├── originals/ IMG_0001.CR2 … names = expanded FileTemplate
@@ -518,6 +531,22 @@ Trash (amended 2026-10-26, R6). Nothing in it is erased except by *Empty* (§12.
SHA-256, a copy of the sequence's `analysis.json` and the job that made it). A photo never
hashed is hashed as it goes; one whose original was already missing goes with its record
alone.
- `trash/videos/<render id>-<UTC ticks>/` with `<render id>-<UTC ticks>.json` beside it
(amended 2026-11-05, owner review 1 R3/R8/R9; §12.10): a deleted render's file (or image
sequence folder) under its own name, and its record: the render's row, the path it was
at, the sequence's id, title and archive-relative folder, the SHA-256 it is restored
against (each file's for a folder), who deleted it and when. Listed as entry
`videos-<render id>-<ticks>`, kind videos, titled by its sequence. The delete runs under
the sequence's lease: the record is written first as `<entry>.json.pending` (the journal,
never listed), the file moves (renamed on its volume; copied, verified and deleted from
another one, committed once the verified copy has its name), then the row goes and the
record takes its name; the next archive open completes a delete whose file reached the
trash and undoes the others. A source that could not be removed after its copy verified
(a file held open) stays whole beside a `<entry>.leftover` marker, removed after a re-hash
at the next open or restore, never over a render recorded there since. Copies in a videos
folder are never touched. Records live under `trash/videos/`, so an older Chronos never
reads them as sequences' and its *Empty* leaves them, the folder growing until a build of
this release empties it.
- `trash/.erasing/`: entries moved aside by Empty before they are deleted, so a listing never
sees half an entry; leftovers are deleted by the next Empty.
- `trash/.erased/<sequence id>.json` (amended 2026-10-26, R7): the record that Empty erased a
@@ -999,6 +1028,32 @@ and a duration; constant, adaptive, interpolated and remapped timings all produc
shape. Fractional positions synthesise frames from the motion field; motion blur scales
with `√(target² − real²)` shutter angle composition (prototype rule).
Output program (amended 2026-11-05, owner review 1 R3/R8/R9). The export's playback
(`export.playback`: direction forward, reverse or boomerang; loops 1–10; fade in and fade
out 0–30 s; hold end 0–60 s) turns the plan into the frames the encoder receives, in order,
each with its duration on the 90 kHz clock and a fade gain (`OutputProgram`). Reverse is the
plan backwards; a boomerang plays forward then backward without repeating the turning
frame; loops repeat the pass, a boomerang's later passes starting at its second frame so the
joint is not doubled. The hold adds whole output periods to the last frame, so a
constant-rate output keeps its grid. Fade in and fade out together take at most half of the
program: longer, both are scaled by the same factor, with the warning
`Export.Render.FadesShortened`. A frame held across a fade is split into its output periods,
so the gain moves smoothly; the first and last frames are black. A fade goes to and from
black, applied after the look and the knee in linear light with the gain read through the
sRGB curve, so it looks even. Every pass is rendered again: render time, the estimate and
the progress count the program's frames, and the duration includes the hold. Median and
mean windows are per plan frame in either direction; star trails accumulate in program
order (reversed trails grow from the end) and start again at each loop; a boomerang with
star trails renders forward with `Export.Render.BoomerangStack`; an unknown direction plays
forward with `Export.Render.DirectionUnknown`. *Preview 10 s* stays the plan forward.
Still frame (amended 2026-11-05, owner review 1 R3/R8/R9). A render can save one source
frame as one image (PNG, JPEG or TIFF 16-bit, the TIFF always at 16 bits): the frame
whole, at the export's output size, with every correction of the frame itself (exposure,
geometry, look, knee) and no stacking, interpolation, motion blur or playback. Its file is
the export's name template, " - " and the 1-based frame number in four digits
(`2026-09-28 Harbour sunset - 4K HEVC - 0413.png`), recorded as a render of kind `still`.
### 11.2 Modules (port, keep the validated behaviour and its tests)
Colour science (linear light, sRGB transfer), orientation detection (declared vs decoded
@@ -1041,7 +1096,13 @@ Encoder session design as prototype: encoder MFT driven directly (not SinkWriter
conversion in-house, Annex-B → MP4 samples, streaming muxer; rate control (VBR/CBR/quality),
GOP, B-frames, profile/level via `ICodecAPI`. Capability discovery (`MFTEnumEx` hardware
flag, friendly names, DXGI adapter) is shown in Settings › Rendering and used to hide
unavailable codecs.
unavailable codecs. Amended 2026-11-05, owner review 1 R3/R8/R9: a value the export names
itself that the encoder refuses through `ICodecAPI` (rate control other than VBR, the
quality or a given bit rate, a given keyframe interval, B-frames other than 2 outside
Baseline) is a render warning (`Export.Encoder.Ignored.<Setting>`), never a failure; every
encoder commits its output without overwriting a file (a name another program took fails
the render); a still is one file (`StillImageSession`, managed on every host), written to a
temporary name first.
### 11.4 Presets (amended 2026-11-04, owner review 1 R5)
@@ -1065,13 +1126,30 @@ sequence · JPEG sequence · TIFF-16 sequence · GIF preview (480 px) · APNG. R
720p/1080p/1440p/4K UHD/DCI 4K/5K/6K/8K/custom; aspects 16:9, 21:9, 4:3, 3:2, 1:1, 9:16,
4:5, source, custom; fps 23.976/24/25/29.97/30/48/50/59.94/60/120.
Advanced encoding and standard resolutions (amended 2026-11-05, owner review 1 R3/R8/R9)
edit the export's existing overrides, so they raise no settings format and render on
nodes of earlier releases: rate control Variable, Constant or Quality (H.264, HEVC and AV1
only), bit rate for Variable and Constant, quality 1–100 for Quality; keyframes in seconds
(0.5–10 by 0.5, or Auto, the preset's), stored as whole frames at the output frame rate and
keeping their seconds when the frame rate changes; B-frames 0–4 or Auto (none for Baseline,
MJPEG, GIF, APNG and image sequences); the profiles the codec and depth allow (H.264
Baseline, Main, High; HEVC Main at 8 bits, Main 10 at 10; AV1 Main only). The managed
codecs have no rate control, keyframes or B-frames to choose. The Resolution choice is
Preset, Source, 720p, 1080p, 1440p, 4K UHD, DCI 4K, 5K, 6K, 8K or Custom: a standard one
writes its landscape box into the overrides and the chosen proportions are fitted in it (4K
at 9:16 = 2160×3840); Custom shows Width and Height. Any edit makes the export "Custom".
### 11.5 Export UI behaviour
Preview stays visible during encoding (optional live preview); single global progress bar
(frames, fps, elapsed, ETA) mirrored to the taskbar; cancel is always available and leaves
no partial files behind; output name from `{title} - {preset}` template; "Reveal in
Explorer" and "Render another preset" follow-ups; batch render of several presets in one
job; per-sequence render history.
job; per-sequence render history. Amended 2026-11-05, owner review 1 R3/R8/R9: the render
history is the Videos section filtered on the sequence (§12.10), reached from the Export
footer's *Videos (n)* and the Render menu; the Render menu (§12.3) is the "Render another
preset" follow-up and *Save frame* saves a still; batch presets inherit the export's
playback.
### 11.6 P2: in-house H.264 intra-only encoder
@@ -1096,6 +1174,8 @@ player smoke test on Windows CI.
│Imp │ │
│ ✎ │ commands of the section live INSIDE the section, in one row above the │
│Edit│ content they act on; every command has a tooltip │
│ ▶ │ │
│Vid │ │
│ ▣ │ │
│Arch│ │
│ ☰ │ │
@@ -1110,8 +1190,8 @@ player smoke test on Windows CI.
└────┴─────────────────────────────────────────────────────────────────────────────┘
```
- Left navigation rail (prototype pattern): Library, Import, Edit, Archive, Jobs and Server
at the top, Settings alone at the bottom (About is the last page of Settings, §12.9;
- Left navigation rail (prototype pattern): Library, Import, Edit, Videos (amended
2026-11-05, owner review 1 R3/R8/R9), Archive, Jobs and Server at the top, Settings alone at the bottom (About is the last page of Settings, §12.9;
amended 2026-10-26, R5); full names in 200 px, collapsible to 48 px of icons with ≡ or
Ctrl+B (state saved at once; a collapsed icon's tooltip names its section before
describing it; amended 2026-10-16, R1), badge counts (warnings, running jobs), hover
@@ -1122,6 +1202,10 @@ player smoke test on Windows CI.
typeface (Segoe UI Variable, system fallback for CJK/Arabic/etc.).
- Window chrome custom (dark title bar), min size 1200×760; per-monitor DPI.
- Keyboard: standard shortcuts, listed in tooltips ("Render · Ctrl+R").
- Videos (amended 2026-11-05, owner review 1 R3/R8/R9; §12.10) is a rail section after
Edit. The rail's shortcuts are Ctrl+1 Library, Ctrl+2 Import, Ctrl+3 Edit, Ctrl+4 Videos,
Ctrl+5 Archive, Ctrl+6 Jobs, Ctrl+7 Server and Ctrl+, Settings (Archive, Jobs and Server
were Ctrl+4…6 before).
- Notifications: unobtrusive toasts inside the window (bottom-right) for job completion,
card detected, server events; optional OS toast when minimised.
- Modals only for destructive confirmations and login.
@@ -1207,7 +1291,9 @@ player smoke test on Windows CI.
keyframes with a spline editor; amended 2026-11-04, owner review 1 R5/R6),
**Time** (fps, timing mode, remap curve, fit-to-duration, plan chart), **Stack**
(median/max, trail length; optional), **Export** (preset, values, output name, batch
list, render history, sponsor slot — Phase 9 only).
list, render history, sponsor slot — Phase 9 only; amended 2026-11-05, owner review 1
R3/R8/R9: the preset table, the Output, Encoding, Playback and File groups and the
footer, below; the render history is the Videos section, §12.10).
- Each step shows where it stands, by its own glyph as well as its colour: to do (its
number), done ✓ (nothing is missing: Auto, or Edited once a setting or value of the step
was set by hand), attention ▲ (a saved analysis of other frames or one that cannot be
@@ -1266,7 +1352,51 @@ Framing and look (amended 2026-11-04, owner review 1 R5/R6; §11.2, §11.4).
editor's save are held, saying *This server's Chronos cannot read these settings; update
it*; a local render of a workspace project is not held. Proportions win (§11.4) changes
no stored format: a 9:16 project on a 4K preset stays format 1, but its server render
needs a server and a render node of this release (§14.7).
needs a server and a render node of this release (§14.7). Amended 2026-11-05, owner
review 1 R3/R8/R9: a project whose playback is not the default (§11.1) is written as
settings format 3 (the playback object and each of its members are left out at their
defaults, so every other project keeps its format, text and hash); Chronos 0.1.0-rc.12 and
earlier open it read-only, and the same gates hold it from a server that announces
format 2 or less. Advanced encoding and standard resolutions raise no format (§11.4).
Export and the Render menu (amended 2026-11-05, owner review 1 R3/R8/R9; §11).
- The header's **Render ▾** reads "Render" whatever the preset, at the same width in every
language (Ctrl+R renders now). Its tooltip gives the preset, the output size, codec and
depth, frame rate, estimated size and time, and the reason when rendering is blocked. Its
menu is built each time it opens: the recommended preset, the batch presets and up to
three recent presets of this sequence's render history (stills left out), then *Other
presets ›* with the presets grouped as Video, Social, Intermediate, Image sequence and Web;
each preset with a muted details line (size · codec · fps) and the current one checked
(no estimates: each costs a plan). Below a separator: *Render batch (n)*, *Add to queue*,
*Save frame ›* (PNG, JPEG, TIFF 16-bit) and *Videos*, which opens the Videos section on
this sequence. Every item has a tooltip.
- *Save frame* saves the frame under the preview's cursor as a still (§11.1), routed as the
sequence's renders are (this PC, the server, a render node; a workspace project with its
originals saves it here into `exports/` and sends it home with the renders, one with
proxies only has its home save it from the project's settings). It is disabled, the
reason in its tooltip, while the sequence is read-only, without a frame to save, or
against a server that announces a settings format below 3.
- The project ▾ menu has *Save project file*; the Export footer keeps it for a library
sequence.
- The Export step's measuring area is the **preset table**: one 28 px row per preset in its
group, each group header collapsible (a group with the preset in use or the recommended one
open at first, else the first group), columns batch ☐, Name with the *Recommended* chip,
Size, Codec, fps, Est. size and Est. time. A click on a row selects its preset, the check
box adds it to the batch.
- The Output panel is four **collapsible groups** that scroll, each with a muted one-line
summary of its values while collapsed: *Output* (Container, Codec, Resolution with Width
and Height for Custom, Output size, Frame rate with Auto, Colour depth; open), *Encoding*
(Encoder, Rate control, Bit rate or Quality, Keyframes, B-frames, Profile; collapsed),
*Playback* (Direction, Loops, Fade in, Fade out, Hold end; collapsed), *File* (File name,
Save to, Sync, Restore settings; open), then the notices. Open or closed is kept per group
for this user in the app's settings, never in the project. Rows that do not apply are
disabled with the reason in their tooltip (B-frames for Baseline, rate control and
keyframes for the managed codecs, Boomerang with star trails); a value set by hand has its
Reset. Fades and hold are sliders 0–10 s by 0.5 s with exact entry beyond.
- A fixed **footer** under the groups: the result line `<file name> · <size> · <time> ·
<duration> · <frames>` (loops and hold included), *Render now* (primary), *Add to queue*,
*Batch (n)*, and the links *Videos (n)* (this sequence's renders), *Reveal*, *Send again*
with *Not sent*, and *Save project file* for a library sequence.
Workspace (amended 2026-10-26, R8; §4.4, §7). Edit opens a sequence of this PC's archive only
as a project of the workspace, and never writes into the library; a capture (sample data)
@@ -1523,6 +1653,13 @@ those entries and nothing when the trash changed since; an entry that changes wh
is kept, and the job then fails after erasing the others. It is the only way the product
erases trash entries; no schedule runs it (§14.6).
Deleted videos (amended 2026-11-05, owner review 1 R3/R8/R9; §7, §12.10) are listed as kind
*Videos*, titled by their sequence, with the path they were deleted from. *Restore*
re-hashes the file against its record (refused when it no longer matches), moves it back
under a free name when its own is taken (names a render is writing count as taken) and
records it again with the same render id; it fails while its sequence is not in the library
(restore the sequence first). *Empty…* measures and erases video entries with the rest.
Originals a conversion replaced (amended 2026-10-26, R7; §7) are listed as *Replaced
originals*. *Restore* swaps them back into their sequence while its converted frames are
unchanged, the conversions going to the trash in turn, and otherwise brings them back as a
@@ -1718,7 +1855,10 @@ this PC's archive never wait.
Sections (list on the left, controls on the right, no descriptions — tooltips only):
General (language, theme, startup, notifications), Archive (root, templates, proxy policy,
thumbnail size; the rescans are the Archive scan schedule of Jobs › Scheduled, §12.6, so
thumbnail size; *Videos folder* with *Browse* and *Open*, where Videos › *Copy to folder*
puts copies, `%USERPROFILE%\Videos\Chronos` by default, never the archive root, the
workspace or a folder inside them (§12.10): amended 2026-11-05, owner review 1 R3/R8/R9;
the rescans are the Archive scan schedule of Jobs › Scheduled, §12.6, so
*Rescan every* is gone; amended 2026-10-26, R10; a new folder or file template names only what
is filed next, so once the archive took it, and holds sequences, a toast offers *Reorganize…*
for every sequence with the changed templates switched on, a change made while that archive's
@@ -1728,7 +1868,8 @@ post-actions), Analysis (widths, thresholds, deep analysis auto-run), Rendering
profile, memory budget, spill folder, parallelism = photos the running job processes at once, priority queue
with a level per job kind, encoders detected, hardware preference; amended 2026-10-16, R2;
Workspace copy listed, high by default, as Download, and Local render high, Send render
normal and Move workspace high: amended 2026-10-26, R8),
normal and Move workspace high: amended 2026-10-26, R8; Copy videos high: amended
2026-11-05, owner review 1 R3/R8/R9),
Formats (per
format tier on this PC, codec install links), Storage, Workspace (amended 2026-10-26, R8:
*Folder*, the path read-only with *Open* and *Change…*, which shows a plan (projects left,
@@ -1767,6 +1908,49 @@ offered twice: the update check, its notice and the releases page are on Updates
folder and the diagnostics bundle button (zips logs + environment report) on Advanced. The
update check on start (§18) runs whatever screen is open.
### 12.10 Videos (amended 2026-11-05, owner review 1 R3/R8/R9)
One list of every render: this PC's archive, the signed-in server's and the workspace's
renders not sent yet, merged by render id (a synced render is one row, *Here* and *On
server*). The files stay in each sequence's `exports/` (§7); the section never moves one
except into the trash.
- Toolbar: search (title, preset, file name), Kind (All, Videos, Stills, Sequences), Codec
and Year (the values present), Source (All, This PC, Server, Not sent), Order (Newest,
Oldest, Largest, Title), cards or list (kept), *Refresh*, *Clear filters* and the
selection count. The Export footer's *Videos (n)* and the Render menu's *Videos* open it
on one sequence, shown as a chip whose × clears that filter only.
- A card: the poster (the sequence's cover, or the still itself), title, preset, size ·
codec · duration · bytes, date, and chips *Here*, *On server*, *Copied*, *Missing*, *Not
sent*. The list has the same columns, Preset, Format and Date hidden while the player is
open (the row's tooltip keeps them).
- Actions on the selection (toolbar) or a row (its menu, on the selection when the row is
part of it): *Play*; *Show in folder*; *Copy to folder* (this PC's renders) or *Download*
(the server's alone) into the videos folder of Settings › Archive (§12.8), a hash-verified
`video-copy` job of this PC; *Copy on server* (the server's videos folder, Edit
permission); *Delete…*; *Open in Edit*; *Send* for a workspace render not sent (its rows
are read-only otherwise). A disabled action says why in its tooltip.
- *Delete…* runs the dry run first (this PC's renders and the server's planned apart), then
one confirmation naming what goes, its bytes, what stays and why (a render being sent,
uploaded or copied) and that copies in the videos folder stay; the delete
sends each plan's fingerprint back, and a changed plan moves nothing. A render whose file
is missing loses only its row. Deleted videos are restored from Archive › Maintenance ›
*Trash…* (§12.5).
- The player is a pane on the right, in-process (no other program, §8.6): Windows Media
Foundation (WPF `MediaElement`) for videos, an image view for stills and the first frame
of a GIF or APNG. A file Windows cannot decode (HEVC without its extension) says *Cannot
play here*, *Show in folder* staying offered. A server's video plays from a copy
downloaded to this PC; without one, *Play* says to copy it here first.
- Without a signed-in server, against a server without the `videos` capability (§14.3) or
one out of reach, the list holds this PC's videos and says why. *No videos* when there
are none, with *Clear filters* when the filters hide them.
- Copies (`video-copy`, §14.6): free space checked first; each file copied to
`.incoming-<id>.part` in the videos folder and flushed, hashed and compared with the
render's SHA-256 (the source hashed first when it has none, an image sequence file by
file), then renamed without overwriting, " (2)" on a name collision; the folder is flat. A
mismatch removes the part file and fails the item; the source is never touched. A server
render is downloaded and compared with the server's SHA-256. Each copy is recorded
(`render_copies`, §5) and Chronos never deletes one.
---
## 13. Card import — behaviour details
@@ -1866,6 +2050,9 @@ GET /api/v1/sequences/{id}/thumb the hero frame's thumbnail, else the f
POST /api/v1/sequences/{id}/frames/delete {frameIds, expectedFramesVersion, dryRun} → {photos, bytes, framesVersion, frameCount, trashEntry}
POST /api/v1/sequences/bulk/delete {ids, dryRun} · /bulk/retag {ids, add, remove} · /bulk/jobs {ids, kind} → an item per id
GET /api/v1/frames/{id}/original · /proxy · /thumb (streamed, Range supported)
GET /api/v1/renders/{id}/file the render's file (streamed, Range supported)
GET /api/v1/videos?q&kind&codec&year&sequence&sort&cursor&limit · GET /videos/{id} (amended 2026-11-05, owner review 1 R3/R8/R9)
POST /api/v1/videos/delete {ids, dryRun, fingerprint?} → plan | trash entries · POST /videos/copy {ids} → 202 {jobId}
GET /api/v1/sequences/{sid}/projects live projects, Main first · POST {name, fromVersionId?} → 201 project
GET/PATCH {name}/DELETE /sequences/{sid}/projects/{pid} · GET …/{pid}/head · GET …/{pid}/versions?before|after&limit&summary · GET …/{pid}/versions/{vid}[?stored=true]
@@ -2052,7 +2239,43 @@ settings it cannot read fails with *These settings need a newer Chronos*. A rend
is sized from its resolved preset box adapted to the sequence's settings (§11.4) and carries
the settings format it needs (`requiredSettingsFormat`: format 2 for a format-2 project or
when the adapted size differs from the preset's fixed size); clients and servers that do not
know the members ignore them.
know the members ignore them. Amended 2026-11-05, owner review 1 R3/R8/R9: `settingsFormat`
is 3 from this release; a render job needs format 3 when its own export (a batch preset's
included) has a playback other than the default, and every still job needs 3, so an older
node never renders a whole video for a still; the required format is never below the
format of the settings text the job carries.
Videos (amended 2026-11-05, owner review 1 R3/R8/R9; §12.10, §14.8). `server/info` lists the
capability `videos`. A client without it, or a server without it, keeps to the sequence's
renders as before.
- `GET /videos` (Read) pages every render of the server, newest first or by `sort`
(`newest`, `oldest`, `largest`, `title`), filtered by `q` (title, preset, file name),
`kind` (`video`, `still`, `sequence`), `codec`, `year` (UTC) and `sequence`; `limit`
1–500 (default 100) and `cursor` from `next`. A `VideoDto` is the `RenderDto` members
plus the sequence's title and first capture, the project's name and version number, the
file name, `state` (`ok`, or `missing` when the file is not where it was recorded) and the
copies (`path`, `copiedAt`); its `kind` is never null (`video`, `still` or `sequence`; a
still an older server recorded without kind is recognised by its image codec, fps 0 and
duration 0). `GET /videos/{id}` is one of them.
- `POST /videos/delete` (Delete) takes up to 500 ids. A dry run answers the items (id,
sequence, title, file name, bytes, `missing`), their bytes, the renders that stay
(`blocked`: `busy` while a send, upload or copy of it runs, `not_found`) and the plan's
`fingerprint`; the delete sends the fingerprint back (400 `bad_request` without it, 409
`plan_changed` with nothing moved when the plan changed) and answers the trash entries
made. Errors 409 `sequence_busy`, `folder_in_use`; 503 `archive_offline`. Audited
`videos_deleted` (how many, their bytes, the first five names); publishes
`sequenceChanged` `renders`. Copies in the videos folder stay.
- `POST /videos/copy` (Edit, as render uploads) queues one `video-copy` job into the
server's videos folder (202 `{jobId}`): 409 `videos_folder_unset` without one, 422
`videos_folder_invalid`, 507 `videos_no_space`, 404 `render`. Audited `videos_copied`.
- Trash: a video entry is named `videos-<32 hex>-<ticks>`, of kind `videos`; restore (the
same route, ManageArchive) answers 422 `trash_hash_mismatch` when the file no longer
matches its record and 409 `sequence_gone` while its sequence is not in the library.
- `RenderDto` (`GET …/renders`, the manifest) gains `sha256` and `kind`, trailing and
optional; render uploads and node results carry the verified hash and the kind, and a
render Sync downloads is hashed on arrival and compared with the server's (fetched once
more, then the job fails). `GET /renders/{id}/file` serves Range requests, and `.webm`,
`.m4v` and `.apng` with their media types, so a browser's `<video>` seeks.
Schedules (amended 2026-10-26, R10; ManageArchive, every change audited): `PUT` and
`PATCH` change the fields given; an invalid field is 400 `invalid_schedule` with the field
@@ -2315,7 +2538,12 @@ for it; a server never runs it, because it writes into the folder its parameters
do *Local render* (`workspace-render`, 21, high), *Send render* (`workspace-send`, 22,
normal) and *Move workspace* (`workspace-move`, 23, high), which a server never runs
either; a copy, render or send queued before the workspace moved works in the folder that
holds its project now, and fails, to be retried, while a move is under way. A
holds its project now, and fails, to be retried, while a move is under way. *Copy videos*
(`video-copy`, stored as 24; amended 2026-11-05, owner review 1 R3/R8/R9) runs on the desktop
and the server, high by default as a download is: it copies the renders its parameters
name into the host's videos folder, checking that folder again when it runs (never the
archive, the data folder or the workspace), each file verified by hash before it takes its
name (§12.10), and resumes after the copies it finished. A
handler may clean up after a cancel: cancelling a paused or failed job no handler runs calls
it, and cancelling a paused job whose run has not ended waits for that run to end first
(amended 2026-10-26, R8).
@@ -2421,7 +2649,10 @@ and is never given a job that needs more: the claim and the wait for a node both
job again from the sequence's settings of the moment (size adapted, format required), and a
job no online node can take goes to the server's managed fallback instead of waiting. A node
of this release reads its encoder limits as long edge × short edge, so a 2160×3840 job fits a
4096×2304 encoder; an older node is held to its limits as announced.
4096×2304 encoder; an older node is held to its limits as announced. Amended 2026-11-05,
owner review 1 R3/R8/R9: a node of this release reads format 3, renders the output program
(§11.1) and saves stills; a node of an earlier release is never given a playback or still
job (§14.3), which goes to a node of this release or the server's managed fallback.
### 14.8 Admin web panel (`/admin`, vanilla HTML/CSS/JS, ES modules, no build step, same API)
@@ -2440,7 +2671,8 @@ of this release reads its encoder limits as long edge × short edge, so a 2160×
└─────────────┴────────────────────────────────────────────────────────────────────────────┘
```
Pages: Login · Dashboard · Library (amended 2026-10-26, R6; below) · Users (table;
Pages: Login · Dashboard · Library (amended 2026-10-26, R6; below) · Videos (amended
2026-11-05, owner review 1 R3/R8/R9; below) · Users (table;
create/edit/disable/reset/roles/quota) · Archive (path, templates, proxy policy,
scan/rebuild/verify, stats, and *Trash*, which opens the Library's trash view; R6; a save
that changes a template offers Reorganize, R7) · Jobs
@@ -2463,7 +2695,9 @@ queue, limits, language, retention (tokens, uploads; job history is the *Job his
clean-up* schedule's age limit, R10), Logs (amended 2026-10-26, R11: file level and console
level (Trace…None, default Information), keep logs (days), file size (MB), logs total (MB),
rotation (daily or hourly, UTC), keep audit (days; the *Audit log clean-up* schedule's age
limit, §14.6), diagnostics logs (MB), applied without a restart)). A field an environment
limit, §14.6), diagnostics logs (MB), applied without a restart), Videos folder (amended 2026-11-05, owner
review 1 R3/R8/R9: `videosPath`, an absolute folder outside the archive and the data folder;
empty turns copying off; sent only when changed)). A field an environment
variable fixes is read-only, its tooltip naming that variable (`lockedBy`, §14.3; R11).
Network and TLS (amended 2026-11-04, owner review 3): HTTP port and HTTPS port (in a
container *Container HTTP/HTTPS port*, read-only: the template maps them to host ports),
@@ -2538,6 +2772,27 @@ operations; it queues no deep analysis (the API's `bulk/jobs` takes `deep`).
- The audit log and the Dashboard name photo deletions, trash restores and emptyings asked
for.
Videos (amended 2026-11-05, owner review 1 R3/R8/R9; §12.10, §14.3), the page after Library
in the sidebar. It manages the server's renders and never edits: nothing on it renders or
changes a project (owner review 2, R6).
- `#/videos` lists every render of the server as cards or a list (kept in the browser):
search, Kind, Codec, Year and Order, the filters in the address; `#/videos?sequence=<id>`
shows one sequence's, named by a chip whose × clears that filter only (the sequence named
from its own record when none of its videos is on the page); *Load more* by cursor.
- Selection by check box, Shift range or the keyboard, as in the Library. The selection's
bar: *Download* (one render; disabled for an image sequence, a folder, and a missing
file), *Copy to folder* (a `video-copy` job into the server's videos folder; disabled,
saying why, without the Edit permission or without a folder) and *Delete…* (the dry run:
what goes and its bytes, what stays and why, "copies in the videos folder stay"; then the
delete with the plan's fingerprint; Delete permission).
- *Play* opens a dialog: a `<video controls>` for MP4, M4V, MOV and WebM (the session cookie
authorises the file's GET, Range for seeking), an image for stills, GIF and APNG, a
download link otherwise, and *Cannot play here* when the browser cannot decode it.
- A sequence's page lists its renders with their kind and a short hash (the whole one in
the tooltip) and links *All videos* to `#/videos?sequence=<id>`.
- The Library's trash view lists deleted videos as kind *Videos*, titled by their sequence,
with their own *Restore* message; restoring a video happens there only.
Reorganize (amended 2026-10-26, R7), the panel's way to the Reorganize of §12.5 through
`POST /archive/reorganize` (§14.3):
- The Library's selection bar has *Reorganize…*: the selected sequences, up to 1,000 (one
@@ -2634,6 +2889,13 @@ volume's free space the admin panel shows instead of the archive's; one that can
measured falls back to the archive's with one warning, logged at start and again only once
it has worked in between; uploads always check the archive's own volume, §14.4, and a
conversion the tighter of the two, §14.3: amended 2026-10-26, R7),
`CHRONOS_VIDEOS_PATH` (`VideosPath` in `server.json`, the admin panel's *Videos folder*;
amended 2026-11-05, owner review 1 R3/R8/R9: the folder *Copy to folder* copies renders into,
hash-verified, flat, " (2)" on a collision; an absolute folder, else the start stops naming
it, outside the archive and the data folder, else the admin panel does not save it and a
copy answers 422 `videos_folder_invalid`; unset by default, which turns copying off with
`videos_folder_unset`; set, it locks the setting; Docker: `/videos`; Chronos never deletes
what it copied there),
`CHRONOS_DB=postgres|sqlite` (Linux: postgres only), `CHRONOS_DB_HOST`, `CHRONOS_DB_PORT=5432`,
`CHRONOS_DB_NAME`, `CHRONOS_DB_USER`, `CHRONOS_DB_PASSWORD`, `CHRONOS_DB_SSLMODE=prefer`,
`CHRONOS_HTTP_PORT=8080`, `CHRONOS_HTTPS_PORT=8443` (in a container, where
@@ -2666,8 +2928,13 @@ it read-only and names the variable. (Amended 2026-10-16, R2; 2026-10-26, R2, R1
Dockerfile: multi-stage on `mcr.microsoft.com/dotnet/sdk:10.0` → `aspnet:10.0`, non-root
user via `PUID/PGID` entrypoint, volumes `/archive` and `/data` (the optional read-only
`/space` bind mount is not a declared volume; amended 2026-10-26, R2), `HEALTHCHECK` on
`/health`, `linux/amd64` + `linux/arm64`. `docker-compose.yml` with a PostgreSQL 17 service.
`/space` bind mount is not a declared volume; amended 2026-10-26, R2; nor is `/videos`, a
folder the image makes for an optional videos volume, which the entrypoint checks: a
`/videos` that is not a mounted volume, or that `PUID:PGID` cannot write, only warns, since
copying is optional; amended 2026-11-05, owner review 1 R3/R8/R9), `HEALTHCHECK` on
`/health`, `linux/amd64` + `linux/arm64`. `docker-compose.yml` with a PostgreSQL 17 service
(amended 2026-11-05, owner review 1 R3/R8/R9: and the videos folder, `${CHRONOS_VIDEOS:-./videos}`
at `/videos` with `CHRONOS_VIDEOS_PATH=/videos`; remove both to turn copying off).
Windows: `Chronos.Server.exe` runs as console or Windows Service (`sc create`), SQLite or
PostgreSQL.
@@ -2917,7 +3184,10 @@ template locks its setting; TZ also sets the time zone of the schedules; amended
enter the same host port there when it changes and that network type Host ignores the mapping (the
server then listens on 8080 and 8443 itself; the user guide says to add `CHRONOS_HTTP_PORT` /
`CHRONOS_HTTPS_PORT` when another service uses either); the overview names the client address and
that LAN discovery needs network type Host (amended 2026-11-04, owner review 3), description ≤ 2 sentences.
that LAN discovery needs network type Host (amended 2026-11-04, owner review 3), *Videos*
`/videos` (optional, empty by default, not inside the archive) and *Videos path*
`CHRONOS_VIDEOS_PATH`, empty by default, `/videos` once that path is mapped (amended
2026-11-05, owner review 1 R3/R8/R9), description ≤ 2 sentences.
Registry and Project `https://gitea.encke-hake.ts.net/BalboSoft/Chronos`,
Support `https://gitea.encke-hake.ts.net/BalboSoft/Chronos/issues`, TemplateURL
`https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/deploy/unraid/chronos.xml`,
@@ -3120,6 +3390,7 @@ questions asked and the answers; DECISIONS rows give the reasons.
| 2026-10-26 | Owner review 2, R8 (phase 5c: originals, local render, clean-up, Workspace settings) | §4.4, §5, §12.3, §12.7, §12.8, §14.3, §14.5, §14.6 | Originals in the workspace on request (*Open in workspace* › Originals, *Copy originals…*, *Proxies only…* behind a plan), copied from either home hash-checked and resumable, a frame whose original is missing keeping its proxy; media index format 2 and project file format 3 while originals are held; a project with originals renders on this PC (`workspace-render`, stored as 21) into `exports/` with the ledger `renders.json`, *Version on render* saving a version first, and sends its renders home (`workspace-send`, 22) with their project and version, idempotent by render id, refusals per render; render uploads take optional `projectId` and `projectVersionId`, checked against the sequence (422 `project_mismatch`); *Pause metered transfers* holds every transfer with a server, downloads and workspace copies and sends included; originals judged by their bytes against the home's frames, those it lacks kept in the workspace's trash; the clean-up of media in step with their home (*Clean after*, *Size limit*, the `workspace-cleanup` schedule) and the workspace's trash emptied only by *Empty…* (typed count, fingerprint); Remove local copy weighs unsent renders and originals; moving the workspace folder (`workspace-move`, 23) behind a plan, renamed on one drive or copied and verified across drives, journaled, resumable, the source kept until the switch, with *Resume*; Settings › Workspace complete (Folder with Move…, Size limit, Default media, Sync, Version on render, Kept versions, Clean after, Open project, Trash). |
| 2026-11-04 | Owner review 3 (ports) | §12.7, §14.8, §14.9, §15, §19.6 | The public HTTP/HTTPS ports are server settings as well as variables (a variable locks them), applied at once; in a container the listening ports are locked to the template's; the admin panel's Network and TLS shows the container's ports, the public ports and the client address with Copy; clients read an address without scheme or port as port 8443 and report an address that answers as something else, never offering its certificate for trust; the Unraid template and compose gain *Public HTTP port*. |
| 2026-11-04 | Owner review 1, R5/R6 (phase 4: visual crop, transforms, looks) | §10.3, §11.2, §11.4, §12.3, §14.3, §14.7 | The crop is edited on the preview with handles, always locked to the output aspect, in the view frame (turned, straightened); the chosen proportions win: a fixed-size preset is a box the aspect is fitted in (4K at 9:16 = 2160×3840), "source" keeps the preset, the preset name stays and *Output size* shows the result; the Camera step gains Rotation (quarter turns), Mirror, Flip, Straighten (±15°, automatic cover zoom), Crop size/X/Y and Reset framing, the crop-margin and offset rows go; a turn or mirror keeps the content (crop, keyframes, a transposed aspect); the Exposure step ends with a Look (eight built-in colour looks with a strength), applied after stacking and before the knee; one Core path for render, server, nodes and preview; settings format 2 written only when a transform or look is used, read-only in older builds; `server/info` and node registrations announce the settings format, and nothing an older server or node would get wrong is sent to it; the advisor works on the view as shown. |
| 2026-11-05 | Owner review 1, R3/R8/R9 (phase 5: export panel and Render menu, export options, videos library) | §5, §7, §11.1, §11.3, §11.4, §11.5, §12.1, §12.3, §12.5, §12.8, §12.10, §14.3, §14.6, §14.7, §14.8, §14.9, §19.6 | The header's *Render ▾* reads "Render" at a fixed width, its tooltip giving the details, its menu the recommended, batch and recent presets, *Other presets ›* by group with a details line, *Render batch*, *Add to queue*, *Save frame ›* and *Videos*; the Export step's cards become a grouped preset table and its Output panel four collapsible groups (Output, Encoding, Playback, File) with summaries, open state kept by the app, and a fixed footer; advanced encoding (rate control, bit rate or quality, keyframes in seconds, B-frames, profile) and standard resolutions over the existing overrides, no format raise; playback (reverse, boomerang, loops, fades to black, hold at the end) as an output program, settings format 3 written only when used, read-only in older builds and never sent to an older server or node; *Save frame* saves one corrected frame as PNG, JPEG or TIFF 16-bit (kind `still`, format-3 jobs); renders record their SHA-256 and kind, copies are recorded (migration 0010); one Videos library on the desktop (a rail section on Ctrl+4, Archive, Jobs and Server moving to Ctrl+5…7; this PC's, the server's and unsent workspace renders merged; an in-process player) and on the admin panel (a Videos page with a browser player); a hash-verified `video-copy` job (stored as 24) into a flat videos folder (Settings › Archive, the server's `videosPath`, `CHRONOS_VIDEOS_PATH`, the optional `/videos` volume); delete into `trash/videos/` behind a dry run and fingerprint, restore with the same id after a hash check; `/api/v1/videos`, the `videos` capability, `RenderDto` `sha256` and `kind`. |
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)