Fix for PosterWithAudio #317

Former-commit-id: 621b3a2eeb
This commit is contained in:
Malte Rosenbjerg 2022-04-15 12:08:03 +02:00
parent 9dde83c89d
commit fc58cec7e2

View file

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