Allow configuration of ffmpeg args (#3216)

* Allow configuration of ffmpeg args
* Add UI settings for ffmpeg config
* Add changelog entry
* Add documentation in manual
This commit is contained in:
WithoutPants
2023-01-27 11:31:11 +11:00
committed by GitHub
parent a36b895e4b
commit b67abb89ff
20 changed files with 204 additions and 26 deletions

View File

@@ -199,6 +199,9 @@ func (g Generator) previewVideoChunk(lockCtx *fsutil.LockContext, fn string, opt
VideoCodec: ffmpeg.VideoCodecLibX264,
VideoArgs: videoArgs,
ExtraInputArgs: g.FFMpegConfig.GetTranscodeInputArgs(),
ExtraOutputArgs: g.FFMpegConfig.GetTranscodeOutputArgs(),
}
if options.Audio {
@@ -299,6 +302,9 @@ func (g Generator) previewVideoToImage(input string) generateFn {
VideoCodec: ffmpeg.VideoCodecLibWebP,
VideoArgs: videoArgs,
ExtraInputArgs: g.FFMpegConfig.GetTranscodeInputArgs(),
ExtraOutputArgs: g.FFMpegConfig.GetTranscodeOutputArgs(),
}
args := transcoder.Transcode(input, encodeOptions)