Merge pull request #57 from aleksasiriski/patch-1

special_flags
This commit is contained in:
Joshua M. Boniface 2023-01-22 12:57:09 -05:00 committed by GitHub
commit 69fad0326a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

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()

View file

@ -76,3 +76,8 @@ rffmpeg:
# Optional local fallback ffmpeg and ffprobe binary paths, if different from the above.
#fallback_ffmpeg: "/usr/lib/jellyfin-ffmpeg/ffmpeg"
#fallback_ffprobe: "/usr/lib/jellyfin-ffmpeg/ffprobe"
# Optional additions to special flags that output to stdout instead of stderr. This isn't an override.
#special_flags:
# - "-muxers"
# - "-fp_format"