極簡代碼搞定視頻剪輯

一、安裝moviepyide

  pip install moviepyspa

二、下載ffmpegcode

  import imageioip

  imageio.plugins.ffmpeg.download()it

三、代碼pip

from moviepy.editor import * video = VideoFileClip("1.mp4").subclip(50,60) result = CompositeVideoClip([video,]) # Overlay text on video result.write_videofile("clips.mp4",fps=25) # Many options...

  

四、運行結果io

相關文章
相關標籤/搜索