RayVentura / ShortGPT

πŸš€πŸŽ¬ ShortGPT - Experimental AI framework for youtube shorts / tiktok channel automation
https://shortx.ai/?ref=sgpt
MIT License
5.78k stars 733 forks source link

❓ [Question]: Error at Step 11: _editAndRenderShort #140

Open VladCena opened 1 month ago

VladCena commented 1 month ago

Your Question

Everything works fine until this part, where I get this error:

Step 11 _editAndRenderShort Error File "/content/ShortGPT/gui/ui_tab_short_automation.py", line 114, in create_short for step_num, step_info in shortEngine.makeContent(): File "/content/ShortGPT/shortGPT/engine/abstract_content_engine.py", line 74, in makeContent self.stepDict[currentStep]() File "/content/ShortGPT/shortGPT/engine/reddit_short_engine.py", line 102, in _editAndRenderShort videoEditor.renderVideo(outputPath, logger= self.logger if self.logger is not self.default_logger else None) File "/content/ShortGPT/shortGPT/editing_framework/editing_engine.py", line 97, in renderVideo engine.generate_video(self.schema, outputPath, logger=logger) File "/content/ShortGPT/shortGPT/editing_framework/core_editing_engine.py", line 53, in generate_video clip = self.process_video_asset(asset) File "/content/ShortGPT/shortGPT/editing_framework/core_editing_engine.py", line 200, in process_video_asset clip = VideoFileClip(**params) File "/usr/local/lib/python3.10/dist-packages/moviepy/video/io/VideoFileClip.py", line 88, in init self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt, File "/usr/local/lib/python3.10/dist-packages/moviepy/video/io/ffmpeg_reader.py", line 37, in init self.fps = infos['video_fps']

Any ideas?

TacosyHorchata commented 1 month ago

same here, im using collab

TreeBronch commented 1 month ago

Same problem, looked at it in both collab and locally on docker and the error occurs both times. Did some investigating looks like it has something to do with some of the fetched video assets not having any frames (audio only) when being processed. Not sure why though.

Anil-matcha commented 1 month ago

Here is an alternative which is maintained https://github.com/SamurAIGPT/Text-To-Video-AI