问题描述
我有一个 python 脚本,我试图在其中使用 pydub 合并 4 个 mp4 剪辑,每个剪辑 1 分钟,但是当我运行它时出现以下错误:
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe,but may not work",RuntimeWarning)
Traceback (most recent call last):
File "/Users/clarajacobsen/Documents/TrueFIR/Download And Cut All Songs.py",line 48,in <module>
Song = AudioSegment.from_file(SongPath,format='mp4')
File "/Users/clarajacobsen/Documents/TrueFIR/venv/lib/python3.9/site-packages/pydub/audio_segment.py",line 685,in from_file
info = mediainfo_json(orig_file,read_ahead_limit=read_ahead_limit)
File "/Users/clarajacobsen/Documents/TrueFIR/venv/lib/python3.9/site-packages/pydub/utils.py",line 274,in mediainfo_json
res = Popen(command,stdin=stdin_parameter,stdout=PIPE,stderr=PIPE)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py",line 947,in __init__
self._execute_child(args,executable,preexec_fn,close_fds,File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py",line 1819,in _execute_child
raise child_exception_type(errno_num,err_msg,err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'
我在 Mac 上通过 PyCharm 运行 Python
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)