mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user