ddean2009 / MoneyPrinterPlus

AI一键批量生成各类短视频,自动批量混剪短视频,自动把视频发布到抖音,快手,小红书,视频号上,赚钱从来没有这么容易过! 支持本地语音模型chatTTS,fasterwhisper,GPTSoVITS,支持云语音:Azure,阿里云,腾讯云。支持Stable diffusion,comfyUI直接AI生图。Generate short videos with one click using AI LLM,print money together! support:chatTTS,faster-whisper,GPTSoVITS,Azure,tencent Cloud,Ali Cloud.
GNU General Public License v3.0
1.67k stars 321 forks source link

NotADirectoryError: [Errno 20] Not a directory: 'ffmpeg,请教大佬如何解决 #47

Closed seeeyou closed 4 days ago

seeeyou commented 4 days ago

已经安装了ffmpeg,也配置了环境变量,mac环境。执行生成时报错了 NotADirectoryError: [Errno 20] Not a directory: 'ffmpeg' Traceback: File "/Users/qyongkang/working/MoneyPrinterPlus/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 575, in _run_script self._session_state.on_script_will_rerun( File "/Users/qyongkang/working/MoneyPrinterPlus/venv/lib/python3.10/site-packages/streamlit/runtime/state/safe_session_state.py", line 65, in on_script_will_rerun self._state.on_script_will_rerun(latest_widget_states) File "/Users/qyongkang/working/MoneyPrinterPlus/venv/lib/python3.10/site-packages/streamlit/runtime/state/session_state.py", line 517, in on_script_will_rerun self._call_callbacks() File "/Users/qyongkang/working/MoneyPrinterPlus/venv/lib/python3.10/site-packages/streamlit/runtime/state/session_state.py", line 530, in _call_callbacks self._new_widget_state.call_callback(wid) File "/Users/qyongkang/working/MoneyPrinterPlus/venv/lib/python3.10/site-packages/streamlit/runtime/state/session_state.py", line 274, in call_callback callback(*args, **kwargs) File "/Users/qyongkang/working/MoneyPrinterPlus/pages/01_auto_video.py", line 98, in generate_video main_generate_ai_video(video_generator) File "/Users/qyongkang/working/MoneyPrinterPlus/main.py", line 291, in main_generate_ai_video main_generate_video_dubbing() File "/Users/qyongkang/working/MoneyPrinterPlus/main.py", line 177, in main_generate_video_dubbing extent_audio(audio_output_file, 2) File "/Users/qyongkang/working/MoneyPrinterPlus/tools/utils.py", line 162, in extent_audio subprocess.run(command, capture_output=True, check=True) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename)

seeeyou commented 4 days ago

果然还是ffmpeg没安装好