diff options
author | MaZderMind <peter@mazdermind.de> | 2014-08-22 19:11:47 +0200 |
---|---|---|
committer | MaZderMind <peter@mazdermind.de> | 2014-08-22 19:11:47 +0200 |
commit | 96c87b85f24a42329f508f4b8f7392808b747693 (patch) | |
tree | a37520ece9ae1d830688b1432b10eef2d78d39b4 /voctocore | |
parent | 60176b4e7be9dcccfd3164b7a4ac4019c7a5da8e (diff) |
add config & config reader
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') +]) |