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="" diff --git a/root/scripts/update.py b/root/scripts/update.py index a66c06a..5cd8f7e 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"): @@ -124,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"): @@ -136,6 +140,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"):