mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 21:21:12 -07:00
don't copy if we are forcing FR or Resolution. Fixes #513
This commit is contained in:
parent
b7cb645930
commit
dfb62a059f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue