don't create 2 identical audio streams. Fixes #1150

This commit is contained in:
clinton-hall 2017-01-06 09:12:27 +10:30
parent 45a20cdd7e
commit ccd89d5403

View file

@ -367,7 +367,11 @@ def buildCommands(file, newDir, movieName, bitbucket):
audio_cmd2[1] = core.ACODEC2
if audio_cmd2[1] in ['aac', 'dts']:
audio_cmd2[2:2] = ['-strict', '-2']
audio_cmd.extend(audio_cmd2)
if a_mapped[1] == a_mapped[0] and audio_cmd2[1:] == audio_cmd[1:]: #check for duplicate output track.
del map_cmd[-2:]
else:
audio_cmd.extend(audio_cmd2)
if core.AINCLUDE and core.ACODEC3:
for audio in audioStreams: