mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Merge pull request #320 from rosenbjerg/bugfix/joinimagesequence-specify-yuv420
Fix for JoinImageSequence
This commit is contained in:
commit
6c752e4edb
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());
|
var success = FFMpeg.JoinImageSequence(outputFile, images: imageSet.ToArray());
|
||||||
Assert.IsTrue(success);
|
Assert.IsTrue(success);
|
||||||
var result = FFProbe.Analyse(outputFile);
|
var result = FFProbe.Analyse(outputFile);
|
||||||
|
|
|
@ -325,6 +325,7 @@ public static bool JoinImageSequence(string output, double frameRate = 30, param
|
||||||
return FFMpegArguments
|
return FFMpegArguments
|
||||||
.FromFileInput(Path.Combine(tempFolderName, "%09d.png"), false)
|
.FromFileInput(Path.Combine(tempFolderName, "%09d.png"), false)
|
||||||
.OutputToFile(output, true, options => options
|
.OutputToFile(output, true, options => options
|
||||||
|
.ForcePixelFormat("yuv420p")
|
||||||
.Resize(firstImage.Width, firstImage.Height)
|
.Resize(firstImage.Width, firstImage.Height)
|
||||||
.WithFramerate(frameRate))
|
.WithFramerate(frameRate))
|
||||||
.ProcessSynchronously();
|
.ProcessSynchronously();
|
||||||
|
|
Loading…
Reference in a new issue