我在Synology上有一个Python脚本,该脚本应将ffmpeg与pydub结合使用。我通过社区软件包安装了ffmpeg,但是当我运行在本地计算机上顺利运行的脚本时,出现显示的错误
已经尝试定义ffmpeg的绝对路径,但是没有用。
/usr/lib/python2.7/site-packages/pydub/utils.py:193: RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
Traceback (most recent call last):
File "./track_append.py", line 30, in <module>
artist_track = artist_track = AudioSegment.from_file(track_original)
File "/usr/lib/python2.7/site-packages/pydub/audio_segment.py", line 665, in from_file
info = mediainfo_json(orig_file)
File "/usr/lib/python2.7/site-packages/pydub/utils.py", line 263, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory