diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-10-12 03:44:18 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-10-12 03:44:18 +0200 |
commit | a890b9af739665472ec7e7fc031c8a00f57ef7cf (patch) | |
tree | 1c9089795b738f9c2ccf2f37bdbf328b992c48b1 /src/flufigut.py | |
parent | added manager config (diff) |
moved video resize and resample to sperate worker
Diffstat (limited to 'src/flufigut.py')
-rwxr-xr-x | src/flufigut.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/flufigut.py b/src/flufigut.py index 0a718b3..37d5ee9 100755 --- a/src/flufigut.py +++ b/src/flufigut.py @@ -109,10 +109,14 @@ for format in transcode.keys(): resolutions.append(resolution) for resolution in resolutions: + if 'resize' not in worker: + worker['resize'] = -1 + else: + worker['resize'] = 1 flow['input']['resize-%s' % resolution] = { 'type': 'video-resize', 'desc': "resize video to %sx%s" % (globals['resolutions'][resolution]['width'], globals['resolutions'][resolution]['height']), - 'worker': 'input', + 'worker': 'resize', 'feeder': 'raw-input:video', 'properties': { 'width': globals['resolutions'][resolution]['width'], @@ -121,10 +125,14 @@ for resolution in resolutions: } for samplerate in samplerates: + if 'resample' not in worker: + worker['resample'] = -1 + else: + worker['resample'] = 1 flow['input']['resample-%s' % samplerate] = { 'type': 'audio-resample', 'desc': "resample audio to %s Hz" % samplerate, - 'worker': 'input', + 'worker': 'resample', 'feeder': 'raw-input:audio', 'properties': { 'samplerate': samplerate, |