![](/img/trans.png)
[英]"'float' object cannot be interpreted as an integer" moviepy error
[英]Moviepy return error on CompositeVideoClip = TypeError: 'float' object cannot be interpreted as an integer
我正在嘗試分別使用 VideoFileClip 和 TextClip 通過將它們附加到變量“clip_list”來合成“.mp4”視頻和“文本”。
如果我嘗試在控制台上打印“clip_list”,它會記錄:
[<moviepy.video.io.VideoFileClip.VideoFileClip object at 0x7f3d1da98208>,
<moviepy.video.VideoClip.TextClip object at 0x7f3d20699a20>]
現在在 clip_list 上使用 CompositeVideoClip 會給我以下錯誤。
這里有什么幫助嗎? 我在用:
Python 3.7.3 電影==1.0.2 numpy==1.18.3
您能否分享您產生 output 和錯誤的實際代碼。 如果沒有實際代碼,很難重現這些錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.