From a2d2b40f89065e7546fbf341c011ba6861e9c0ec Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Thu, 5 Dec 2013 06:09:31 +1030 Subject: [PATCH] move subtitle statement. fix #213 --- autoProcess/Transcoder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoProcess/Transcoder.py b/autoProcess/Transcoder.py index e71c0b65..af70481d 100644 --- a/autoProcess/Transcoder.py +++ b/autoProcess/Transcoder.py @@ -103,15 +103,15 @@ def Transcode_directory(dirName): if len(outputAudioBitrate) > 0: command.append('-b:a') command.append(outputAudioBitrate) - if len(outputSubtitleCodec) > 0: - command.append('-c:s') - command.append(outputSubtitleCodec) if outputFastStart > 0: command.append('-movflags') command.append('+faststart') if outputQualityPercent > 0: command.append('-q:a') command.append(outputQualityPercent) + if len(outputSubtitleCodec) > 0: + command.append('-c:s') + command.append(outputSubtitleCodec) else: command.append('-sn') # Don't copy the subtitles over command.append(newfilePath)