Skip to content

I can run the text portion with no problems but then I'm not able to generate the video.Help #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
iteachpc opened this issue Jan 6, 2023 · 3 comments

Comments

@iteachpc
Copy link

iteachpc commented Jan 6, 2023

C:\ai video generator>python video_generator.py
Generate New AI Image From Paragraph...
The Generated Image Saved in Images Folder!
The Paragraph Converted into VoiceOver & Saved in Audio Folder!
Extract voiceover and get duration...
Extract Image Clip and Set Duration...
Customize The Text Clip...
Traceback (most recent call last):
File "C:\Users\iteac\AppData\Local\Programs\Python\Python311\Lib\site-packages\moviepy\video\VideoClip.py", line 1137, in init
subprocess_call(cmd, logger=None)
File "C:\Users\iteac\AppData\Local\Programs\Python\Python311\Lib\site-packages\moviepy\tools.py", line 46, in subprocess_call
proc = sp.Popen(cmd, **popen_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\iteac\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\iteac\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1493, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ai video generator\video_generator.py", line 52, in
text_clip = TextClip(para, fontsize=50, color="white")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\iteac\AppData\Local\Programs\Python\Python311\Lib\site-packages\moviepy\video\VideoClip.py", line 1146, in init
raise IOError(error)
OSError: MoviePy Error: creation of None failed because of the following error:

[WinError 2] The system cannot find the file specified.

.This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect

@tegast
Copy link

tegast commented Jan 12, 2023

You should install ImageMagick

@singhenter21
Copy link

same problem i am also facing

@singhjagtar0290
Copy link

  1. Un-Install the ImageMagick
  2. Install the ImageMagick - https://imagemagick.org/script/download.php
  3. When installing install legacies also Fixed link - https://stackoverflow.com/questions/51928807/moviepy-cant-detect-imagemagick-binary-on-windows

I was also facing the same issue but after re-installing it was fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants