使用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