[英]Moviepy return error on CompositeVideoClip = TypeError: 'float' object cannot be interpreted as an integer
I am trying to composite a '.mp4' video and 'text' using VideoFileClip and TextClip respectively by appending them to a variable 'clip_list'.我正在尝试分别使用 VideoFileClip 和 TextClip 通过将它们附加到变量“clip_list”来合成“.mp4”视频和“文本”。
If I try to print 'clip_list' on console it logs:如果我尝试在控制台上打印“clip_list”,它会记录:
[<moviepy.video.io.VideoFileClip.VideoFileClip object at 0x7f3d1da98208>,
<moviepy.video.VideoClip.TextClip object at 0x7f3d20699a20>]
Now using CompositeVideoClip on clip_list gives me following error.现在在 clip_list 上使用 CompositeVideoClip 会给我以下错误。
Any help here?这里有什么帮助吗? I am using:我在用:
Python 3.7.3 moviepy==1.0.2 numpy==1.18.3 Python 3.7.3 电影==1.0.2 numpy==1.18.3
can you please share your actual code that produces the output and the errors.您能否分享您产生 output 和错误的实际代码。 It's very hard to reproduce those errors without having the actual code.如果没有实际代码,很难重现这些错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.