Skip to content
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

Ubuntu 下字幕创建出错(已安装ImageMagick) #95

Open
colin4k opened this issue Jan 13, 2025 · 0 comments
Open

Ubuntu 下字幕创建出错(已安装ImageMagick) #95

colin4k opened this issue Jan 13, 2025 · 0 comments

Comments

@colin4k
Copy link

colin4k commented Jan 13, 2025

2025-01-13 01:13:17.185 | ERROR | app.services.video:generate_video_v3:385 - 警告:创建第 1 条字幕时出错: Traceback (most recent call last):
File "/home/colin/anaconda3/envs/narratoai/lib/python3.10/site-packages/moviepy/video/VideoClip.py", line 1262, in init
subprocess_call(cmd, logger=None)
File "/home/colin/anaconda3/envs/narratoai/lib/python3.10/site-packages/moviepy/tools.py", line 43, in subprocess_call
raise IOError(err.decode("utf8"))
OSError: WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

sh: 1: gs: not found
sh: 1: gs: not found
convert: delegate library support not built-in './resource/fonts/STHeitiMedium.ttc' (Freetype) @ warning/annotate.c/RenderFreetype/2117.
convert: FailedToExecuteCommand 'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -g1020x120 '-sOutputFile=/tmp/magick-PFSjjysyN_sbkL4kdasjWJO744Epybif%d' '-f/tmp/magick-BeEw3wfdE4GyhLA8SDzGv4wJ9LRsHKVn' '-f/tmp/magick-unb7n-NL30DRYc4UQ7cLvLRk7nIQLpan'' (32512) @ error/ghostscript-private.h/ExecuteGhostscriptCommand/75. convert: FailedToExecuteCommand 'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -g1020x120 '-sOutputFile=/tmp/magick-PFSjjysyN_sbkL4kdasjWJO744Epybif%d' '-f/tmp/magick-BeEw3wfdE4GyhLA8SDzGv4wJ9LRsHKVn' '-f/tmp/magick-unb7n-NL30DRYc4UQ7cLvLRk7nIQLpan' -c showpage' (32512) @ error/ghostscript-private.h/ExecuteGhostscriptCommand/75.
convert: no images defined `PNG32:/tmp/tmphdt9ui27.png' @ error/deprecate.c/ConvertImageCommand/3368.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./app/services/video.py", line 356, in generate_video_v3
temp_clip = TextClip(
File "", line 2, in init
File "/home/colin/anaconda3/envs/narratoai/lib/python3.10/site-packages/moviepy/decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "/home/colin/anaconda3/envs/narratoai/lib/python3.10/site-packages/moviepy/video/VideoClip.py", line 1272, in init
raise IOError(error)
OSError: MoviePy Error: creation of None failed because of the following error:

WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

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

1 participant