diff --git a/i18n/en/Editor.resx b/i18n/en/Editor.resx
index 31354fcc..007283d1 100644
--- a/i18n/en/Editor.resx
+++ b/i18n/en/Editor.resx
@@ -50,12 +50,14 @@
Nothing to restoreUndoPick a sequence in the Library
+ The frames of this sequence changed on the server; get its proxies again.longThis sequence is no longer in the archive.longJobs cannot run until the archive index is open.longThe settings of this sequence cannot be read.longYour account cannot change the sequences of this server.longThe settings of this sequence were changed elsewhere at the same time.longThe saved settings {0} cannot be read.long
+ Connect to the server to open this sequence.longabout {0}Add to queueBatch…
@@ -85,7 +87,7 @@
RecommendedRender nowResolution
- Restore · {0}
+ Restore settings · {0}Restore copyResultshow file
@@ -160,6 +162,8 @@
Nothing to changeOptimise allOptimise section
+ Get proxies
+ Frames changed on {0}Preview1:1invariantPreview 10 s
@@ -177,9 +181,13 @@
This frame cannot be read.Vectorsoriginal | corrected
+ Proxies not received
+ Getting the proxiesAutoHorizonLuminance
+ {0} · proxies outdated
+ {0} · read-onlyRender · {0}Render finishedRender queued
@@ -191,6 +199,8 @@
Changes not savedRetrySections
+ Cancel job
+ {0} {1} on {2}{0} leftf/{0}invariant{0} mminvariant
diff --git a/i18n/en/Tooltips.resx b/i18n/en/Tooltips.resx
index 10e9d993..facd16b5 100644
--- a/i18n/en/Tooltips.resx
+++ b/i18n/en/Tooltips.resx
@@ -125,6 +125,7 @@
Rec.709 colour; 10-bit avoids banding in skies, HDR is not offeredMP4, AVI, GIF, APNG or a folder of images; the codec list followsEncoder on this PC; Auto prefers hardware
+ {0} or its render node picks the encoderWhere renders go: {0}Renders of a server sequence go to its exports folder on the serverFrames per second of the video file
@@ -137,7 +138,7 @@
Render with {0}; editing a value makes it CustomImage quality; 95 looks lossless, lower makes smaller filesAdvisor pick: {0}
- Make this PC’s settings kept on {0} the project; Ctrl+Z undoes it
+ Use this PC’s settings saved on {0} as the project · Ctrl+Z undoesChoose another copy of this PC’s settings, kept when a sync conflict was settledEnter a size between 16 and 16384 pixelsAfter each render on this PC, also send the file to the server; large files take time
@@ -179,6 +180,8 @@
Let the advisor set every section from the analysis and list what changedThe advisor never stacks on its own: a median erases moving starsApply the advisor’s heavier choices for this section and list what changed · Ctrl+Z undoes
+ Frames were added or removed on {0} since the proxies were fetched; get them again to edit or render
+ Fetch the proxies again and reopen the sequence; the job bar shows the downloadPause · SpacePlay the frames · Space; arrows step one frameShow pixels at 1:1 without interpolation · Ctrl+1; Ctrl+0 fits
@@ -195,6 +198,7 @@
Drag the line to compare · drag to pan · wheel zooms · double-click 1:1Your account can look at this server sequence but not change itEdited with proxies on this PC; changes are saved on {0} and analyses and renders run there
+ Shown from {0}; your account can look at this sequence but not change itRender with the selected preset; progress in the job bar · Ctrl+RFix the file name first: {0}Every frame is excluded: include some in the Frames tab
@@ -203,10 +207,15 @@
Working out the render; ready in a momentShow the rendered file in ExplorerChoose another preset
+ Choose the preset to render; the project keeps its ownRender on {0} with the selected preset; progress beside the title · Ctrl+RReturn every control of this section to Auto · Ctrl+Z undoesTry to save now; saving is also retried automatically{0} running on {1}
+ Cancel the job on {0}; Retry in the notice that follows queues it again from its last checkpoint
+ {0} paused on {1}
+ {0} waiting on {1}
+ Queue the job on {0} again from its last checkpointFrames combined into each output frame; trails and smoothing grow with itMedian and mean remove noise and moving things; star trails keep the brightest pixelsCrop, aspect, virtual camera moves
diff --git a/i18n/it/Editor.it.resx b/i18n/it/Editor.it.resx
index 605ef569..98dd3e02 100644
--- a/i18n/it/Editor.it.resx
+++ b/i18n/it/Editor.it.resx
@@ -49,12 +49,14 @@
Niente da ripristinareAnnullaScegli una sequenza in Libreria
+ I fotogrammi di questa sequenza sono cambiati sul server; scarica di nuovo i proxy.Questa sequenza non è più nell’archivio.I lavori non possono partire finché l’indice dell’archivio non è aperto.Le impostazioni di questa sequenza non sono leggibili.Il tuo account non può modificare le sequenze di questo server.Le impostazioni di questa sequenza sono state modificate altrove nello stesso momento.Le impostazioni salvate {0} non si possono leggere.
+ Connettiti al server per aprire questa sequenza.circa {0}Metti in codaIn serie…
@@ -80,7 +82,7 @@
ConsigliatoRenderizza oraRisoluzione
- Ripristina · {0}
+ Ripristina impostazioni · {0}Ripristina copiaRisultatomostra file
@@ -151,6 +153,8 @@
Niente da cambiareOttimizza tuttoOttimizza sezione
+ Scarica i proxy
+ Fotogrammi cambiati su {0}AnteprimaAnteprima 10 sConfronta
@@ -167,9 +171,13 @@
Questo fotogramma non si può leggere.Vettorioriginale | corretto
+ Proxy non ricevuti
+ Scaricamento dei proxyAutoOrizzonteLuminanza
+ {0} · proxy superati
+ {0} · sola letturaRenderizza · {0}Render completatoRender in coda
@@ -181,6 +189,8 @@
Modifiche non salvateRiprovaSezioni
+ Annulla attività
+ {0} su {2}: {1}mancano {0}LunghezzaMedia
diff --git a/i18n/it/Tooltips.it.resx b/i18n/it/Tooltips.it.resx
index cadd7d70..df776300 100644
--- a/i18n/it/Tooltips.it.resx
+++ b/i18n/it/Tooltips.it.resx
@@ -125,6 +125,7 @@
Colore Rec.709; 10 bit evitano il banding nel cielo, l’HDR non è disponibileMP4, AVI, GIF, APNG o una cartella di immagini; l’elenco dei codec si adeguaEncoder di questo PC; Auto preferisce l’hardware
+ L’encoder lo sceglie {0} o il suo nodo di renderingDove vanno i render: {0}I render di una sequenza del server vanno nella sua cartella exports sul serverFotogrammi al secondo del file video
@@ -137,7 +138,7 @@
Renderizza con {0}; modificare un valore lo rende PersonalizzatoQualità dell’immagine; 95 sembra senza perdite, meno fa file più piccoliScelta del consulente: {0}
- Rende progetto le impostazioni di questo PC conservate il {0}; Ctrl+Z annulla
+ Usa come progetto le impostazioni di questo PC salvate il {0} · Ctrl+Z annullaScegli un’altra copia delle impostazioni di questo PC, conservata quando un conflitto di sincronizzazione è stato risoltoInserisci una dimensione tra 16 e 16384 pixelDopo ogni render su questo PC invia il file anche al server; i file grandi richiedono tempo
@@ -179,6 +180,8 @@
Lascia che il consulente imposti ogni sezione dall’analisi ed elenchi cosa è cambiatoIl consulente non fa mai stacking da solo: una mediana cancella le stelle in movimentoApplica le scelte più incisive del consulente per questa sezione ed elenca cosa è cambiato · Ctrl+Z annulla
+ Su {0} sono stati aggiunti o tolti fotogrammi dopo lo scaricamento dei proxy; scaricali di nuovo per modificare o renderizzare
+ Scarica di nuovo i proxy e riapri la sequenza; la barra delle attività mostra lo scaricamentoPausa · SpazioRiproduce i fotogrammi · Spazio; le frecce avanzano di unoMostra i pixel 1:1 senza interpolazione · Ctrl+1; Ctrl+0 adatta
@@ -195,6 +198,7 @@
Trascina la linea per confrontare · trascina per spostare · la rotellina ingrandisce · doppio clic 1:1Il tuo account può vedere questa sequenza del server ma non modificarlaModificata con i proxy su questo PC; le modifiche si salvano su {0} e analisi e render vengono eseguiti lì
+ Mostrata da {0}; il tuo account può vedere questa sequenza ma non modificarlaRenderizza con il preset scelto; avanzamento nella barra dei lavori · Ctrl+RCorreggi prima il nome del file: {0}Tutti i fotogrammi sono esclusi: includine alcuni nella scheda Fotogrammi
@@ -203,10 +207,15 @@
Calcolo del render in corso; pronto tra un attimoMostra il file del render in Esplora fileScegli un altro preset
+ Scegli il preset da renderizzare; il progetto mantiene il suoRenderizza su {0} con il preset scelto; avanzamento accanto al titolo · Ctrl+RRiporta in Auto ogni controllo di questa sezione · Ctrl+Z annullaProva a salvare ora; il salvataggio viene anche ritentato da solo{0} in corso su {1}
+ Annulla l’attività su {0}; Riprova nell’avviso che segue la rimette in coda dall’ultimo punto di ripresa
+ {0} in pausa su {1}
+ {0} in attesa su {1}
+ Rimetti in coda l’attività su {0} dall’ultimo punto di ripresaFotogrammi combinati in ogni fotogramma d’uscita; scie e levigatura crescono con essoMediana e media tolgono rumore e ciò che si muove; le scie stellari tengono i pixel più luminosiRitaglio, formato, movimenti della camera virtuale
diff --git a/src/Titano.App/DesignTime/SampleData.cs b/src/Titano.App/DesignTime/SampleData.cs
index 7f0e1551..35229609 100644
--- a/src/Titano.App/DesignTime/SampleData.cs
+++ b/src/Titano.App/DesignTime/SampleData.cs
@@ -45,6 +45,7 @@ public sealed class SampleData
private TitanoDatabase? _db;
private Guid _sunrise;
private Guid _lakeComo;
+ private Permissions _permissions = RolePermissions.Default(UserRole.Editor);
private SampleData(AppServices services) => _services = services;
@@ -56,13 +57,13 @@ public sealed class SampleData
{
if (!services.Environment.IsCapture) throw new InvalidOperationException("Sample data only runs in a capture environment.");
var settings = services.Settings;
+ var sample = new SampleData(services);
services.Server.Dispose();
- services.Server = new ServerSession(settings, services.SaveSettings, new SampleServerApiFactory(), new PlainTokenProtector());
+ services.Server = new ServerSession(settings, services.SaveSettings, new SampleServerApiFactory(sample), new PlainTokenProtector());
services.Encoders = new SampleEncoders();
services.CheckForUpdateAsync = _ => Task.FromResult(null);
services.Devices.Dispose();
services.Devices = new SampleDeviceMonitor();
- var sample = new SampleData(services);
services.Sync.RemoteFactory = (_, _, _) => sample._remote;
services.Sync.EditorFactory = (_, _, _) => sample._remote;
return sample;
@@ -163,6 +164,44 @@ public sealed class SampleData
for (var i = 0; i < 200 && await db.Jobs.GetAsync(job.Id) is { State: JobState.Queued or JobState.Running }; i++) await Task.Delay(50);
}
+ /// A render of Sunrise over Superga running on the sample server, 43 % done (the remote editor's server job).
+ public void RunServerRender() => _remote.Run(_sunrise, "render", 1_240, 2_880);
+
+ /// The sample server's jobs end (none waits or runs any more).
+ public void EndServerJobs() => _remote.EndJobs();
+
+ ///
+ /// The signed-in account keeps Read, Upload and Render but loses Edit (server sequences open read-only); the
+ /// session is read again so the client sees it.
+ ///
+ public async Task RestrictAccountAsync()
+ {
+ _permissions = Permissions.Read | Permissions.Upload | Permissions.Render;
+ await _services.Server.RestoreAsync();
+ }
+
+ ///
+ /// The editor's sample as a sequence the sample server also has (so its Export "Sync" applies), with two copies of
+ /// this PC's settings kept by "Save both" in its .titano folder.
+ ///
+ public async Task KeepEditorCopiesAsync(Guid sequenceId)
+ {
+ var db = _db ?? throw new InvalidOperationException("FillAsync first.");
+ var sequence = await db.Sequences.GetAsync(sequenceId) ?? throw new InvalidOperationException("FillEditorAsync first.");
+ var archive = await db.Archives.GetAsync(sequence.ArchiveId) ?? throw new InvalidOperationException("FillEditorAsync first.");
+ var meta = new ArchivePaths(archive.RootPath).Sequence(sequence.Folder).MetaDirectory;
+ Directory.CreateDirectory(meta);
+ var project = sequence.SettingsJson is { } json ? ProjectSettings.FromJson(json) : new ProjectSettings();
+ var copies = new (DateTime Saved, double OffsetEv)[] { (new DateTime(2026, 9, 30, 21, 14, 5), 0.3), (new DateTime(2026, 10, 2, 8, 41, 37), -0.2) };
+ foreach (var (saved, offset) in copies)
+ {
+ var copy = project with { Exposure = project.Exposure with { ExposureOffsetEv = offset } };
+ Titano.Core.IO.AtomicFile.WriteAllText(Path.Combine(meta, SyncService.SavedCopyName(saved)), copy.ToJson());
+ }
+ var remote = _remote.Add(SampleSyncRemote.Dto(sequence), sequence.SettingsJson, sequence.FrameCount);
+ await _services.Sync.Service!.LinkAsync(ServerAddress, remote, sequence.Id);
+ }
+
///
/// The server's side: six sequences this PC also holds (two the same, one with settings changed on both sides, one
/// with more originals on the server, one with more here, one with renders this PC lacks) and two only on the server;
@@ -582,15 +621,15 @@ public sealed class SampleData
}
/// A server that always answers as "Studio NAS" with a self-signed certificate the sample trusts.
- private sealed class SampleServerApiFactory : IServerApiFactory
+ private sealed class SampleServerApiFactory(SampleData sample) : IServerApiFactory
{
- public IServerApi Create(Uri baseAddress, IReadOnlyCollection trustedFingerprints) => new SampleServerApi(baseAddress, trustedFingerprints);
+ public IServerApi Create(Uri baseAddress, IReadOnlyCollection trustedFingerprints) => new SampleServerApi(sample, baseAddress, trustedFingerprints);
}
- private sealed class SampleServerApi(Uri baseAddress, IReadOnlyCollection trusted) : IServerApi
+ /// The sample account, an editor unless took the Edit right away.
+ private sealed class SampleServerApi(SampleData sample, Uri baseAddress, IReadOnlyCollection trusted) : IServerApi
{
- private static readonly UserDto User = new(Guid.Empty, "alberto", "Alberto", "editor", (long)RolePermissions.Default(UserRole.Editor), 5_000_000_000_000,
- 2_100_000_000_000, false, false,
+ private UserDto User => new(Guid.Empty, "alberto", "Alberto", "editor", (long)sample._permissions, 5_000_000_000_000, 2_100_000_000_000, false, false,
new DateTimeOffset(2025, 1, 1, 0, 0, 0, TimeSpan.Zero), DateTimeOffset.UtcNow);
public Uri BaseAddress { get; } = baseAddress;
@@ -623,8 +662,8 @@ public sealed class SampleData
///
/// The sample server's sequences for the sync table and the editor of a server sequence: listings, manifests
/// (frames hashed from their index, so unhashed sample frames match them by count; renders as many as the listing
- /// says), settings edits, proxies (generated JPEGs) and jobs the editor posts (kept queued); uploads, originals and
- /// analysis reports are not part of the screenshots.
+ /// says), settings edits, proxies (generated JPEGs) and jobs the editor posts (kept queued until cancelled, or run by
+ /// ); uploads, originals and analysis reports are not part of the screenshots.
///
private sealed class SampleSyncRemote : ISyncRemote, IRemoteSequenceApi
{
@@ -723,6 +762,20 @@ public sealed class SampleData
return Task.FromResult(job);
}
+ /// A job of running for , of frames.
+ public void Run(Guid sequenceId, string kind, long done, long total)
+ {
+ var now = DateTimeOffset.UtcNow;
+ var job = new JobDto(Guid.CreateVersion7(), kind, [sequenceId], null, "running", "user", done, total, 11.3, (total - done) / 11.3, null, "studio-pc", 1,
+ null, now.AddMinutes(-2), now.AddMinutes(-2), null);
+ lock (_jobs) _jobs[job.Id] = job;
+ }
+
+ public void EndJobs()
+ {
+ lock (_jobs) _jobs.Clear();
+ }
+
public Task GetJobAsync(Guid id, CancellationToken cancellationToken)
{
lock (_jobs) return Task.FromResult(_jobs[id]);
@@ -730,7 +783,21 @@ public sealed class SampleData
public Task> ListActiveJobsAsync(CancellationToken cancellationToken)
{
- lock (_jobs) return Task.FromResult>([.. _jobs.Values]);
+ lock (_jobs) return Task.FromResult>([.. _jobs.Values.Where(j => j.State is "queued" or "running" or "paused")]);
+ }
+
+ public Task CancelJobAsync(Guid id, CancellationToken cancellationToken) =>
+ Task.FromResult(Update(id, job => job with { State = "cancelled", Finished = DateTimeOffset.UtcNow }));
+
+ public Task RetryJobAsync(Guid id, CancellationToken cancellationToken) =>
+ Task.FromResult(Update(id, job => job with { State = "queued", Error = null, Finished = null }));
+
+ public Task SetJobPriorityAsync(Guid id, string priority, CancellationToken cancellationToken) =>
+ Task.FromResult(Update(id, job => job with { Priority = priority }));
+
+ private JobDto Update(Guid id, Func change)
+ {
+ lock (_jobs) return _jobs[id] = change(_jobs[id]);
}
public void Dispose()
diff --git a/src/Titano.App/Editor/EditorMeasures.xaml b/src/Titano.App/Editor/EditorMeasures.xaml
index cf5f6426..e158059b 100644
--- a/src/Titano.App/Editor/EditorMeasures.xaml
+++ b/src/Titano.App/Editor/EditorMeasures.xaml
@@ -228,8 +228,9 @@
+