summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/flufigut.py25
-rw-r--r--src/test.json2
2 files changed, 25 insertions, 2 deletions
diff --git a/src/flufigut.py b/src/flufigut.py
index f6c59ce..64e0d44 100755
--- a/src/flufigut.py
+++ b/src/flufigut.py
@@ -202,7 +202,30 @@ for encoder in config['encoder']['audio'].keys():
### generate muxer components ###################################
flow['muxer'] = {}
-# TODO
+for format in config['muxer'].keys():
+ muxer = config['globals']['formats'][format]['muxer']
+ aencoder = config['globals']['formats'][format]['audio']
+ if 'video' in config['globals']['formats'][format]:
+ vencoder = config['globals']['formats'][format]['video']
+ else:
+ vencoder = 'none'
+
+ for profile in config['muxer'][format]:
+ resolution = config['globals']['profiles'][profile]['video']
+ arate = config['globals']['profiles'][profile]['audio']
+
+ feeder_audio = aencoder
+ feeder_video = vencoder
+
+ flow['muxer']['muxer-%s-%s' % (muxer, profile)] = {
+ 'type': '%s-mux' % muxer,
+ 'desc': "%s muxer profile %s" % (format, profile),
+ 'worker': 'muxer-%s' % muxer,
+ 'feeder_audio': feeder_audio,
+ 'feeder_video': feeder_video,
+ 'properties': {},
+ }
+
### generate streamer components ################################
flow['streamer'] = {}
diff --git a/src/test.json b/src/test.json
index 161f8d2..2a389ef 100644
--- a/src/test.json
+++ b/src/test.json
@@ -27,7 +27,7 @@
"low": { "video": "360p25", "audio": 96 }
},
"machines": {
- "titan": [ "input", "encoder-vorbis", "encoder-aac", "muxer", "streamer0" ],
+ "titan": [ "input", "encoder-vorbis", "encoder-aac", "muxer-flv", "muxer-webm", "muxer-ogg", "streamer0" ],
"calypso": [ "encoder-h264" ],
"telesto": [ "encoder-vp8" ],
"elevate1": [ "streamer1" ],