[python]MKV转MP4

from moviepy.editor import VideoFileClip

def convert_mkv_to_mp4(input_file, output_file):
    video = VideoFileClip(input_file)
    video.write_videofile(output_file, codec='libx264')

if __name__ == "__main__":
    input_mkv = 'input_file.mkv'  # 替换为你的输入文件
    output_mp4 = 'output_file.mp4'  # 替换为你的输出文件
    convert_mkv_to_mp4(input_mkv, output_mp4)