diff --git a/over-video.py b/over-video.py index 7e2c5d6..6d1436a 100755 --- a/over-video.py +++ b/over-video.py @@ -55,6 +55,7 @@ if __name__ == "__main__": main.add_option("cut", "Start timestamp and the duration of the portion to use. Uses native ffmpeg -ss<.> and -to<.> format, so it's either seconds from start or [:]:[.<...]<.>. Example: --cut<.> 25 10<.> uses 10 seconds of video starting at 25s, --cut<.> 1:10:45 13:9.5<.> uses video from 4245s to 5034.5s.", over.callback.strings, abbr="X", count=2) main.add_option("fps", "Override input framerate.", float, abbr="f", count=1) main.add_option("output", "Force an output filename. Note that this overrides --container<.> as we're relying on ffmpeg's container detection by reading the suffix. Pass an empty string to use the container's default suffix.", str, [""], count=1) + main.add_option("force-5718", "Force bug #5718 workaround for --audio<.> opus<.>", bool) main.add_option("move-source", "Move source file to this directory after conversion. Pass an empty string to disable.", str, ["processed"], count=1) main.add_option("dump-commands", "Print ffmpeg commands that would be executed. If --normalize<.> is in effect, the normalization pre-pass will still be performed so that the proper volume correction can be computed.", bool, [False], abbr="D", in_cfg_file=False) main.add_option("probe", "Print the raw dict (JSON-esque) output of ffprobe and exit.", bool, [False], abbr="p", in_cfg_file=False) @@ -338,7 +339,7 @@ if __name__ == "__main__": command.sub_opus.NORMALIZE = info.normalize_command # workaround of https://trac.ffmpeg.org/ticket/5718 - if info.audio_channel_layout == "5.1(side)": + if info.audio_channel_layout == "5.1(side)" or main.cfg.force_5718: main.print("applying #5718 workaround<.>", main.print.tl.warn) command.sub_opus.sequence.append("-filter:a") command.sub_opus.sequence.append("channelmap=channel_layout=5.1") diff --git a/version.py b/version.py index 3930969..0db10cf 100644 --- a/version.py +++ b/version.py @@ -2,7 +2,7 @@ # encoding: utf-8 major = 1 # VERSION_MAJOR_IDENTIFIER -minor = 113 # VERSION_MINOR_IDENTIFIER -# VERSION_LAST_MM 1.113 -patch = 1 # VERSION_PATCH_IDENTIFIER +minor = 114 # VERSION_MINOR_IDENTIFIER +# VERSION_LAST_MM 1.114 +patch = 0 # VERSION_PATCH_IDENTIFIER str = ".".join(str(v) for v in (major, minor, patch))