harry0703 / MoneyPrinterTurbo

利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
MIT License
18.07k stars 2.79k forks source link

合并生成视频报错 #456

Open besthack151 opened 3 months ago

besthack151 commented 3 months ago

OSError: MoviePy error: failed to read the first frame of video file F:\AIdouying\MoneyPrinterTurbo\storage\cache_videos/vid-04910b982e4d3ea6659d81aa3fe5d41b.mp4. That might mean that the file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is deprecated. Please update to a recent version from the website.

besthack151 commented 3 months ago

File "F:\AIdouying\lib\python\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 584, in _run_script exec(code, module.dict) File "F:\AIdouying\MoneyPrinterTurbo\webui\Main.py", line 662, in result = tm.start(task_id=task_id, params=params) File "F:\AIdouying\MoneyPrinterTurbo\app\services\task.py", line 170, in start video.combine_videos(combined_video_path=combined_video_path, File "F:\AIdouying\MoneyPrinterTurbo\app\services\video.py", line 55, in combine_videos clip = VideoFileClip(video_path).without_audio() File "", line 2, in init File "F:\AIdouying\lib\python\lib\site-packages\moviepy\decorators.py", line 89, in wrapper return f(*new_a, **new_kw) File "F:\AIdouying\lib\python\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 103, in init self.reader = FFMPEG_VideoReader( File "F:\AIdouying\lib\python\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 73, in init self.initialize() File "F:\AIdouying\lib\python\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 131, in initialize self.lastread = self.read_frame() File "F:\AIdouying\lib\python\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 164, in read_frame raise IOError(

wanai2024 commented 3 months ago

生成竖屏视频没问题,生成宽屏视频同样遇到上面的错误提示: OSError: MoviePy error: failed to read the first frame of video file D:\AI\MoneyPrinterTurbo-Portable-Windows-1.2.0\MoneyPrinterTurbo\storage\cache_videos/vid-d06f45e363f763f7947f9122e86b2d09.mp4. That might mean that the file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is deprecated. Please update to a recent version from the website.

harry0703 commented 3 months ago

生成竖屏视频没问题,生成宽屏视频同样遇到上面的错误提示: OSError: MoviePy error: failed to read the first frame of video file D:\AI\MoneyPrinterTurbo-Portable-Windows-1.2.0\MoneyPrinterTurbo\storage\cache_videos/vid-d06f45e363f763f7947f9122e86b2d09.mp4. That might mean that the file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is deprecated. Please update to a recent version from the website.

可以打开 D:\AI\MoneyPrinterTurbo-Portable-Windows-1.2.0\MoneyPrinterTurbo\storage\cache_videos/vid-d06f45e363f763f7947f9122e86b2d09.mp4,看看是否能正常播放