我正在编写一个程序来减慢视频并对其进行超采样,但是我已经使该视频减慢了速度,但是当我尝试使用相同的方法对其进行超采样时
from moviepy.editor import *
from moviepy.video.fx.all import *
video = VideoFileClip("People - 6387.mp4")
result = video.speedx(0.5)
blurred = result.supersample()
result.write_videofile("slowedvideo.mp4")
我希望将放慢且模糊的视频写入该文件夹,但是却出现错误消息
Traceback (most recent call last):
File "C:/Users/21kingai/OneDrive - De Smet Jesuit High School/Documents/PythonF/Movietest.py", line 8, in <module>
blurred = result.supersample()
AttributeError: 'VideoFileClip' object has no attribute 'supersample'