python - 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()
。没有任何效果。问题是什么,我该如何解决?谢谢。
解决方案
推荐阅读
- python-3.x - 使用额外的火车列将数据集分成两部分
- ruby-on-rails - 如何使用 kaminari 助手对自定义资源进行分页?
- r - 使用 optim 最大化
- c# - 从非托管 C# DLL 返回列表/数组
- javascript - 具有许多项目的fabric.js的性能
- hibernate - 事务隔离级别 - 它应用于哪个事务?
- algorithm - 排序算法和时间复杂度
- node.js - AWS Api Gateway 响应映射正则表达式不起作用
- android - 当 listitem 刚刚可见时,recyclerview 中的 Videoview 开始播放
- html - 我的 HTML / CSS 网站末尾的空白