aboutsummaryrefslogtreecommitdiff
path: root/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'core.py')
-rw-r--r--core.py8
1 files changed, 8 insertions, 0 deletions
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":