WIP: contenitori, sonda dei metadati, fotogrammi e scrittore MP4 in casa; via ffmpeg e ffprobe (#58)

Lettori ISO BMFF (anche frammentato), Matroska/WebM e AVI; ContainerVideoMetadataProbe è la sonda predefinita; VideoFrameDecoder (H.264 in casa, BMP ruotato, riconoscimento dei video fermi) sostituisce VideoFrameExtractor; Mp4Writer con moov in testa. Tolti ffmpeg e ffprobe da Dockerfile, CI, script e prove. WIP perché la corsa completa di tests/Febe.Tests non era finita al momento del commit e l'ultima correzione (data qualsiasi nella lettura dei campioni) non è stata ricompilata né riprovata: la compilazione durante la corsa fallisce per DLL bloccate dalle prove in esecuzione.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-18 12:32:33 +01:00
1 parent 697de97ec3
commit 6ffcb1bb18
39 files changed
+4235 -469

No files matched your search

@@ -225,40 +225,6 @@ public sealed class SessionKeyOptionsTests
Assert.IsFalse(display.Environment.Keys.Any(ChildProcessEnvironment.IsSecret));
}
[TestMethod]
[DoNotParallelize]
public void FfmpegAndFfprobeStartWithoutThePasswordOrTheKeyOfFebesEnvironment()
{
// Febe's own environment holds both (as in Docker): ffprobe and ffmpeg must not inherit them (spec §13.2).
using var folder = new TempFolder("figli");
var tool = folder.Combine("strumento-di-prova");
File.WriteAllText(tool, string.Empty);
var before = ChildProcessEnvironment.SecretVariables.Select(n => (Name: n, Value: Environment.GetEnvironmentVariable(n))).ToList();
try
{
foreach (var name in ChildProcessEnvironment.SecretVariables)
{
Environment.SetEnvironmentVariable(name, "valore-di-prova");
}
Assert.IsTrue(new System.Diagnostics.ProcessStartInfo("x").Environment.Keys.Any(ChildProcessEnvironment.IsSecret), "The parent holds them.");
var probe = Febe.Core.Import.FfprobeVideoMetadataProbe.TryCreate(tool)!.BuildStartInfo("video-di-prova.mp4");
var frame = VideoFrameExtractor.TryCreate(tool)!.BuildStartInfo("video-di-prova.mp4", "1");
foreach (var info in new[] { probe, frame })
{
Assert.IsFalse(info.Environment.Keys.Any(ChildProcessEnvironment.IsSecret), info.FileName);
CollectionAssert.Contains(info.ArgumentList.ToArray(), "video-di-prova.mp4");
}
}
finally
{
foreach (var (name, value) in before)
{
Environment.SetEnvironmentVariable(name, value);
}
}
}
private static Func<string, string?> Env(params (string Name, string Value)[] values)
{
var map = values.ToDictionary(v => v.Name, v => v.Value, StringComparer.Ordinal);