moviepy的一些问题

相关安装参见:

https://github.com/librosa/librosa/issues/945

https://github.com/librosa/librosa/issues/1037

 

 

解决 ERROR: Could not find a version that satisfies the requirement xxx 的问题

出现这个问题的原因是python国内网络不稳定,直接导致报错。因此我们常用镜像源来解决此问题

 

 

 

TypeError: must be real number, not NoneType
之前还能跑,后来不行了
解决办法
pip install moviepy --upgrade

 

 

遇到ffmpeg等brew后无法导入的,请重启pycharm等即可

 

 

 

关于

No sound with an audio clip add to an video in quicktime,moviepy无法加载音乐等解决办法

参见:https://github.com/Zulko/moviepy/issues/820

clip.write_videofile(out_path,
codec='libx264',
audio_codec='aac',
temp_audiofile='temp-audio.m4a',
remove_temp=True
)

posted @ 2022-05-14 20:44  星涅爱别离  阅读(644)  评论(0编辑  收藏  举报