ffmpegpython输出提供找不到文件错误

2024-10-04 01:31:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用ffmpeg python库https://pypi.org/project/ffmpeg-python/尝试mpdecimate

但是,对于下面的简单代码,我得到了一个“未找到文件”错误

def remove_duplicate_ffmpeg(video_file_path,out_video_file_path):
    out, err = (
        ffmpeg
        .input(video_file_path)
        .filter('mpdecimate')
        .output(out_video_file_path)
        .run()
    )
    return out

Tags: 文件path代码httpsorgprojectpypidef