摘要:
代码: import subprocess def replace_audio_with_ffmpeg(video_path, audio_path, output_path): # 构建ffmpeg命令 command = [ 'ffmpeg', '-i', video_path, # 输入视频文 阅读全文
摘要:
代码: import os from moviepy.editor import VideoFileClip def split_video(video_path, output_dir): # 加载视频文件 clip = VideoFileClip(video_path) duration = c 阅读全文