问题
i got this error when using moviepy with "TextClip": 'utf8' codec can't decode byte 0x84 in position 5: invalid start byte
Imagemagick and wand are (proper?) installed. Does anybody knows a possible solution?
回答1:
Apparently moviePy expects non unicode strings (file moviepy/video/VideoClip.py
, line 1095). the workaround for this would be to decode your unicode strings before passing them to the TextClip:
if isinstance(mytext, unicode):
mytext = mytext.encode('latin1')
EDIT
MoviePy expects UTF8 strings (non unicode), so the above becomes
if isinstance(mytext, unicode):
mytext_str = mytext.encode('utf8')
来源:https://stackoverflow.com/questions/28659955/unable-to-create-a-textclip-in-moviepy-imagemagick-succesfully-installed-go