don't copy if we are forcing FR or Resolution. Fixes #513

This commit is contained in:
clinton-hall 2014-08-02 08:32:23 +09:30
parent b7cb645930
commit dfb62a059f

View file

@ -158,7 +158,9 @@ def buildCommands(file, newDir):
else: # lower or mathcing ratio, scale by height only.
scale = "-1:" + scale.split(':')[1]
if h_scale != 1:
video_cmd.extend(['-vf', 'scale=' + scale])
video_cmd.extend(['-vf', 'scale=' + scale])
if ('-vf' in video_cmd or '-r' in video_cmd) and video_cmd[1] == 'copy':
video_cmd[1] = nzbtomedia.VCODEC
map_cmd.extend(['-map', '0:' + str(video["index"])])
break # Only one video needed