ffmpeg cannot find the file specified

Extract video frames using ffmpeg:

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

Running error:

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] 系统找不到指定的文件。

Solution: Anaconda installs ffmpeg, the problem is solved!

conda install -c conda-forge ffmpeg

Guess you like

Origin blog.csdn.net/Calistar/article/details/125069515