From c96787f6cec2b3cd4283b9c2ac077e56cfcff20f Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 29 Mar 2020 17:49:45 -0400 Subject: [PATCH 1/3] New config options --- root/scripts/update.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/root/scripts/update.py b/root/scripts/update.py index a66c06a..c30c9b4 100644 --- a/root/scripts/update.py +++ b/root/scripts/update.py @@ -22,6 +22,8 @@ def main(): safeConfigParser.set("Converter", "output-format", os.environ.get("CONVERTER_OUTPUT_FORMAT")) if os.environ.get("CONVERTER_OUTPUT_EXTENSION"): safeConfigParser.set("Converter", "output-extension", os.environ.get("CONVERTER_OUTPUT_EXTENSION")) + if os.environ.get("CONVERTER_MINIMUM_SIZE"): + safeConfigParser.set("Converter", "minimum-size", os.environ.get("CONVERTER_MINIMUM_SIZE")) if os.environ.get("CONVERTER_SORT_STREAMS"): safeConfigParser.set("Converter", "sort-streams", os.environ.get("CONVERTER_SORT_STREAMS")) if os.environ.get("CONVERTER_PROCESS_SAME_EXTENSIONS"): @@ -52,8 +54,8 @@ def main(): # Set Video Settings if os.environ.get("VIDEO_CODEC"): safeConfigParser.set("Video", "codec", os.environ.get("VIDEO_CODEC")) - if os.environ.get("VIDEO_BITRATE"): - safeConfigParser.set("Video", "bitrate", os.environ.get("VIDEO_BITRATE")) + if os.environ.get("VIDEO_MAX_BITRATE"): + safeConfigParser.set("Video", "max-bitrate", os.environ.get("VIDEO_MAX_BITRATE")) if os.environ.get("VIDEO_CRF"): safeConfigParser.set("Video", "crf", os.environ.get("VIDEO_CRF")) if os.environ.get("VIDEO_CRF_PROFILES"): @@ -136,6 +138,8 @@ def main(): safeConfigParser.set("Subtitle", "embed-image-subs", os.environ.get("SUBTITLE_EMBED_IMAGE_SUBS")) if os.environ.get("SUBTITLE_EMBED_ONLY_INTERNAL_SUBS"): safeConfigParser.set("Subtitle", "embed-only-internal-subs", os.environ.get("SUBTITLE_EMBED_ONLY_INTERNAL_SUBS")) + if os.environ.get("SUBTITLE_FILENAME_DISPOSITIONS"): + safeConfigParser.set("Subtitle", "filename-dispositions", os.environ.get("SUBTITLE_FILENAME_DISPOSITIONS")) if os.environ.get("SUBTITLE_IGNORE_EMBEDDED_SUBS"): safeConfigParser.set("Subtitle", "ignore-embedded-subs", os.environ.get("SUBTITLE_IGNORE_EMBEDDED_SUBS")) if os.environ.get("SUBTITLE_ATTACHMENT_CODEC"): From 56b71195b5c81e6e2d190f150ca0e5ba85b0c001 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 29 Mar 2020 17:52:52 -0400 Subject: [PATCH 2/3] Update update.py --- root/scripts/update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/root/scripts/update.py b/root/scripts/update.py index c30c9b4..5cd8f7e 100644 --- a/root/scripts/update.py +++ b/root/scripts/update.py @@ -126,6 +126,8 @@ def main(): safeConfigParser.set("Subtitle", "encoding", os.environ.get("SUBTITLE_ENCODING")) if os.environ.get("SUBTITLE_BURN_SUBTITLES"): safeConfigParser.set("Subtitle", "burn-subtitles", os.environ.get("SUBTITLE_BURN_SUBTITLES")) + if os.environ.get("SUBTITLE_BURN_DISPOSITIONS"): + safeConfigParser.set("Subtitle", "burn-dispositions", os.environ.get("SUBTITLE_BURN_DISPOSITIONS")) if os.environ.get("SUBTITLE_DOWNLOAD_SUBS"): safeConfigParser.set("Subtitle", "download-subs", os.environ.get("SUBTITLE_DOWNLOAD_SUBS")) if os.environ.get("SUBTITLE_DOWNLOAD_HEARING_IMPAIRED_SUBS"): From e4c8ef4c1ce5ec16b9112cde55cc140ffae95d6b Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 29 Mar 2020 17:53:38 -0400 Subject: [PATCH 3/3] New settings --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 63f748c..17e5577 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ ENV AUDIO_BEETSTAGGING TRUE ENV CONVERTER_THREADS="0" ENV CONVERTER_OUTPUT_FORMAT="mp4" ENV CONVERTER_OUTPUT_EXTENSION="mp4" +ENV CONVERTER_MINIMUM_SIZE="0" ENV CONVERTER_SORT_STREAMS="True" ENV CONVERTER_PROCESS_SAME_EXTENSIONS="False" ENV CONVERTER_FORCE_CONVERT="False" @@ -35,7 +36,7 @@ ENV METADATA_DOWNLOAD_ARTWORK="poster" ENV METADATA_PRESERVE_SOURCE_DISPOSITION="True" # video settings ENV VIDEO_CODEC="h264, x264" -ENV VIDEO_BITRATE="0" +ENV VIDEO_MAX_BITRATE="0" ENV VIDEO_CRF="-1" ENV VIDEO_CRF_PROFILES="" ENV VIDEO_MAX_WIDTH="0" @@ -70,13 +71,15 @@ ENV SUBTITLE_LANGUAGES="" ENV SUBTITLE_DEFAULT_LANGUAGE="" ENV SUBTITLE_FIRST_STREAM_OF_LANGUAGE="False" ENV SUBTITLE_ENCODING="" -ENV SUBTITLE_BURN_SUBTITLES="" +ENV SUBTITLE_BURN_SUBTITLES="False" +ENV SUBTITLE_BURN_DISPOSITIONS="forced" ENV SUBTITLE_DOWNLOAD_SUBS="False" ENV SUBTITLE_DOWNLOAD_HEARING_IMPAIRED_SUBS="False" ENV SUBTITLE_DOWNLOAD_PROVIDERS="" ENV SUBTITLE_EMBED_SUBS="True" ENV SUBTITLE_EMBED_IMAGE_SUBS="False" ENV SUBTITLE_EMBED_ONLY_INTERNAL_SUBS="False" +ENV SUBTITLE_FILENAME_DISPOSITIONS="forced" ENV SUBTITLE_IGNORE_EMBEDDED_SUBS="False" ENV SUBTITLE_ATTACHMENT_CODEC=""