
C:\Users\Sam\Desktop\desktop\startup\workpython\ocr\venv\Scripts\python.exe C:/Users/Sam/Desktop/desktop/startup/workpython/ocr/nomp3ensentancestady.py
Traceback (most recent call last):
File "C:/Users/Sam/Desktop/desktop/startup/workpython/ocr/nomp3ensentancestady.py", line 129, in <module>
generate_video(s)
File "C:/Users/Sam/Desktop/desktop/startup/workpython/ocr/nomp3ensentancestady.py", line 82, in generate_video
audio_seg = AudioSegment.from_mp3(temp_file)
File "C:\Users\Sam\Desktop\desktop\startup\workpython\ocr\venv\lib\site-packages\pydub\audio_segment.py", line 796, in from_mp3
return cls.from_file(file, 'mp3', parameters=parameters)
File "C:\Users\Sam\Desktop\desktop\startup\workpython\ocr\venv\lib\site-packages\pydub\audio_segment.py", line 728, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
File "C:\Users\Sam\Desktop\desktop\startup\workpython\ocr\venv\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
Process finished with exit code 1 不是代理网络的问题吧?
ffmpeg 在 Windows 下会把 -xxx 识别成 命令行参数,所以报 “Unrecognized option”
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。