From 755fb843de221faf90245eb47a1ce8d466e42fd5 Mon Sep 17 00:00:00 2001 From: Davide Depau Date: Fri, 22 Dec 2017 17:11:23 +0100 Subject: [PATCH] Also provide the number of splits to `asplit` filter --- ffmpeg/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg/nodes.py b/ffmpeg/nodes.py index 2b4c94f..013025d 100644 --- a/ffmpeg/nodes.py +++ b/ffmpeg/nodes.py @@ -152,7 +152,7 @@ class FilterNode(Node): def _get_filter(self, outgoing_edges): args = self.args kwargs = self.kwargs - if self.name == 'split': + if self.name in ('split', 'asplit'): args = [len(outgoing_edges)] out_args = [escape_chars(x, '\\\'=:') for x in args]