mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Move Loop(1) to image FileInput. Fix for #206
Former-commit-id: 914003ee32
This commit is contained in:
parent
8c67ddb769
commit
1f3d1ec429
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue