Caption chronological 30-second frame windows

This commit is contained in:
Sleeps
2026-10-07 15:29:12 +01:00
parent a5b657b3e7
commit 5610f3a0d9
18 changed files with 1384 additions and 180 deletions
@@ -342,7 +342,8 @@
progressText.textContent = percent.toFixed(1).replace('.0', '') + '%';
progressFrames.textContent =
(status.frames_completed || 0) + ' / ' +
(status.frames_total || 0) + ' frames';
(status.frames_total || 0) + ' ' +
(status.work_unit === 'windows' ? 'windows' : 'frames');
if (status.running) {
var starting = status.stage === 'starting';
@@ -374,9 +375,12 @@
(status.title || '') +
(status.timestamp_ms != null ? ' at ' + formatTs(status.timestamp_ms) : '') +
' · ' + (status.frames_completed || 0) + '/' +
(status.frames_total || 0) + ' frames saved.';
(status.frames_total || 0) + ' ' +
(status.work_unit === 'windows' ? 'windows' : 'frames') +
' saved.';
} else if (status.pause_requested) {
container.textContent = 'Pause requested; finishing the current frame.';
container.textContent = 'Pause requested; finishing the current ' +
(status.work_unit === 'windows' ? 'window.' : 'frame.');
detail.textContent = status.title || '';
} else if (status.stage === 'routing') {
container.textContent = 'Routing frames to caption models.';
@@ -222,6 +222,15 @@ public sealed class SceneSearchCaptionStatus
[JsonPropertyName("route")]
public string? Route { get; set; }
[JsonPropertyName("work_unit")]
public string? WorkUnit { get; set; }
[JsonPropertyName("window_start_ms")]
public long? WindowStartMs { get; set; }
[JsonPropertyName("window_end_ms")]
public long? WindowEndMs { get; set; }
[JsonPropertyName("preparing")]
public string? Preparing { get; set; }