aboutsummaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
authortassaron2017-07-15 13:13:53 -0400
committertassaron2017-07-15 13:13:53 -0400
commitbcb8f27c2e4434d2296dcd66bf279b76ee0d0a4f (patch)
tree2a7f9df3eebbae8da4317516f84dfe7490b5d36a /src/main.py
parent62ab09e3f36dcaf6c1a4680dc6c4d048fb2e165c (diff)
use -t on inputs so ffmpeg knows when to stop filters
+ better feedback in cmd mode
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.py b/src/main.py
index b0ece29..2216d2a 100644
--- a/src/main.py
+++ b/src/main.py
@@ -8,13 +8,13 @@ import video_thread
if __name__ == "__main__":
- mode = 'gui'
+ mode = 'GUI'
if len(sys.argv) > 2:
- mode = 'cmd'
+ mode = 'commandline'
elif len(sys.argv) == 2:
if sys.argv[1].startswith('-'):
- mode = 'cmd'
+ mode = 'commandline'
else:
# opening a project file with gui
proj = sys.argv[1]
@@ -22,16 +22,17 @@ if __name__ == "__main__":
# normal gui launch
proj = None
+ print('Starting Audio Visualizer in %s mode' % mode)
app = QtWidgets.QApplication(sys.argv)
app.setApplicationName("audio-visualizer")
# app.setOrganizationName("audio-visualizer")
- if mode == 'cmd':
+ if mode == 'commandline':
from command import *
main = Command()
- elif mode == 'gui':
+ elif mode == 'GUI':
from mainwindow import *
import atexit
import signal