From b7fc33172246e449d77b43c1cdcb43aad4cd474d Mon Sep 17 00:00:00 2001 From: Karl Kroening Date: Thu, 6 Jul 2017 02:32:45 -0600 Subject: [PATCH] Add `split` operator --- ffmpeg/_filters.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ffmpeg/_filters.py b/ffmpeg/_filters.py index 2883873..79949ab 100644 --- a/ffmpeg/_filters.py +++ b/ffmpeg/_filters.py @@ -48,6 +48,11 @@ def filter_(stream_spec, filter_name, *args, **kwargs): return filter_multi_output(stream_spec, filter_name, *args, **kwargs).stream() +@filter_operator() +def split(stream): + return FilterNode(stream, split.__name__) + + @filter_operator() def setpts(stream, expr): """Change the PTS (presentation timestamp) of the input frames.