我正在使用moviepy嘗試調整視頻片段的大小,但每次嘗試時都會出現此錯誤。任何人都可以解釋我如何解決它?由於使用Python旋轉視頻3.4
我的Python代碼
Import everything needed to edit video clips
from moviepy.editor import *
# Load video clip
myclip = VideoFileClip("dog.mov")
myclip.resize((460,720)) # New resolution: (460,720)
myclip.write_videofile("resized_clip.mp4") #write new video file
錯誤
File "/usr/local/lib/python3.4/dist-packages/PIL/Image.py", line 699, in tostring
"Please call tobytes() instead.")
Exception: tostring() has been removed. Please call tobytes() instead.
https://github.com/Zulko/moviepy/issues/241 – interjay