在这两个脚本之间导致导出率下降或CPU使用率下降的原因
这个以15bit / s的速率出口
clip1 = VideoFileClip("C:/TBD/TBD/#Frikkie/T1234567/Export/01.mp4")
clip2 = VideoFileClip("C:/TBD/TBD/#Frikkie/T1234567/Export/02.mp4")
clip3 = VideoFileClip("C:/TBD/TBD/#Frikkie/T1234567/Export/03.mp4")
final = concatenate([clip1,
clip2.crossfadein(1),
clip3.crossfadein(1)],
padding=-1, method="compose")
final.write_videofile('myvideo.mp4')
这个下降到只有3 bit / s
path = "C:\TBD\TBD\#Frikkie\T1234567\Export"
videolist = []
for clips in glob.glob(os.path.join(path, '**')):
print(clips)
if ".mp4" in clips:
videolist.append(VideoFileClip(clips).crossfadein(1))
print(videolist)
final = concatenate(videolist, padding=-1, method="compose")
final.write_videofile('myvideo.mp4')