From 9ba70b26e8d47b2be51beb66e1b31c2e0f0135d4 Mon Sep 17 00:00:00 2001 From: n9Mtq4 Date: Wed, 5 Feb 2020 22:35:16 -0500 Subject: [PATCH] fix manually specifying scenedetect threshold --- av1an.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av1an.py b/av1an.py index 7b4de2a..6387e43 100755 --- a/av1an.py +++ b/av1an.py @@ -105,7 +105,7 @@ class Av1an: parser.add_argument('--encoder', '-enc', type=str, default=self.encoder, help='Choosing encoder') parser.add_argument('--workers', '-t', type=int, default=0, help='Number of workers') parser.add_argument('--audio_params', '-a', type=str, default=self.audio, help='FFmpeg audio settings') - parser.add_argument('--threshold', '-tr', type=str, default=self.threshold, help='PySceneDetect Threshold') + parser.add_argument('--threshold', '-tr', type=float, default=self.threshold, help='PySceneDetect Threshold') parser.add_argument('--logging', '-log', type=str, default=self.logging, help='Enable logging') parser.add_argument('--encode_pass', '-p', type=int, default=self.encode_pass, help='Specify encoding passes') parser.add_argument('--output_file', '-o', type=str, default='', help='Specify output file')