ffmpeg找不到指定的文件

使用ffmpeg提取视频帧:

call(["ffmpeg", "-i", src, dest])

运行报错:

File "D:\ProgramFiles\Python37\lib\site-packages\ffmpeg\_run.py", line 285, in run_async
    args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream
  File "D:\ProgramFiles\Python37\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "D:\ProgramFiles\Python37\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

解决方法:Anaconda安装ffmpeg,问题解决!

conda install -c conda-forge ffmpeg

猜你喜欢

转载自blog.csdn.net/Calistar/article/details/125069515