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

@@ -47,12 +47,18 @@ type ScenePaths interface {
GetTranscodePath(checksum string) string
}
type FFMpegConfig interface {
GetTranscodeInputArgs() []string
GetTranscodeOutputArgs() []string
}
type Generator struct {
Encoder ffmpeg.FFMpeg
LockManager *fsutil.ReadLockManager
MarkerPaths MarkerPaths
ScenePaths ScenePaths
Overwrite bool
Encoder ffmpeg.FFMpeg
FFMpegConfig FFMpegConfig
LockManager *fsutil.ReadLockManager
MarkerPaths MarkerPaths
ScenePaths ScenePaths
Overwrite bool
}
type generateFn func(lockCtx *fsutil.LockContext, tmpFn string) error