Move Loop(1) to image FileInput. Fix for #206

Former-commit-id: 914003ee32
This commit is contained in:
Malte Rosenbjerg 2021-08-07 14:40:58 +02:00
parent 8c67ddb769
commit 1f3d1ec429

View file

@ -231,10 +231,10 @@ public static bool PosterWithAudio(string image, string audio, string output)
FFMpegHelper.ConversionSizeExceptionCheck(Image.FromFile(image));
return FFMpegArguments
.FromFileInput(image)
.FromFileInput(image, false, options => options
.Loop(1))
.AddFileInput(audio)
.OutputToFile(output, true, options => options
.Loop(1)
.WithVideoCodec(VideoCodec.LibX264)
.WithConstantRateFactor(21)
.WithAudioBitrate(AudioQuality.Normal)