From 6cef15827cd1f0a5cb8e28417a5262d2fe00c2eb Mon Sep 17 00:00:00 2001 From: Joshua Barrass Date: Fri, 26 Aug 2022 02:17:11 +0100 Subject: [PATCH] Properly insert speed preset -- produces better compression --- PPM.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PPM.py b/PPM.py index 3276fcb..33350bf 100755 --- a/PPM.py +++ b/PPM.py @@ -900,7 +900,9 @@ if __name__ == '__main__': codec_index = export_command.index("-c:v") export_command[codec_index+1] = "libx265" export_command.insert(codec_index+2, "-x265-params") - export_command.insert(codec_index+3, "lossless=1:preset=veryslow") + export_command.insert(codec_index+3, "lossless=1") + export_command.insert(codec_index+2, "-preset") + export_command.insert(codec_index+3, "veryslow") print " ".join(export_command) with open(os.devnull) as null: subprocess.call(export_command,stdout=null,stderr=null)