def resize(w, h):
subprocess.call(f'ffmpeg -i input.mp4 -vf scale={w}:{h} output.mp4')
できた!