summaryrefslogtreecommitdiff
path: root/src/flufigut.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/flufigut.py')
-rwxr-xr-xsrc/flufigut.py12
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,