diff --git a/Directory.Packages.props b/Directory.Packages.props index 86238c8..ef6dc4b 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -10,21 +10,21 @@ $(NoWarn);NU1507 - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + - - - + + + - - - + + + \ No newline at end of file diff --git a/src/PdqHash/FFMegExtensions.cs b/src/PdqHash/FFMegExtensions.cs index a63bffe..d1aa0b2 100644 --- a/src/PdqHash/FFMegExtensions.cs +++ b/src/PdqHash/FFMegExtensions.cs @@ -21,7 +21,7 @@ await Task.Run(() => FFMpegArguments .FromUrlInput(input) .OutputToFile(baseDir + "Frame%05d.png", true, opts => opts - .WithVideoCodec(VideoCodec.Png) + .WithVideoCodec("png") .WithFramerate(0.5) .Resize(size)) .ProcessAsynchronously(true), cancellationToken); diff --git a/src/PdqHash/Video/VPdqHasher.cs b/src/PdqHash/Video/VPdqHasher.cs index f0ad251..d43f6ff 100644 --- a/src/PdqHash/Video/VPdqHasher.cs +++ b/src/PdqHash/Video/VPdqHasher.cs @@ -124,7 +124,7 @@ public IAsyncEnumerable FromUriAsync(Uri uri, double frameRate, Cancel var args = FFMpegArguments .FromUrlInput(uri) .OutputToFile(baseDir + "/Frame%05d.png", true, opts => opts - .WithVideoCodec(VideoCodec.Png) + .WithVideoCodec("png") .WithFramerate(frameRate) .Resize(new Size(512, 512))); return HashVideoUsingFfmpegAsync(args, baseDir, frameRate, cancellationToken); @@ -136,7 +136,7 @@ public IAsyncEnumerable FromFileAsync(string fileName, double frameRat var args = FFMpegArguments .FromFileInput(fileName) .OutputToFile(baseDir + "/Frame%05d.png", true, opts => opts - .WithVideoCodec(VideoCodec.Png) + .WithVideoCodec("png") .WithFramerate(frameRate) .Resize(new Size(512, 512)));