mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01: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)
|
public static bool PosterWithAudio(string image, string audio, string output)
|
||||||
{
|
{
|
||||||
FFMpegHelper.ExtensionExceptionCheck(output, FileExtension.Mp4);
|
FFMpegHelper.ExtensionExceptionCheck(output, FileExtension.Mp4);
|
||||||
FFMpegHelper.ConversionSizeExceptionCheck(Image.FromFile(image));
|
using (var imageFile = Image.FromFile(image))
|
||||||
|
{
|
||||||
|
FFMpegHelper.ConversionSizeExceptionCheck(imageFile);
|
||||||
|
}
|
||||||
|
|
||||||
return FFMpegArguments
|
return FFMpegArguments
|
||||||
.FromFileInput(image, false, options => options
|
.FromFileInput(image, false, options => options
|
||||||
|
|
Loading…
Reference in a new issue