aboutsummaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
authortassaron2017-07-04 19:52:52 -0400
committertassaron2017-07-04 19:52:52 -0400
commitba0409829de62b745d6f87749572a416061a42b4 (patch)
tree9af0a727e1194432718012110760a5ffc57278fc /src/main.py
parent3a6d7ae421ad2b650cac7f17d43be313787f0e61 (diff)
moved functions into toolkit, fixed CMD appearing on Windows
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/main.py b/src/main.py
index bae9adf..b0ece29 100644
--- a/src/main.py
+++ b/src/main.py
@@ -7,41 +7,6 @@ import preview_thread
import video_thread
-def disableWhenEncoding(func):
- def decorator(*args, **kwargs):
- if args[0].encoding:
- return
- else:
- return func(*args, **kwargs)
- return decorator
-
-
-def LoadDefaultSettings(self):
- self.resolutions = [
- '1920x1080',
- '1280x720',
- '854x480'
- ]
-
- default = {
- "outputWidth": 1280,
- "outputHeight": 720,
- "outputFrameRate": 30,
- "outputAudioCodec": "AAC",
- "outputAudioBitrate": "192",
- "outputVideoCodec": "H264",
- "outputVideoBitrate": "2500",
- "outputVideoFormat": "yuv420p",
- "outputPreset": "medium",
- "outputFormat": "mp4",
- "outputContainer": "MP4",
- "projectDir": os.path.join(self.dataDir, 'projects'),
- }
-
- for parm, value in default.items():
- if self.settings.value(parm) is None:
- self.settings.setValue(parm, value)
-
if __name__ == "__main__":
mode = 'gui'
if len(sys.argv) > 2: