Merge pull request #319 from rosenbjerg/bugfix/addposterwithaudio-fixes-317

Fix for PosterWithAudio #317
This commit is contained in:
Malte Rosenbjerg 2022-04-15 12:48:46 +02:00 committed by GitHub
commit 003ee8a4c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,9 +254,11 @@ public static bool PosterWithAudio(string image, string audio, string output)
return FFMpegArguments
.FromFileInput(image, false, options => options
.Loop(1))
.Loop(1)
.ForceFormat("image2"))
.AddFileInput(audio)
.OutputToFile(output, true, options => options
.ForcePixelFormat("yuv420p")
.WithVideoCodec(VideoCodec.LibX264)
.WithConstantRateFactor(21)
.WithAudioBitrate(AudioQuality.Normal)