diff options
| author | tassaron | 2017-07-13 19:31:00 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-13 19:31:00 -0400 |
| commit | d7b678f66d1bb1d5c7ccbbf0c8871b66cc1f8750 (patch) | |
| tree | 576ec1cfa88042c1a46e27e2fad6852b044681d5 /src/core.py | |
| parent | 06c27a48bc3f52e15c15445d822e8a6f523ab98f (diff) | |
staticComponents list is reversed now
Diffstat (limited to 'src/core.py')
| -rw-r--r-- | src/core.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core.py b/src/core.py index d72760d..3f0a6ad 100644 --- a/src/core.py +++ b/src/core.py @@ -527,20 +527,20 @@ class Core: ] if extraAudio: unwantedVideoStreams = [] - for compNo, params in enumerate(extraAudio): + for streamNo, params in enumerate(extraAudio): extraInputFile, params = params ffmpegCommand.extend([ '-i', extraInputFile ]) if 'map' in params and params['map'] == '-v': # a video stream to remove - unwantedVideoStreams.append(compNo + 1) + unwantedVideoStreams.append(streamNo + 1) if unwantedVideoStreams: ffmpegCommand.extend(['-map', '0']) - for compNo in unwantedVideoStreams: + for streamNo in unwantedVideoStreams: ffmpegCommand.extend([ - '-map', '-%s:v' % str(compNo) + '-map', '-%s:v' % str(streamNo) ]) ffmpegCommand.extend([ '-filter_complex', |
