MacBookAirにインストールしたeclipseにて、python3.7を使用し、以下のプログラムを実行しようとしています。
pipでもhomebrewでもffmpegはインストールされていることは確認していますが、以下のエラーが解消されません。
解消方法について知見をお持ちの方ご教授いただければ幸いです。
●実行しているプログラム
python
1import ffmpeg 2# 入力 3stream = ffmpeg.input('inputAudio/test.wav') 4# 出力 5stream = ffmpeg.output(stream, 'output.wav',t=2,ss=2) 6# 実行 7ffmpeg.run(stream)
●エラーの内容
Traceback (most recent call last): File "/Users/UserName/git/testApp/test/test.py", line 7, in <module> ffmpeg.run(stream) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ffmpeg/_run.py", line 320, in run overwrite_output=overwrite_output, File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ffmpeg/_run.py", line 285, in run_async args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__ restore_signals, start_new_session) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg': 'ffmpeg'
●インストール済みの内容
$ brew list ffmpeg $ pip list Package Version ------------------------ --------- ffmpeg 1.4 ffmpeg-python 0.2.0 $ which ffmpeg /usr/local/bin/ffmpeg
あなたの回答
tips
プレビュー