mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 20:46:43 +00:00
parent
e26e1acf1f
commit
5b97f08029
1 changed files with 4 additions and 1 deletions
|
@ -247,7 +247,10 @@ public static bool Convert(
|
|||
public static bool PosterWithAudio(string image, string audio, string output)
|
||||
{
|
||||
FFMpegHelper.ExtensionExceptionCheck(output, FileExtension.Mp4);
|
||||
FFMpegHelper.ConversionSizeExceptionCheck(Image.FromFile(image));
|
||||
using (var imageFile = Image.FromFile(image))
|
||||
{
|
||||
FFMpegHelper.ConversionSizeExceptionCheck(imageFile);
|
||||
}
|
||||
|
||||
return FFMpegArguments
|
||||
.FromFileInput(image, false, options => options
|
||||
|
|
Loading…
Reference in a new issue