fix: address the phase 5 review
Video trash moves across volumes commit once the verified copy has its name and leave an undeletable source whole behind a .leftover marker that the next start settles; deletes rehash under the lease. Restores honour the names renders are writing, and encoders never overwrite an output. Routing floors at the stored settings' format, kindless stills read as stills, star trails restart per loop, and settings the encoder ignored become render warnings. The Videos section fits beside the player, plays downloaded server copies, names blocked videos and says why actions are off; the admin panel offers no download for sequences or missing files and names a filtered sequence from its record. Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6d87a1bc6d
commit
1be273d0e4
38 files changed
+958
-160
No files matched your search
@@ -50,10 +50,11 @@ public sealed class VideoRenderTests(TestContext context)
|
||||
// Only a batch preset plays back: the job of that preset needs format 3, the plain one does not.
|
||||
var split = ProcessingJobs.Split(Read(ProcessingJobs.Render(sequence, Mjpeg with { Batch = ["gif-preview"] }, 96, 64, new ProjectSettings())), 96, 64, new ProjectSettings());
|
||||
Assert.SequenceEqual([1, 1], split.Select(p => p.RequiredSettingsFormat));
|
||||
// Routed with settings whose own export plays back, the job's export (which does not) is what counts, and the other way round.
|
||||
// Routed with settings whose own export plays back, the job's export does not, but the settings text the node reads is
|
||||
// format 3: a node of format 2 could not parse it. The other way round, the job's export counts.
|
||||
var plain = Read(ProcessingJobs.Render(sequence, Mjpeg, 96, 64, new ProjectSettings()));
|
||||
var playing = new ProjectSettings { Export = Mjpeg with { Playback = Boomerang } };
|
||||
Assert.Equal(1, ProcessingJobs.Routed(plain, playing, 96, 64).RequiredSettingsFormat);
|
||||
Assert.Equal(ProjectSettings.PlaybackVersion, ProcessingJobs.Routed(plain, playing, 96, 64).RequiredSettingsFormat);
|
||||
var posted = Read(ProcessingJobs.Render(sequence, Mjpeg with { Playback = Boomerang }, 96, 64, new ProjectSettings())) with { RequiredSettingsFormat = 1 };
|
||||
Assert.Equal(ProjectSettings.PlaybackVersion, ProcessingJobs.Routed(posted, new ProjectSettings(), 96, 64).RequiredSettingsFormat);
|
||||
Assert.Equal(ProjectSettings.PlaybackVersion, ProcessingJobs.RequiredFormat(new ProjectSettings(), Mjpeg with { Batch = ["gif-preview"], Playback = Boomerang }, 96, 64));
|
||||
@@ -124,7 +125,8 @@ public sealed class VideoRenderTests(TestContext context)
|
||||
var set = new SequenceFrames(sequence, frames, frames.Select(f => (string?)f.RelativePath).ToList());
|
||||
Assert.Equal(3, SequenceRender.StillIndex(set, 1, new string('d', 64)));
|
||||
Assert.Equal(3, SequenceRender.StillIndex(set, 1, new string('D', 64)), "any case");
|
||||
Assert.Equal(1, SequenceRender.StillIndex(set, 1, new string('z', 64)), "a photo no longer there: the index");
|
||||
Assert.Null(SequenceRender.StillIndex(set, 1, new string('z', 64)), "a photo no longer there: its index names another photo now");
|
||||
Assert.Equal(1, SequenceRender.StillIndex(set, 1, null), "no hash: the index");
|
||||
Assert.Null(SequenceRender.StillIndex(set, 9, null));
|
||||
// Named by the export's template and the frame number from 1; a taken name gets " (2)".
|
||||
var folder = context.CreateTempDirectory("still");
|
||||
|
||||
Reference in new issue
Block a user