aboutsummaryrefslogtreecommitdiff
path: root/core.py
diff options
context:
space:
mode:
authorDH42017-06-07 11:59:59 -0500
committerDH42017-06-07 11:59:59 -0500
commite6beca94a383ab916baf294ec2d703a47b4117fc (patch)
treea2f9148b40b385999c131076713f621e1b1cfaec /core.py
parent231af74ea2b247bd73fcdfc44657b7fea2ab1620 (diff)
Added Encoder Settings, FIXME: Add bitrate options.
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":