diff --git a/ffmpeg/__init__.py b/ffmpeg/__init__.py index 9e8262f..5714a86 100755 --- a/ffmpeg/__init__.py +++ b/ffmpeg/__init__.py @@ -216,7 +216,7 @@ class _OutputNode(_Node): filter_arg = self._get_filter_arg(filter_nodes, stream_name_map) args += reduce(operator.add, [self._get_input_args(node) for node in input_nodes]) if filter_arg: - args += ['-filter_complex', filter_arg] + args += ['-vf', filter_arg] args += reduce(operator.add, [self._get_output_args(node, stream_name_map) for node in output_nodes]) args += reduce(operator.add, [self._get_global_args(node) for node in global_nodes], []) return args diff --git a/ffmpeg/tests/test_ffmpeg.py b/ffmpeg/tests/test_ffmpeg.py index eba4381..3e30213 100644 --- a/ffmpeg/tests/test_ffmpeg.py +++ b/ffmpeg/tests/test_ffmpeg.py @@ -102,7 +102,7 @@ def test_get_args_complex_filter(): assert args == [ '-i', TEST_INPUT_FILE, '-i', TEST_OVERLAY_FILE, - '-filter_complex', + '-vf', '[0]trim=start_frame=10:end_frame=20,setpts=PTS-STARTPTS[v0];' \ '[0]trim=start_frame=30:end_frame=40,setpts=PTS-STARTPTS[v1];' \ '[v0][v1]concat=n=2[v2];' \