forked from teltek/Galicaster
-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_galicaster.py
executable file
·43 lines (35 loc) · 995 Bytes
/
run_galicaster.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Galicaster, Multistream Recorder and Player
#
# run_galicaster
#
# Copyright (c) 2011, Teltek Video Research <galicaster@teltek.es>
#
# This work is licensed under the Creative Commons Attribution-
# NonCommercial-ShareAlike 3.0 Unported License. To view a copy of
# this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/
# or send a letter to Creative Commons, 171 Second Street, Suite 300,
# San Francisco, California, 94105, USA.
import sys
import gtk
import pygtk
pygtk.require('2.0')
import pygst
pygst.require('0.10')
from galicaster.core import core
def main(args):
def usage():
sys.stderr.write("usage: %s\n" % args[0])
return 1
if len(args) != 1:
return usage()
try:
gc = core.Main()
gtk.main()
except KeyboardInterrupt:
gc.emit_quit()
print "Interrupted by user!"
return 0
if __name__ == '__main__':
sys.exit(main(sys.argv))