amirreza1307 / shortgpt

ShortGPT without needing openai api
Other
19 stars 4 forks source link

🐛 [Bug]: Error generating the video #3

Open YotomiY opened 8 months ago

YotomiY commented 8 months ago

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

j1seki commented 8 months ago

Same issue here

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 55, in extract_random_clip_from_video .input(video_url, ss=start_time, t=clip_duration)

NAGLOOD commented 7 months ago

Same issue here unfortunately, anyone tried it on the offline version and known it to work then?