summaryrefslogtreecommitdiff
path: root/voctocore/voctocore.py
blob: 454a09d69f230d603f9762ac02d770d5c5085ca7 (plain)
  1. #!/usr/bin/python3
  2. import gi, signal
  3. # import GStreamer and GTK-Helper classes
  4. gi.require_version('Gst', '1.0')
  5. from gi.repository import GLib, Gst, Gtk, GObject
  6. # init GObject before importing local classes
  7. GObject.threads_init()
  8. Gst.init(None)
  9. # import local classes
  10. from lib.videomix import Videomix
  11. from lib.controlserver import ControlServer
  12. class Main:
  13. def __init__(self):
  14. # initialize subsystem
  15. self.videomix = Videomix()
  16. self.controlserver = ControlServer(self.videomix)
  17. def runmain():
  18. # make killable by ctrl-c
  19. signal.signal(signal.SIGINT, signal.SIG_DFL)
  20. # start main-class and main-loop
  21. start = Main()
  22. Gtk.main()
  23. if __name__ == '__main__':
  24. runmain()