I am new to Linux. I installed ImageMagick as instruction on answer and it worked. But when I run my python code as below:
from moviepy.editor import *
clip = VideoFileClip("video.mkv").subclip(50,60)
clip = clip.volumex(0.8)
txt_clip = TextClip("My Holidays 2013", fontsize = 70, color = 'white')
txt_clip = txt_clip.set_pos('center').set_duration(10)
video = CompositeVideoClip([clip, txt_clip])
video.write_videofile("modifiedVideo.mp4")
it still gives me error like this:
[MoviePy] This command returned an error !Traceback (most recent call last):
File "tst.py", line 5, in <module>
txt_clip = TextClip("My Holidays 2013", fontsize = 70, color = 'white')
File "/usr/local/lib/python2.7/dist-packages/moviepy/video/VideoClip.py", line 1145, in __init__
raise IOError(error)
IOError: MoviePy Error: creation of None failed because of the following error:
convert: not authorized `@/tmp/tmp920Byo.txt' @ error/property.c/InterpretImageProperties/3405.
convert: no images defined `PNG32:/tmp/tmpUoKRUA.png' @ error/convert.c/ConvertImageCommand/3210.
.
.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
it says that ImageMagick
is not installed on my computer(my current version of OS is Ubuntu 16.04 LTS
, my python version is 2.7.12
). Anyone gives me some help? Thx!