E4: API dei video fermi e «Salva il fotogramma»
«È un video fermo?» dal visualizzatore (POST /api/media/{id}/still, con
400/404/409/503 e niente salvato negli errori) e l'esito su ogni video
dell'elemento (media[].still), perché l'interfaccia di WP6 lo mostri.
«Salva il fotogramma» salva il fotogramma scelto dall'analisi (il più
nitido, mai uno scuro, risposta 45): «Scarica» da
/api/media/{id}/still/frame con il nome …_fotogramma.png, e «Nella
cartella delle copie» con frames.mode "fermo" attraverso pianificatore,
impostazioni del lavoro e copiatore (FrameMode.Still, suffisso
_fotogramma, stessa identità delle copie dei fotogrammi di E3). Vale per
un video solo (risposta 46); un video non fermo o mai analizzato si
conta come notStill e non si copia.
«Cerca i video fermi» per una selezione: conferma con i conteggi,
avvio, avanzamento e «Interrompi» (/api/still-videos/*). Tutti i DTO nel
FebeJsonContext; i comandi passano dal controllo dell'Origin. Il servizio
registra con ILogger e FebeApp lo chiude all'arresto prima dell'archivio.
LEGGIMI di Febe.Web aggiornato; prove dell'API su video costruiti.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4f238f2c9f
commit
51150fb611
17 files changed
+695
-18
No files matched your search
@@ -34,6 +34,13 @@ public enum FrameMode
|
||||
|
||||
/// <summary>«N in tutto»: N frames spread over the video, each in the middle of its share.</summary>
|
||||
Count,
|
||||
|
||||
/// <summary>
|
||||
/// «Salva il fotogramma» of a still video (tappa E4, answer 45): the one frame the analysis chose (the sharpest
|
||||
/// looked at, never a dark one), at the instant <c>video_analysis</c> keeps; named <c>…_fotogramma</c>. One video
|
||||
/// only (answer 46).
|
||||
/// </summary>
|
||||
Still,
|
||||
}
|
||||
|
||||
/// <summary>A request of frames of videos, in a photo format (Jpg, Png or WebpLossless).</summary>
|
||||
@@ -114,6 +121,12 @@ public sealed record ExportPlan(
|
||||
|
||||
/// <summary>Frames job: videos that would give more than <see cref="ExportFrames.MaxPerVideo"/> frames (the job is refused).</summary>
|
||||
public int OverCap { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// «Salva il fotogramma» (tappa E4): due videos whose analysis is not «Fermo», or that were never analysed (skipped:
|
||||
/// «Non è un video fermo, o non è stato analizzato»).
|
||||
/// </summary>
|
||||
public int NotStill { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>Files of a plan copied as they are, of one kind («HEIC», «AVIF», «raw», «GIF», «WebM»).</summary>
|
||||
|
||||
Reference in new issue
Block a user