special_flags

Added `-muxers` and `-fp_format` to special flags and option to add more in the config without overriding the default ones.

#56
This commit is contained in:
Aleksa Siriški 2023-01-22 18:33:33 +01:00 committed by GitHub
parent 43ba05e5b9
commit 5fe09d2800
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,6 +210,7 @@ def load_config():
# Set the database path
config["db_path"] = config["state_dir"] + "/rffmpeg.db"
# Set a list of special flags that cause different behaviour
config["special_flags"] = [
"-version",
@ -218,7 +219,9 @@ def load_config():
"-hwaccels",
"-filters",
"-h",
]
"-muxers",
"-fp_format",
] + config_commands.get("special_flags", [])
# Set the current PID of this process
config["current_pid"] = os.getpid()