diff options
Diffstat (limited to 'voctocore')
-rw-r--r-- | voctocore/default-config.ini | 21 | ||||
-rw-r--r-- | voctocore/lib/config.py | 9 |
2 files changed, 30 insertions, 0 deletions
diff --git a/voctocore/default-config.ini b/voctocore/default-config.ini new file mode 100644 index 0000000..f9d90ee --- /dev/null +++ b/voctocore/default-config.ini @@ -0,0 +1,21 @@ +[sources] +video=cam1,cam2,grabber +audio=cam1,cam2 + +videocaps=video/x-raw,format=RGBx,width=1280,height=720,framerate=25/1 +audiocaps=audio/x-raw,format=S16LE,layout=interleaved,channels=2,rate=48000 + +[pause] +;image=/video/pause.png +video=/video/pause.m4v +audio=/video/dudel.m4a + +[nostream] +image=/video/nosteam.png +;video=/video/nosteam.m4v +audio=/video/dudel.m4a + +[mix] +monitorcaps=video/x-raw,width=1024,height=576 + +[client] diff --git a/voctocore/lib/config.py b/voctocore/lib/config.py new file mode 100644 index 0000000..b4c64aa --- /dev/null +++ b/voctocore/lib/config.py @@ -0,0 +1,9 @@ +import os.path +from configparser import SafeConfigParser + +Config = SafeConfigParser() +Config.read([ + 'default-config.ini', + '/etc/voctomix.ini', + os.path.expanduser('~/.voctomix.ini') +]) |