summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/flufigut.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/flufigut.py b/src/flufigut.py
index 7ed1e43..f6c59ce 100755
--- a/src/flufigut.py
+++ b/src/flufigut.py
@@ -181,6 +181,23 @@ for encoder in config['encoder']['video'].keys():
}
+for encoder in config['encoder']['audio'].keys():
+ for audiorate in config['encoder']['audio'][encoder]:
+ if config['globals']['audiorates'][audiorate]['samplerate'] == config['input']['samplerate']:
+ feeder = 'raw-input:audio'
+ else:
+ feeder = 'resample-%s' % config['globals']['audiorates'][audiorate]['samplerate']
+
+ flow['encoder']['encode-%s-%s' % (encoder, audiorate)] = {
+ 'type': '%s-encode' % encoder,
+ 'desc': "%s encoder for %i kbit/s @ %i Hz" % (encoder, config['globals']['audiorates'][audiorate]['bitrate'], config['globals']['audiorates'][audiorate]['samplerate']),
+ 'worker': 'encoder-%s' % encoder,
+ 'feeder': feeder,
+ 'properties': {
+ 'bitrate': config['globals']['audiorates'][audiorate]['bitrate'],
+ },
+ }
+
### generate muxer components ###################################
flow['muxer'] = {}