Config Files & Bug Fixes
What's New
The few remaining hard-coded options are gone, and I've added config files for both encoders and ffmpeg. There is one major bug fix included and a few minor ones, too.
Configuration Files
In the main project folder, there is a new directory config
that houses two configuration files, encoders.ini
and ffmpeg.ini
. Here, you can set any other option that is not covered by the script. This is convenient for things you use a lot, but no parameter is available for it other than the -*Extra
parameters. I still find those more convenient for lesser-used settings.
The structure is simple, using standard key-value pairs in encoders.ini
:
; encoders.ini
[x264]
open-gop=0
merange=64
[x265]
open-gop=0
limit-refs=2
ffmpeg.ini
is slightly different, with one section for settings which take an argument, i.e. loglevel=warning
, and another for no argument settings, like shortest
:
; ffmpeg.ini
[Arguments]
; Settings that take arguments. Do not quote arguments:
-loglevel=panic
-cpucount=10
[NoArguments]
; Settings that take no arguments:
-hide_banner
-shortest
I coded it so that it expects the preceding -
for each setting, I'm not sure why, but be sure to put it there or it won't work. I'll make it optional in the next release.
Bug Fixes
- I did some unintentional refactoring during the last release, and accidentally pushed it with the code changes. It caused a terminating error on any non-DV encode due to an erroneously missing
if
statement, and has been fixed. - I also fixed a bug in DV where some settings were being tripled in the final command line. This wasn't causing any critical errors, but probably would at some point (not to mention performance).