mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +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
|
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)
|
||||||
|
|
Loading…
Reference in a new issue