以下是用Python处理该命令行的代码:

import subprocess

input_file = "input.mp4"
output_file = "output.mp4"
start_time = "00:01:35"
duration = "00:22:27"

command = ["ffmpeg", "-i", input_file, "-ss", start_time, "-t", duration, "-c", "copy", output_file]
subprocess.call(command)

请注意,在运行此代码之前,确保已安装FFmpeg并将其添加到系统的路径中。

ffmpeg -i inputmp4 -ss 000135 -t 002227 -c copy outputmp4把这个命令行用python也在这个文件夹里的文件处理一遍

原文地址: https://www.cveoy.top/t/topic/dFn9 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录