antiboredom / vidpy

video editing and compositing with python and melt
https://antiboredom.github.io/vidpy
GNU General Public License v3.0
132 stars 19 forks source link

resize not work #15

Open sugizo opened 9 months ago

sugizo commented 9 months ago

env google colab

steps

!apt update
!apt install -y melt

!wget -c https://cdn.creatomate.com/demo/mountains.mp4

pip install -U vidpy

from vidpy import config, Clip, Composition

config.MELT_BINARY = '/usr/bin/melt'

clip = Clip('mountains.mp4')
print('Width :', clip.width)
print('Height :', clip.height)

clip = Clip('mountains.mp4')
clip.resize(w = '50%', h = '50%', distort = False) # distort = False and distort = True, got the same result
clip.save('resize.mp4')

clip = Clip('resize.mp4')
print('Width :', clip.width)
print('Height :', clip.height)

result not expected no error occured, but the width and height video resize.mp4 is same like the source (mountains.mp4)

expected result the width and height video resize.mp4 is half of
the source (mountains.mp4)

thanks and best regards