admin 管理员组

文章数量: 1086019

可以使用FFmpeg库来实现视频格式转换。以下是一段Python代码,可以将MKV格式的视频转换为MP4格式:

import subprocess

input_file = "input.mkv"
output_file = "output.mp4"

subprocess.call(['ffmpeg', '-i', input_file, '-codec'

本文标签: 格式 转换成 视频 python mkv