mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 13:11:11 -07:00
Prevent Scale Up
Change prevents lower resolution media from being “scaled up” to the preferred higher resolution, using additional disk space.
This commit is contained in:
parent
8570a6bfc8
commit
3e85307b5d
1 changed files with 2 additions and 2 deletions
|
@ -219,11 +219,11 @@ def buildCommands(file, newDir, movieName, bitbucket):
|
|||
h_scale = height/float(scale.split(':')[1])
|
||||
if w_scale > h_scale: # widescreen, Scale by width only.
|
||||
scale = scale.split(':')[0] + ":" + str(int((height/w_scale)/2)*2)
|
||||
if w_scale != 1:
|
||||
if w_scale > 1:
|
||||
video_cmd.extend(['-vf', 'scale=' + scale])
|
||||
else: # lower or mathcing ratio, scale by height only.
|
||||
scale = str(int((width/h_scale)/2)*2) + ":" + scale.split(':')[1]
|
||||
if h_scale != 1:
|
||||
if h_scale > 1:
|
||||
video_cmd.extend(['-vf', 'scale=' + scale])
|
||||
if nzbtomedia.VBITRATE:
|
||||
video_cmd.extend(['-b:v', str(nzbtomedia.VBITRATE)])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue