Skip to content

Commit

Permalink
[autoScripts] Update to the new swscale filter API
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Dec 11, 2017
1 parent 67cb7b2 commit cb0da58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avidemux_plugins/ADM_autoScrips/lib/ADM_image.py
Expand Up @@ -8,7 +8,7 @@

AR_1_1=0
AR_4_3=1
AR_16_9=2
AR_16_9=3
#
#
#
Expand Down Expand Up @@ -92,7 +92,7 @@ def compute_resize(self,source,dest,wantedWidth,wantedHeight,aspectRatio):
def apply_resize(self,resize):
adm=Avidemux()
if(self.width!=resize.width or self.height!=resize.height):
adm.addVideoFilter("swscale","width="+str(resize.width),"height="+str(resize.height),"algo=1","sourceAR="+str(self.ar),"targetAR="+str(resize.ar))
adm.addVideoFilter("swscale","width="+str(resize.width),"height="+str(resize.height),"algo=1","sourceAR="+str(self.ar),"targetAR="+str(resize.ar),"lockAR=True","roundup=False")
if(resize.topbottom!=0 or resize.leftright!=0):
l=str(resize.leftright)
t=str(resize.topbottom)
Expand Down

0 comments on commit cb0da58

Please sign in to comment.