极简代码搞定视频剪辑
1、安装moviepy
pip install moviepy
2、下载ffmpeg
import imageio
imageio.plugins.ffmpeg.download()
3、代码
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...
4、运行结果
相关推荐
千锋 2020-08-17
hzyuhz 2020-04-11
JM 2020-03-07
oXiaoChong 2019-12-23
htofly 2019-12-08
白飞飞Alan 2019-11-19
webpackvuees 2019-11-17
gougouzhang 2019-11-04
bcbeer 2019-09-25
zhoushuntian 2019-09-20
连点 2018-04-16
zry 2018-01-11
jiong 2017-11-24
Adolphlwq 2015-01-08
HankelBao 2013-02-08
huaye00 2019-06-30
JohnToStr 2019-06-30
thug 2019-06-28
vitavae 2019-06-27