From 7e9766626a8bac9857927d90667c2685ea0816a7 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 1 Apr 2020 15:46:47 -0400 Subject: [PATCH] Add CONVERTER_HWACCELS and CONVERTER_HWACCEL_DECODERS options --- root/scripts/update.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/root/scripts/update.py b/root/scripts/update.py index 5cd8f7e..152c8f1 100644 --- a/root/scripts/update.py +++ b/root/scripts/update.py @@ -16,6 +16,12 @@ def main(): # Set FFMPEG/FFProbe Paths safeConfigParser.set("Converter", "ffmpeg", "ffmpeg") safeConfigParser.set("Converter", "ffprobe", "ffprobe") + if os.environ.get("CONVERTER_THREADS"): + safeConfigParser.set("Converter", "threads", os.environ.get("CONVERTER_THREADS")) + if os.environ.get("CONVERTER_HWACCELS"): + safeConfigParser.set("Converter", "hwaccels", os.environ.get("CONVERTER_HWACCELS")) + if os.environ.get("CONVERTER_HWACCEL_DECODERS"): + safeConfigParser.set("Converter", "hwaccel-decoders", os.environ.get("CONVERTER_HWACCEL_DECODERS")) if os.environ.get("CONVERTER_THREADS"): safeConfigParser.set("Converter", "threads", os.environ.get("CONVERTER_THREADS")) if os.environ.get("CONVERTER_OUTPUT_FORMAT"):