mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 00:24:14 +01:00
parent
911aa74f43
commit
27683c478b
2 changed files with 2 additions and 1 deletions
|
@ -468,7 +468,7 @@ public void Video_Join_Image_Sequence()
|
|||
}
|
||||
});
|
||||
|
||||
var outputFile = new TemporaryFile("out.mp4");
|
||||
using var outputFile = new TemporaryFile("out.mp4");
|
||||
var success = FFMpeg.JoinImageSequence(outputFile, images: imageSet.ToArray());
|
||||
Assert.IsTrue(success);
|
||||
var result = FFProbe.Analyse(outputFile);
|
||||
|
|
|
@ -325,6 +325,7 @@ public static bool JoinImageSequence(string output, double frameRate = 30, param
|
|||
return FFMpegArguments
|
||||
.FromFileInput(Path.Combine(tempFolderName, "%09d.png"), false)
|
||||
.OutputToFile(output, true, options => options
|
||||
.ForcePixelFormat("yuv420p")
|
||||
.Resize(firstImage.Width, firstImage.Height)
|
||||
.WithFramerate(frameRate))
|
||||
.ProcessSynchronously();
|
||||
|
|
Loading…
Reference in a new issue