mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 00:24:14 +01:00
Merge pull request #319 from rosenbjerg/bugfix/addposterwithaudio-fixes-317
Fix for PosterWithAudio #317
This commit is contained in:
commit
003ee8a4c7
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue