-
Notifications
You must be signed in to change notification settings - Fork 3
/
vocto-prod1.py
60 lines (49 loc) · 1.85 KB
/
vocto-prod1.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# vocto-prod1.py
# dvs-mon config to run voctomix in production:
# core, gui, camera, cut, save
# remote video feeds are run out side of this set.
def main(COMMANDS,conf):
print(conf)
COMMANDS.append( Command('voctocore -vv'))
COMMANDS.append( Command('voctogui -vv'))
COMMANDS.append( Command(
'ingest --video-source blackmagic --video-attribs "connection=hdmi mode=18" --audio-source blackmagic'
))
# ingest --port 10001 --host 10.0.0.1 --video-source hdmi2usb --video-attribs "device=/dev/video0"
"""
COMMANDS.append( Command('ingest'))
COMMANDS.append( Command( 'ingest --port 10001 --video-source hdmi2usb ' ))
COMMANDS.append( Command(
'ingest'
' --video-source hdmi2usb --video-attribs "device=/dev/video1"'
' --audio-source pulse'
' --audio-attribs device=alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo'))
COMMANDS.append( Command(
'record-timestamp {dest_path}'.format(**conf)))
"""
COMMANDS.append( Command(
'record-mixed-av {dest_path}'.format(**conf)))
COMMANDS.append( Command(
'generate-cut-list | tee --append {dest_path}/cut-list.log'.format(
**conf)))
return
def get_conf():
import ConfigParser, os
config = ConfigParser.RawConfigParser()
files=config.read(os.path.expanduser('~/veyepar.cfg'))
try:
print(files)
conf=dict(config.items('global'))
dest_path = os.path.expanduser(
'~/Videos/veyepar/{client}/{show}/dv/{room}'.format(**conf))
except KeyError:
dest_path = os.path.expanduser(
'~/Videos/voctomix')
except ConfigParser.NoSectionError:
dest_path = os.path.expanduser(
'~/Videos/voctomix')
ret = {'dest_path':dest_path,
}
return ret
conf = get_conf()
main(COMMANDS,conf)