From ccd89d54031d00b26559385feb48281fc0e5b12b Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Fri, 6 Jan 2017 09:12:27 +1030 Subject: [PATCH] don't create 2 identical audio streams. Fixes #1150 --- core/transcoder/transcoder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/transcoder/transcoder.py b/core/transcoder/transcoder.py index 79329e2a..4f97c891 100644 --- a/core/transcoder/transcoder.py +++ b/core/transcoder/transcoder.py @@ -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: