shortgpt
shortgpt copied to clipboard
🐛 [Bug]: Error generating the video
What happened?
All was going well until i had this error
public/myfile.mp4 .editing_assets/facts_shorts_assets/fe92de63396a490687f59fe3/clipped_background.mp4
Error File "/content/ShortGPT/gui/ui_tab_short_automation.py", line 103, in create_short
for step_num, step_info in shortEngine.makeContent():
File "/content/ShortGPT/shortGPT/engine/abstract_content_engine.py", line 72, in makeContent
self.stepDict[currentStep]()
File "/content/ShortGPT/shortGPT/engine/content_short_engine.py", line 109, in _prepareBackgroundAssets
self._db_background_trimmed = extract_random_clip_from_video(
File "/content/ShortGPT/shortGPT/editing_utils/handle_videos.py", line 54, in extract_random_clip_from_video
except ffmpeg.Error as e:
I have to say that i alredy tried to edit one file (/handle_videos.py) but without results
Thank you An
What type of browser are you seeing the problem on?
Chrome
What type of Operating System are you seeing the problem on?
Google Colab
Python Version
Google Colab one
Application Version
Newest one
Expected Behavior
Error during the making of the video
Error Message
ERROR : Attributeerror : module 'ffmpeg' has no attribute 'Error'
Traceback Info : File "/content/ShortGPT/gui/ui_tab_short_automation.py", line 103, in create_short for step_num, step_info in shortEngine.makeContent(): File "/content/ShortGPT/shortGPT/engine/abstract_content_engine.py", line 72, in makeContent self.stepDict[currentStep]() File "/content/ShortGPT/shortGPT/engine/content_short_engine.py", line 109, in _prepareBackgroundAssets self._db_background_trimmed = extract_random_clip_from_video( File "/content/ShortGPT/shortGPT/editing_utils/handle_videos.py", line 54, in extract_random_clip_from_video except ffmpeg.Error as e:
Code to produce this issue.
No response
Screenshots/Assets/Relevant links
No response