From 64c02f68aa62989f88d410682cc08f6a1c43e022 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Mon, 1 Sep 2014 14:28:42 +0930 Subject: [PATCH] general opts before -i. Fixes #550 --- nzbtomedia/transcoder/transcoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nzbtomedia/transcoder/transcoder.py b/nzbtomedia/transcoder/transcoder.py index 220b0335..3c4ebf5c 100644 --- a/nzbtomedia/transcoder/transcoder.py +++ b/nzbtomedia/transcoder/transcoder.py @@ -372,6 +372,8 @@ def buildCommands(file, newDir): if nzbtomedia.HWACCEL: command.extend(['-hwaccel', 'auto']) + if nzbtomedia.GENERALOPTS: + command.extend(nzbtomedia.GENERALOPTS) command.extend([ '-i', file]) @@ -382,8 +384,6 @@ def buildCommands(file, newDir): map_cmd.extend(['-map', n]) n += 1 - if nzbtomedia.GENERALOPTS: - command.extend(nzbtomedia.GENERALOPTS) command.extend(map_cmd) command.extend(video_cmd) command.extend(audio_cmd)