diff --git a/README.md b/README.md index b9f3bf8..6eb1f85 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ matchers: # list of file path prefix matchers, the first matching one is used path: '/out' # base directory for output containers: # allowable containers (mkv is recommended!) - mkv + ffargs: [] # extra arguments to ffmpeg (e.g. preset, profile, crf) logerr: true # optional, failures will be logged in .err.log in the matcher dir ``` diff --git a/src/Start-Autoconv.ps1 b/src/Start-Autoconv.ps1 index dbbdd1d..df5d7b9 100644 --- a/src/Start-Autoconv.ps1 +++ b/src/Start-Autoconv.ps1 @@ -375,6 +375,7 @@ function Invoke-Ffmpeg { # for some reason ffmpeg defaults to not including LFE when downmixing to ac3 $ffArgs += @('-ac', '6') } + $ffArgs += $Matcher.ffargs $destExtension = $null if (($sSrc.stream -or $SubFile) -and $Matcher.result.containers -Contains 'mkv') { $destExtension = 'mkv' diff --git a/src/autoconv.json b/src/autoconv.json index 6c80245..7d4ad72 100644 --- a/src/autoconv.json +++ b/src/autoconv.json @@ -13,7 +13,8 @@ "path": "/out", "containers": ["mkv"], "scodecs": ["srt"] - } + }, + "ffargs": [] } ], "logerr": false