FFMPEG Python:遇到具有相同上游标签的多个传出边缘的比例1920, 1080无;可能需要一个 `split` 过滤器

问题描述

这是有问题的代码

for comment in thread['comments']:
        commentClips += fragmentConcat(comment,filePrefix)
        
        staticclip = ffmpeg.input('assets/static.mp4')
        commentClips.append(staticclip
                                .filter('setsar',1,1)
                                .filter('scale',1920,1080)
                           )
        commentClips.append(staticclip.audio)

代码生成以下错误

ValueError: Encountered scale(1920,1080) <6adb028f8ef5> with multiple outgoing edges with same upstream label None; a `split` filter is probably required

我曾尝试在第一次通话中仅使用输入的视频部分(例如 staticclip['v'].filter...),并且我已尝试按照建议使用 split 通话(例如 ffmpeg.input(...).split()。没有已经成功了。这是什么问题,我该如何补救?谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)