Add CONVERTER_HWACCELS and CONVERTER_HWACCEL_DECODERS options

pull/10/head
RandomNinjaAtk 5 years ago committed by GitHub
parent 9fd2f8ab65
commit 7e9766626a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"):

Loading…
Cancel
Save