Skip to content

Commit

Permalink
Add option for additional ffmpeg arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
leapwill committed Jun 23, 2023
1 parent 4098d09 commit 6252f49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <FileName>.err.log in the matcher dir
```
Expand Down
1 change: 1 addition & 0 deletions src/Start-Autoconv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion src/autoconv.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"path": "/out",
"containers": ["mkv"],
"scodecs": ["srt"]
}
},
"ffargs": []
}
],
"logerr": false
Expand Down

0 comments on commit 6252f49

Please sign in to comment.