赞
踩
为什么程序在运行几秒后视频写入速度变得特别慢。
下面是全部代码了
from moviepy.editor import VideoFileClip
from moviepy.editor import CompositeVideoClip
from moviepy.editor import concatenate_videoclips
import xlrd
#文件路径
path = ".\\sources\\{}"
word_art_path = path.format("art{}.mov")
source_path = path.format("{}.mp4")
op_path = path.format("op.mp4")
ed_path = path.format("ed.mp4")
logo_path = path.format("logo.png")
result_path = ".\\results\\{}.mp4"
def fun1(sources, logo_size, logo_top_distance, logo_right_distance, art_one, art_two, art_four, art_five):
#加logo、花字
import moviepy.editor as mp
clip = VideoFileClip(sources)
clip1 = VideoFileClip(word_art_path.format(1), has_mask=True)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。