rogerxavier
commited on
Commit
•
67734fe
1
Parent(s):
09c7add
Update 3mergeDialogToVideo.py
Browse files- 3mergeDialogToVideo.py +1 -1
3mergeDialogToVideo.py
CHANGED
@@ -286,7 +286,7 @@ if __name__ == '__main__':
|
|
286 |
pass ##图片不规范直接跳过
|
287 |
video = concatenate_videoclips(video_clips)
|
288 |
# 保存视频
|
289 |
-
video.write_videofile('mp4_out/output_video.mp4', fps=fps)
|
290 |
# # 在文件关闭后删除临时文件
|
291 |
print("删除临时mp3文件", filename)
|
292 |
os.remove(filename)
|
|
|
286 |
pass ##图片不规范直接跳过
|
287 |
video = concatenate_videoclips(video_clips)
|
288 |
# 保存视频
|
289 |
+
video.write_videofile('mp4_out/output_video.mp4', fps=fps,temp_audiofile="mp3_out/temp.mp3")
|
290 |
# # 在文件关闭后删除临时文件
|
291 |
print("删除临时mp3文件", filename)
|
292 |
os.remove(filename)
|