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

@@ -86,6 +86,9 @@ func (g Generator) transcode(input string, options TranscodeOptions) generateFn
VideoCodec: ffmpeg.VideoCodecLibX264,
VideoArgs: videoArgs,
AudioCodec: ffmpeg.AudioCodecAAC,
ExtraInputArgs: g.FFMpegConfig.GetTranscodeInputArgs(),
ExtraOutputArgs: g.FFMpegConfig.GetTranscodeOutputArgs(),
})
return g.generate(lockCtx, args)
@@ -117,6 +120,9 @@ func (g Generator) transcodeVideo(input string, options TranscodeOptions) genera
VideoCodec: ffmpeg.VideoCodecLibX264,
VideoArgs: videoArgs,
AudioArgs: audioArgs,
ExtraInputArgs: g.FFMpegConfig.GetTranscodeInputArgs(),
ExtraOutputArgs: g.FFMpegConfig.GetTranscodeOutputArgs(),
})
return g.generate(lockCtx, args)