From e6beca94a383ab916baf294ec2d703a47b4117fc Mon Sep 17 00:00:00 2001 From: DH4 Date: Wed, 7 Jun 2017 11:59:59 -0500 Subject: Added Encoder Settings, FIXME: Add bitrate options. --- core.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core.py') diff --git a/core.py b/core.py index 8ea884b..7b3c69a 100644 --- a/core.py +++ b/core.py @@ -11,6 +11,7 @@ from shutil import rmtree import atexit import time from collections import OrderedDict +import json class Core(): @@ -22,6 +23,13 @@ class Core(): if not os.path.exists(self.tempDir): os.makedirs(self.tempDir) atexit.register(self.deleteTempDir) + self.wd = os.path.dirname(os.path.realpath(__file__)) + self.loadEncoderOptions() + + def loadEncoderOptions(self): + file_path = os.path.join(self.wd, 'encoder-options.json') + with open(file_path) as json_file: + self.encoder_options = json.load(json_file) def findFfmpeg(self): if sys.platform == "win32": -- cgit v1.2.3