From f2a669e21c29bb28fd12ec2cd8846a774d6d9b32 Mon Sep 17 00:00:00 2001 From: David Chen Date: Sun, 5 Jan 2025 21:59:49 +0800 Subject: [PATCH] fix #412 remove kwargs (#413) * fix #412 remove kwargs * fix * fix snapshot * fix * revert * fix --- src/ffmpeg/dag/global_runnable/global_args.py | 3 - src/ffmpeg/dag/io/_input.py | 4 +- src/ffmpeg/dag/io/_output.py | 4 +- src/ffmpeg/dag/io/output_args.py | 4 +- src/ffmpeg/dag/tests/test_nodes.py | 5 +- src/ffmpeg/filters.py | 281 +--- src/ffmpeg/streams/audio.py | 650 +++------ src/ffmpeg/streams/video.py | 1249 ++++++----------- .../test_base/test_output_node.1.json | 12 - src/ffmpeg/tests/test_base.py | 34 +- .../code_gen/templates/_components.jinja | 4 +- .../dag/global_runnable/global_args.py.jinja | 4 +- .../code_gen/templates/dag/io/_input.py.jinja | 4 +- .../templates/dag/io/_output.py.jinja | 4 +- .../templates/dag/io/output_args.py.jinja | 4 +- .../test_gen/test_render[_input.py].raw | 4 +- .../test_gen/test_render[_output.py].raw | 4 +- .../test_gen/test_render[audio.py].raw | 3 +- .../test_gen/test_render[filters.py].raw | 3 +- .../test_gen/test_render[global_args.py].raw | 4 +- .../test_gen/test_render[output_args.py].raw | 4 +- 21 files changed, 765 insertions(+), 1523 deletions(-) delete mode 100644 src/ffmpeg/tests/__snapshots__/test_base/test_output_node.1.json diff --git a/src/ffmpeg/dag/global_runnable/global_args.py b/src/ffmpeg/dag/global_runnable/global_args.py index 2c8b418f..e993a544 100644 --- a/src/ffmpeg/dag/global_runnable/global_args.py +++ b/src/ffmpeg/dag/global_runnable/global_args.py @@ -64,7 +64,6 @@ def global_args( qphist: Func = None, vsync: Func = None, extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> GlobalStream: """ Set global options. @@ -116,7 +115,6 @@ def global_args( qphist: deprecated, does nothing vsync: set video sync method globally; deprecated, use -fps_mode extra_options: Additional options - **kwargs: Additional options Returns: GlobalStream: GlobalStream instance @@ -176,6 +174,5 @@ def global_args( if v is not None } | (extra_options or {}) - | kwargs ), ).stream() diff --git a/src/ffmpeg/dag/io/_input.py b/src/ffmpeg/dag/io/_input.py index 6920135e..2d63814c 100644 --- a/src/ffmpeg/dag/io/_input.py +++ b/src/ffmpeg/dag/io/_input.py @@ -65,7 +65,6 @@ def input( dn: Boolean = None, top: Int = None, extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AVStream: """ Input file URL (ffmpeg ``-i`` option) @@ -125,7 +124,6 @@ def input( dn: disable data top: deprecated, use the setfield video filter extra_options: ffmpeg's input file options - **kwargs: ffmpeg's input file options Returns: Input stream @@ -196,4 +194,4 @@ def input( if v is not None } - return InputNode(filename=str(filename), kwargs=tuple((options | (extra_options or {}) | kwargs).items())).stream() + return InputNode(filename=str(filename), kwargs=tuple((options | (extra_options or {})).items())).stream() diff --git a/src/ffmpeg/dag/io/_output.py b/src/ffmpeg/dag/io/_output.py index 2a742e8e..dacb4d82 100644 --- a/src/ffmpeg/dag/io/_output.py +++ b/src/ffmpeg/dag/io/_output.py @@ -106,7 +106,6 @@ def output( dn: Boolean = None, top: Int = None, extra_options: dict[str, Any] = None, - **kwargs: Any ) -> OutputStream: """ Output file URL @@ -210,7 +209,6 @@ def output( dn: disable data top: deprecated, use the setfield video filter extra_options: the arguments for the output - **kwargs: the arguments for the output Returns: the output stream @@ -318,5 +316,5 @@ def output( } return OutputNode( - inputs=streams, filename=str(filename), kwargs=tuple((options | (extra_options or {}) | kwargs).items()) + inputs=streams, filename=str(filename), kwargs=tuple((options | (extra_options or {})).items()) ).stream() diff --git a/src/ffmpeg/dag/io/output_args.py b/src/ffmpeg/dag/io/output_args.py index 459944c6..038a5231 100644 --- a/src/ffmpeg/dag/io/output_args.py +++ b/src/ffmpeg/dag/io/output_args.py @@ -115,7 +115,6 @@ def output( dn: Boolean = None, top: Int = None, extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> OutputStream: """ Output file URL @@ -219,7 +218,6 @@ def output( dn: disable data top: deprecated, use the setfield video filter extra_options: the arguments for the output - **kwargs: the arguments for the output Returns: the output stream @@ -326,4 +324,4 @@ def output( if v is not None } - return self._output_node(*streams, filename=filename, **options, **(extra_options or {}), **kwargs).stream() + return self._output_node(*streams, filename=filename, **options, **(extra_options or {})).stream() diff --git a/src/ffmpeg/dag/tests/test_nodes.py b/src/ffmpeg/dag/tests/test_nodes.py index c4b055ae..d0161f30 100644 --- a/src/ffmpeg/dag/tests/test_nodes.py +++ b/src/ffmpeg/dag/tests/test_nodes.py @@ -36,7 +36,10 @@ id="filter-node", ), pytest.param( - input(filename="tmp.mp4").output(filename="temp").global_args(y=True, no=False, speed=1).node, + input(filename="tmp.mp4") + .output(filename="temp") + .global_args(y=True, extra_options={"no": False, "speed": 1}) + .node, GlobalNode, id="global-node", ), diff --git a/src/ffmpeg/filters.py b/src/ffmpeg/filters.py index 4a4347de..20c20ce7 100644 --- a/src/ffmpeg/filters.py +++ b/src/ffmpeg/filters.py @@ -74,7 +74,6 @@ def acrossfade( ] | Default = Default("tri"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -105,8 +104,7 @@ def acrossfade( "curve1": curve1, "curve2": curve2, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -116,7 +114,6 @@ def ainterleave( nb_inputs: Int = Auto("len(streams)"), duration: Int | Literal["longest", "shortest", "first"] | Default = Default("longest"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -142,8 +139,7 @@ def ainterleave( "nb_inputs": nb_inputs, "duration": duration, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -158,7 +154,6 @@ def alphamerge( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -189,14 +184,15 @@ def alphamerge( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) def amerge( - *streams: AudioStream, inputs: Int = Auto("len(streams)"), extra_options: dict[str, Any] = None, **kwargs: Any + *streams: AudioStream, + inputs: Int = Auto("len(streams)"), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -218,8 +214,7 @@ def amerge( **{ "inputs": inputs, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -232,7 +227,6 @@ def amix( weights: String = Default("1 1"), normalize: Boolean = Default(True), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -262,14 +256,15 @@ def amix( "weights": weights, "normalize": normalize, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) def amultiply( - _multiply0: AudioStream, _multiply1: AudioStream, extra_options: dict[str, Any] = None, **kwargs: Any + _multiply0: AudioStream, + _multiply1: AudioStream, + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -286,7 +281,7 @@ def amultiply( FFMpegFilterDef(name="amultiply", typings_input=("audio", "audio"), typings_output=("audio",)), _multiply0, _multiply1, - **{} | (extra_options or {}) | kwargs + **{} | (extra_options or {}), ) return filter_node.audio(0) @@ -302,7 +297,6 @@ def anlmf( out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -335,8 +329,7 @@ def anlmf( "out_mode": out_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -352,7 +345,6 @@ def anlms( out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -385,8 +377,7 @@ def anlms( "out_mode": out_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -397,7 +388,6 @@ def apsnr( *, enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -420,8 +410,7 @@ def apsnr( **{ "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -436,7 +425,6 @@ def arls( out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -467,8 +455,7 @@ def arls( "out_mode": out_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -479,7 +466,6 @@ def asdr( *, enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -502,8 +488,7 @@ def asdr( **{ "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -514,7 +499,6 @@ def asisdr( *, enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -537,8 +521,7 @@ def asisdr( **{ "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -548,7 +531,6 @@ def astreamselect( inputs: Int = Auto("len(streams)"), map: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> FilterNode: """ @@ -577,8 +559,7 @@ def astreamselect( "inputs": inputs, "map": map, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node @@ -591,7 +572,6 @@ def axcorrelate( size: Int = Default(256), algo: Int | Literal["slow", "fast", "best"] | Default = Default("best"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -616,8 +596,7 @@ def axcorrelate( "size": size, "algo": algo, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -872,7 +851,6 @@ def blend( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -933,8 +911,7 @@ def blend( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -954,7 +931,6 @@ def bm3d( planes: Int = Default(7), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1002,8 +978,7 @@ def bm3d( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1019,7 +994,6 @@ def colormap( kernel: Int | Literal["euclidean", "weuclidean"] | Default = Default("euclidean"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1051,8 +1025,7 @@ def colormap( "kernel": kernel, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1064,7 +1037,6 @@ def concat( a: Int = Default(0), unsafe: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> FilterNode: """ @@ -1097,8 +1069,7 @@ def concat( "a": a, "unsafe": unsafe, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node @@ -1117,7 +1088,6 @@ def convolve( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1154,8 +1124,7 @@ def convolve( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1170,7 +1139,6 @@ def corr( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1201,8 +1169,7 @@ def corr( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1218,7 +1185,6 @@ def decimate( chroma: Boolean = Default(True), mixed: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1258,8 +1224,7 @@ def decimate( "chroma": chroma, "mixed": mixed, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1277,7 +1242,6 @@ def deconvolve( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1314,8 +1278,7 @@ def deconvolve( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1328,7 +1291,6 @@ def displace( edge: Int | Literal["blank", "smear", "wrap", "mirror"] | Default = Default("smear"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1354,8 +1316,7 @@ def displace( "edge": edge, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1367,7 +1328,6 @@ def feedback( x: Int = Default(0), w: Int = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> tuple[VideoStream, VideoStream,]: """ @@ -1393,8 +1353,7 @@ def feedback( "x": x, "w": w, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return ( filter_node.video(0), @@ -1419,7 +1378,6 @@ def fieldmatch( blocky: Int = Default(16), combpel: Int = Default(80), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1471,8 +1429,7 @@ def fieldmatch( "blocky": blocky, "combpel": combpel, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1483,7 +1440,6 @@ def framepack( *, format: Int | Literal["sbs", "tab", "frameseq", "lines", "columns"] | Default = Default("sbs"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1506,8 +1462,7 @@ def framepack( **{ "format": format, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1520,7 +1475,6 @@ def freezeframes( last: Int64 = Default(0), replace: Int64 = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1547,8 +1501,7 @@ def freezeframes( "last": last, "replace": replace, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1563,7 +1516,6 @@ def guided( planes: Int = Default(1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1601,8 +1553,7 @@ def guided( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1619,7 +1570,6 @@ def haldclut( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1654,8 +1604,7 @@ def haldclut( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1669,7 +1618,6 @@ def headphone( size: Int = Default(1024), hrir: Int | Literal["stereo", "multich"] | Default = Default("stereo"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -1705,8 +1653,7 @@ def headphone( "size": size, "hrir": hrir, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -1716,7 +1663,6 @@ def hstack( inputs: Int = Auto("len(streams)"), shortest: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1740,8 +1686,7 @@ def hstack( "inputs": inputs, "shortest": shortest, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1758,7 +1703,6 @@ def hysteresis( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1793,8 +1737,7 @@ def hysteresis( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1809,7 +1752,6 @@ def identity( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1840,8 +1782,7 @@ def identity( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1851,7 +1792,6 @@ def interleave( nb_inputs: Int = Auto("len(streams)"), duration: Int | Literal["longest", "shortest", "first"] | Default = Default("longest"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1877,8 +1817,7 @@ def interleave( "nb_inputs": nb_inputs, "duration": duration, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1889,7 +1828,6 @@ def join( channel_layout: String = Default("stereo"), map: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -1915,8 +1853,7 @@ def join( "channel_layout": channel_layout, "map": map, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -1937,7 +1874,6 @@ def libvmaf( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -1980,8 +1916,7 @@ def libvmaf( "repeatlast": repeatlast, "ts_sync_mode": ts_sync_mode, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -1994,7 +1929,6 @@ def limitdiff( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2028,8 +1962,7 @@ def limitdiff( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2049,7 +1982,6 @@ def lut2( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2090,8 +2022,7 @@ def lut2( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2106,7 +2037,6 @@ def maskedclamp( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2136,8 +2066,7 @@ def maskedclamp( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2150,7 +2079,6 @@ def maskedmax( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2176,8 +2104,7 @@ def maskedmax( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2190,7 +2117,6 @@ def maskedmerge( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2216,8 +2142,7 @@ def maskedmerge( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2230,7 +2155,6 @@ def maskedmin( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2256,8 +2180,7 @@ def maskedmin( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2271,7 +2194,6 @@ def maskedthreshold( mode: Int | Literal["abs", "diff"] | Default = Default("abs"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2300,8 +2222,7 @@ def maskedthreshold( "mode": mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2319,7 +2240,6 @@ def mergeplanes( map3s: Int = Default(0), map3p: Int = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2363,8 +2283,7 @@ def mergeplanes( "map3s": map3s, "map3p": map3p, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2376,7 +2295,6 @@ def midequalizer( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2401,8 +2319,7 @@ def midequalizer( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2416,7 +2333,6 @@ def mix( duration: Int | Literal["longest", "shortest", "first"] | Default = Default("longest"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2448,8 +2364,7 @@ def mix( "duration": duration, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2469,7 +2384,6 @@ def morpho( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2506,8 +2420,7 @@ def morpho( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2522,7 +2435,6 @@ def msad( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2553,8 +2465,7 @@ def msad( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2568,7 +2479,6 @@ def multiply( planes: Flags = Default("F"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2597,8 +2507,7 @@ def multiply( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2620,7 +2529,6 @@ def overlay( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2661,8 +2569,7 @@ def overlay( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2680,7 +2587,6 @@ def paletteuse( alpha_threshold: Int = Default(128), debug_kdtree: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2713,8 +2619,7 @@ def paletteuse( "alpha_threshold": alpha_threshold, "debug_kdtree": debug_kdtree, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2725,7 +2630,6 @@ def premultiply( inplace: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2755,8 +2659,7 @@ def premultiply( "inplace": inplace, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2774,7 +2677,6 @@ def psnr( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2811,8 +2713,7 @@ def psnr( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2825,7 +2726,6 @@ def remap( format: Int | Literal["color", "gray"] | Default = Default("color"), fill: Color = Default("black"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -2851,8 +2751,7 @@ def remap( "format": format, "fill": fill, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -2874,7 +2773,6 @@ def sidechaincompress( level_sc: Double = Default(1.0), mix: Double = Default(1.0), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -2919,8 +2817,7 @@ def sidechaincompress( "level_sc": level_sc, "mix": mix, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -2943,7 +2840,6 @@ def sidechaingate( level_sc: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -2990,8 +2886,7 @@ def sidechaingate( "level_sc": level_sc, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -3008,7 +2903,6 @@ def signature( th_di: Int = Default(0), th_it: Double = Default(0.5), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3048,8 +2942,7 @@ def signature( "th_di": th_di, "th_it": th_it, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3091,7 +2984,6 @@ def spectrumsynth( overlap: Float = Default(1.0), orientation: Int | Literal["vertical", "horizontal"] | Default = Default("vertical"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AudioStream: """ @@ -3126,8 +3018,7 @@ def spectrumsynth( "overlap": overlap, "orientation": orientation, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.audio(0) @@ -3143,7 +3034,6 @@ def ssim( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3176,8 +3066,7 @@ def ssim( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3187,7 +3076,6 @@ def streamselect( inputs: Int = Auto("len(streams)"), map: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> FilterNode: """ @@ -3216,8 +3104,7 @@ def streamselect( "inputs": inputs, "map": map, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node @@ -3232,7 +3119,6 @@ def threshold( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3261,8 +3147,7 @@ def threshold( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3273,7 +3158,6 @@ def unpremultiply( inplace: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3303,8 +3187,7 @@ def unpremultiply( "inplace": inplace, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3322,7 +3205,6 @@ def varblur( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3359,8 +3241,7 @@ def varblur( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3375,7 +3256,6 @@ def vif( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3406,8 +3286,7 @@ def vif( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3417,7 +3296,6 @@ def vstack( inputs: Int = Auto("len(streams)"), shortest: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3441,8 +3319,7 @@ def vstack( "inputs": inputs, "shortest": shortest, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3459,7 +3336,6 @@ def xcorrelate( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3494,8 +3370,7 @@ def xcorrelate( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3571,7 +3446,6 @@ def xfade( offset: Duration = Default(0.0), expr: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3600,8 +3474,7 @@ def xfade( "offset": offset, "expr": expr, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3617,7 +3490,6 @@ def xmedian( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3653,8 +3525,7 @@ def xmedian( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) @@ -3667,7 +3538,6 @@ def xstack( shortest: Boolean = Default(False), fill: String = Default("none"), extra_options: dict[str, Any] = None, - **kwargs: Any ) -> VideoStream: """ @@ -3697,7 +3567,6 @@ def xstack( "shortest": shortest, "fill": fill, } - | (extra_options or {}) - | kwargs + | (extra_options or {}), ) return filter_node.video(0) diff --git a/src/ffmpeg/streams/audio.py b/src/ffmpeg/streams/audio.py index 0eb9fc1d..3cdec9f6 100644 --- a/src/ffmpeg/streams/audio.py +++ b/src/ffmpeg/streams/audio.py @@ -29,7 +29,6 @@ def a3dscope( xpos: Float = Default(0.0), length: Int = Default(15), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -67,8 +66,7 @@ def a3dscope( "xpos": xpos, "length": length, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -77,7 +75,6 @@ def abench( *, action: Int | Literal["start", "stop"] | Default = Default("start"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -99,8 +96,7 @@ def abench( **{ "action": action, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -112,7 +108,6 @@ def abitscope( colors: String = Default("red|green|blue|yellow|orange|lime|pink|magenta|brown"), mode: Int | Literal["bars", "trace"] | Default = Default("bars"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -140,8 +135,7 @@ def abitscope( "colors": colors, "mode": mode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -161,7 +155,6 @@ def acompressor( level_sc: Double = Default(1.0), mix: Double = Default(1.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -205,13 +198,15 @@ def acompressor( "level_sc": level_sc, "mix": mix, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def acontrast( - self, *, contrast: Float = Default(33.0), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + contrast: Float = Default(33.0), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -233,12 +228,14 @@ def acontrast( **{ "contrast": contrast, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def acopy(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStream: + def acopy( + self, + extra_options: dict[str, Any] = None, + ) -> AudioStream: """ Copy the input audio unchanged to the output. @@ -253,7 +250,7 @@ def acopy(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStr filter_node = filter_node_factory( FFMpegFilterDef(name="acopy", typings_input=("audio",), typings_output=("audio",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.audio(0) @@ -321,7 +318,6 @@ def acrossfade( ] | Default = Default("tri"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -352,8 +348,7 @@ def acrossfade( "curve1": curve1, "curve2": curve2, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -368,7 +363,6 @@ def acrossover( gain: String = Default("1.f"), precision: Int | Literal["auto", "float", "double"] | Default = Default("auto"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -403,8 +397,7 @@ def acrossover( "gain": gain, "precision": precision, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -425,7 +418,6 @@ def acrusher( lforate: Double = Default(0.3), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -469,8 +461,7 @@ def acrusher( "lforate": lforate, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -481,7 +472,6 @@ def acue( preroll: Duration = Default(0.0), buffer: Duration = Default(0.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -507,8 +497,7 @@ def acue( "preroll": preroll, "buffer": buffer, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -523,7 +512,6 @@ def adeclick( method: Int | Literal["add", "a", "save", "s"] | Default = Default("add"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -557,8 +545,7 @@ def adeclick( "method": method, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -573,7 +560,6 @@ def adeclip( method: Int | Literal["add", "a", "save", "s"] | Default = Default("add"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -607,8 +593,7 @@ def adeclip( "method": method, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -619,7 +604,6 @@ def adecorrelate( seed: Int64 = Default(-1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -645,8 +629,7 @@ def adecorrelate( "seed": seed, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -657,7 +640,6 @@ def adelay( all: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -683,8 +665,7 @@ def adelay( "all": all, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -695,7 +676,6 @@ def adenorm( type: Int | Literal["dc", "ac", "square", "pulse"] | Default = Default("dc"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -721,13 +701,15 @@ def adenorm( "type": type, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def aderivative( - self, *, enable: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + enable: String = Default(None), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -749,8 +731,7 @@ def aderivative( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -773,7 +754,6 @@ def adrawgraph( size: Image_size = Default("900x256"), rate: Video_rate = Default("25"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -823,8 +803,7 @@ def adrawgraph( "size": size, "rate": rate, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -837,7 +816,6 @@ def adrc( channels: String = Default("all"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -867,8 +845,7 @@ def adrc( "channels": channels, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -893,7 +870,6 @@ def adynamicequalizer( precision: Int | Literal["auto", "float", "double"] | Default = Default("auto"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -947,8 +923,7 @@ def adynamicequalizer( "precision": precision, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -959,7 +934,6 @@ def adynamicsmooth( basefreq: Double = Default(22050.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -985,8 +959,7 @@ def adynamicsmooth( "basefreq": basefreq, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -998,7 +971,6 @@ def aecho( delays: String = Default("1000"), decays: String = Default("0.5"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1026,8 +998,7 @@ def aecho( "delays": delays, "decays": decays, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1042,7 +1013,6 @@ def aemphasis( | Default = Default("cd"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1072,8 +1042,7 @@ def aemphasis( "type": type, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1084,7 +1053,6 @@ def aeval( channel_layout: String = Default(None), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1110,8 +1078,7 @@ def aeval( "channel_layout": channel_layout, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1128,7 +1095,6 @@ def aexciter( listen: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1166,8 +1132,7 @@ def aexciter( "listen": listen, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1211,7 +1176,6 @@ def afade( unity: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1249,8 +1213,7 @@ def afade( "unity": unity, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1275,7 +1238,6 @@ def afftdn( gain_smooth: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1325,8 +1287,7 @@ def afftdn( "gain_smooth": gain_smooth, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1365,7 +1326,6 @@ def afftfilt( overlap: Float = Default(0.75), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1397,8 +1357,7 @@ def afftfilt( "overlap": overlap, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1409,7 +1368,6 @@ def aformat( sample_rates: String = Default(None), channel_layouts: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1435,8 +1393,7 @@ def aformat( "sample_rates": sample_rates, "channel_layouts": channel_layouts, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1448,7 +1405,6 @@ def afreqshift( order: Int = Default(8), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1476,8 +1432,7 @@ def afreqshift( "order": order, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1494,7 +1449,6 @@ def afwtdn( softness: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1532,8 +1486,7 @@ def afwtdn( "softness": softness, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1554,7 +1507,6 @@ def agate( level_sc: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1600,8 +1552,7 @@ def agate( "level_sc": level_sc, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1636,7 +1587,6 @@ def agraphmonitor( | Default = Default("all+queue"), rate: Video_rate = Default("25"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1666,8 +1616,7 @@ def agraphmonitor( "flags": flags, "rate": rate, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1684,7 +1633,6 @@ def ahistogram( slide: Int | Literal["replace", "scroll"] | Default = Default("replace"), hmode: Int | Literal["abs", "sign"] | Default = Default("abs"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1722,8 +1670,7 @@ def ahistogram( "slide": slide, "hmode": hmode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1746,7 +1693,6 @@ def aiir( size: Image_size = Default("hd720"), rate: Video_rate = Default("25"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -1801,14 +1747,16 @@ def aiir( "size": size, "rate": rate, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node def aintegral( - self, *, enable: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + enable: String = Default(None), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -1830,13 +1778,15 @@ def aintegral( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def alatency( - self, *, enable: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + enable: String = Default(None), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -1858,8 +1808,7 @@ def alatency( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1877,7 +1826,6 @@ def alimiter( latency: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1917,8 +1865,7 @@ def alimiter( "latency": latency, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1936,7 +1883,6 @@ def allpass( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -1976,8 +1922,7 @@ def allpass( "precision": precision, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -1989,7 +1934,6 @@ def aloop( start: Int64 = Default(0), time: Duration = Default("INT64_MAX"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2017,8 +1961,7 @@ def aloop( "start": start, "time": time, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2036,7 +1979,6 @@ def ametadata( direct: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2072,12 +2014,15 @@ def ametadata( "direct": direct, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def amultiply(self, _multiply1: AudioStream, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStream: + def amultiply( + self, + _multiply1: AudioStream, + extra_options: dict[str, Any] = None, + ) -> AudioStream: """ Multiply two audio streams. @@ -2093,7 +2038,7 @@ def amultiply(self, _multiply1: AudioStream, extra_options: dict[str, Any] = Non FFMpegFilterDef(name="amultiply", typings_input=("audio", "audio"), typings_output=("audio",)), self, _multiply1, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.audio(0) @@ -2108,7 +2053,6 @@ def anequalizer( colors: String = Default("red|green|blue|yellow|orange|lime|pink|magenta|brown"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -2147,8 +2091,7 @@ def anequalizer( "colors": colors, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -2163,7 +2106,6 @@ def anlmdn( smooth: Float = Default(11.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2195,8 +2137,7 @@ def anlmdn( "smooth": smooth, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2211,7 +2152,6 @@ def anlmf( out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2244,8 +2184,7 @@ def anlmf( "out_mode": out_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2260,7 +2199,6 @@ def anlms( out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2293,12 +2231,14 @@ def anlms( "out_mode": out_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def anull(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStream: + def anull( + self, + extra_options: dict[str, Any] = None, + ) -> AudioStream: """ Pass the source unchanged to the output. @@ -2313,7 +2253,7 @@ def anull(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStr filter_node = filter_node_factory( FFMpegFilterDef(name="anull", typings_input=("audio",), typings_output=("audio",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.audio(0) @@ -2327,7 +2267,6 @@ def apad( whole_dur: Duration = Default(-1e-06), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2359,8 +2298,7 @@ def apad( "whole_dur": whole_dur, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2371,7 +2309,6 @@ def aperms( seed: Int64 = Default(-1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2397,8 +2334,7 @@ def aperms( "seed": seed, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2417,7 +2353,6 @@ def aphasemeter( angle: Float = Default(170.0), duration: Duration = Default(2.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -2464,8 +2399,7 @@ def aphasemeter( "angle": angle, "duration": duration, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -2480,7 +2414,6 @@ def aphaser( speed: Double = Default(0.5), type: Int | Literal["triangular", "t", "sinusoidal", "s"] | Default = Default("triangular"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2512,8 +2445,7 @@ def aphaser( "speed": speed, "type": type, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2525,7 +2457,6 @@ def aphaseshift( order: Int = Default(8), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2553,8 +2484,7 @@ def aphaseshift( "order": order, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2564,7 +2494,6 @@ def apsnr( *, enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2587,8 +2516,7 @@ def apsnr( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2604,7 +2532,6 @@ def apsyclip( level: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2640,8 +2567,7 @@ def apsyclip( "level": level, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2660,7 +2586,6 @@ def apulsator( ms: Int = Default(500), hz: Double = Default(2.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2702,8 +2627,7 @@ def apulsator( "ms": ms, "hz": hz, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2713,7 +2637,6 @@ def arealtime( limit: Duration = Default(2.0), speed: Double = Default(1.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2737,13 +2660,15 @@ def arealtime( "limit": limit, "speed": speed, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def aresample( - self, *, sample_rate: Int = Default(0), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + sample_rate: Int = Default(0), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -2765,12 +2690,14 @@ def aresample( **{ "sample_rate": sample_rate, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def areverse(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStream: + def areverse( + self, + extra_options: dict[str, Any] = None, + ) -> AudioStream: """ Reverse an audio clip. @@ -2785,7 +2712,7 @@ def areverse(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> Audio filter_node = filter_node_factory( FFMpegFilterDef(name="areverse", typings_input=("audio",), typings_output=("audio",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.audio(0) @@ -2799,7 +2726,6 @@ def arls( out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2830,8 +2756,7 @@ def arls( "out_mode": out_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2842,7 +2767,6 @@ def arnndn( mix: Float = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2868,8 +2792,7 @@ def arnndn( "mix": mix, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2879,7 +2802,6 @@ def asdr( *, enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -2902,8 +2824,7 @@ def asdr( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -2913,7 +2834,6 @@ def asegment( timestamps: String = Default(None), samples: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -2942,8 +2862,7 @@ def asegment( "timestamps": timestamps, "samples": samples, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -2954,7 +2873,6 @@ def aselect( expr: String = Default("1"), outputs: Int = Default(1), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -2981,8 +2899,7 @@ def aselect( "expr": expr, "outputs": outputs, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -2993,7 +2910,6 @@ def asendcmd( commands: String = Default(None), filename: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3017,8 +2933,7 @@ def asendcmd( "commands": commands, "filename": filename, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3029,7 +2944,6 @@ def asetnsamples( pad: Boolean = Default(True), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3055,13 +2969,15 @@ def asetnsamples( "pad": pad, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def asetpts( - self, *, expr: String = Default("PTS"), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + expr: String = Default("PTS"), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -3083,13 +2999,15 @@ def asetpts( **{ "expr": expr, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def asetrate( - self, *, sample_rate: Int = Default(44100), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + sample_rate: Int = Default(44100), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -3111,13 +3029,15 @@ def asetrate( **{ "sample_rate": sample_rate, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def asettb( - self, *, expr: String = Default("intb"), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + expr: String = Default("intb"), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -3139,12 +3059,14 @@ def asettb( **{ "expr": expr, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def ashowinfo(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStream: + def ashowinfo( + self, + extra_options: dict[str, Any] = None, + ) -> AudioStream: """ Show textual information for each audio frame. @@ -3159,7 +3081,7 @@ def ashowinfo(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> Audi filter_node = filter_node_factory( FFMpegFilterDef(name="ashowinfo", typings_input=("audio",), typings_output=("audio",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.audio(0) @@ -3194,7 +3116,6 @@ def asidedata( | Default = Default(-1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3220,8 +3141,7 @@ def asidedata( "type": type, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3231,7 +3151,6 @@ def asisdr( *, enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3254,8 +3173,7 @@ def asisdr( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3271,7 +3189,6 @@ def asoftclip( oversample: Int = Default(1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3303,8 +3220,7 @@ def asoftclip( "oversample": oversample, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3361,7 +3277,6 @@ def aspectralstats( "all+mean+variance+centroid+spread+skewness+kurtosis+entropy+flatness+crest+flux+slope+decrease+rolloff" ), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3389,12 +3304,16 @@ def aspectralstats( "overlap": overlap, "measure": measure, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def asplit(self, *, outputs: Int = Default(2), extra_options: dict[str, Any] = None, **kwargs: Any) -> FilterNode: + def asplit( + self, + *, + outputs: Int = Default(2), + extra_options: dict[str, Any] = None, + ) -> FilterNode: """ Pass on the audio input to N audio outputs. @@ -3418,8 +3337,7 @@ def asplit(self, *, outputs: Int = Default(2), extra_options: dict[str, Any] = N **{ "outputs": outputs, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -3499,7 +3417,6 @@ def astats( "all+Bit_depth+Crest_factor+DC_offset+Dynamic_range+Entropy+Flat_factor+Max_difference+Max_level+Mean_difference+Min_difference+Min_level+Noise_floor+Noise_floor_count+Number_of_Infs+Number_of_NaNs+Number_of_denormals+Number_of_samples+Peak_count+Peak_level+RMS_difference+RMS_level+RMS_peak+RMS_trough+Zero_crossings+Zero_crossings_rate+Abs_Peak_count" ), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3529,8 +3446,7 @@ def astats( "measure_perchannel": measure_perchannel, "measure_overall": measure_overall, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3548,7 +3464,6 @@ def asubboost( channels: String = Default("all"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3588,8 +3503,7 @@ def asubboost( "channels": channels, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3601,7 +3515,6 @@ def asubcut( level: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3629,8 +3542,7 @@ def asubcut( "level": level, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3642,7 +3554,6 @@ def asupercut( level: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3670,8 +3581,7 @@ def asupercut( "level": level, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3684,7 +3594,6 @@ def asuperpass( level: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3714,8 +3623,7 @@ def asuperpass( "level": level, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3728,7 +3636,6 @@ def asuperstop( level: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3758,13 +3665,15 @@ def asuperstop( "level": level, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def atempo( - self, *, tempo: Double = Default(1.0), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + tempo: Double = Default(1.0), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -3786,8 +3695,7 @@ def atempo( **{ "tempo": tempo, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3801,7 +3709,6 @@ def atilt( level: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3833,8 +3740,7 @@ def atilt( "level": level, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3849,7 +3755,6 @@ def atrim( start_sample: Int64 = Default(-1), end_sample: Int64 = Default("I64_MAX"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3883,8 +3788,7 @@ def atrim( "start_sample": start_sample, "end_sample": end_sample, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -3908,7 +3812,6 @@ def avectorscope( swap: Boolean = Default(True), mirror: Int | Literal["none", "x", "y", "xy"] | Default = Default("none"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3960,8 +3863,7 @@ def avectorscope( "swap": swap, "mirror": mirror, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3972,7 +3874,6 @@ def axcorrelate( size: Int = Default(256), algo: Int | Literal["slow", "fast", "best"] | Default = Default("best"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -3997,13 +3898,15 @@ def axcorrelate( "size": size, "algo": algo, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def azmq( - self, *, bind_address: String = Default("tcp://*:5555"), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + bind_address: String = Default("tcp://*:5555"), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -4025,8 +3928,7 @@ def azmq( **{ "bind_address": bind_address, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4045,7 +3947,6 @@ def bandpass( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4087,8 +3988,7 @@ def bandpass( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4106,7 +4006,6 @@ def bandreject( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4146,8 +4045,7 @@ def bandreject( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4167,7 +4065,6 @@ def bass( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4211,8 +4108,7 @@ def bass( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4229,7 +4125,6 @@ def biquad( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4267,8 +4162,7 @@ def biquad( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4278,7 +4172,6 @@ def channelmap( map: String = Default(None), channel_layout: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4302,8 +4195,7 @@ def channelmap( "map": map, "channel_layout": channel_layout, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4313,7 +4205,6 @@ def channelsplit( channel_layout: String = Default("stereo"), channels: String = Default("all"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -4342,8 +4233,7 @@ def channelsplit( "channel_layout": channel_layout, "channels": channels, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -4358,7 +4248,6 @@ def chorus( speeds: String = Default(None), depths: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4390,8 +4279,7 @@ def chorus( "speeds": speeds, "depths": depths, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4406,7 +4294,6 @@ def compand( volume: Double = Default(0.0), delay: Double = Default(0.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4440,8 +4327,7 @@ def compand( "volume": volume, "delay": delay, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4456,7 +4342,6 @@ def compensationdelay( temp: Int = Default(20), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4490,8 +4375,7 @@ def compensationdelay( "temp": temp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4506,7 +4390,6 @@ def crossfeed( block_size: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4540,8 +4423,7 @@ def crossfeed( "block_size": block_size, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4552,7 +4434,6 @@ def crystalizer( c: Boolean = Default(True), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4578,8 +4459,7 @@ def crystalizer( "c": c, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4590,7 +4470,6 @@ def dcshift( limitergain: Double = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4616,8 +4495,7 @@ def dcshift( "limitergain": limitergain, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4630,7 +4508,6 @@ def deesser( s: Int | Literal["i", "o", "e"] | Default = Default("o"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4660,8 +4537,7 @@ def deesser( "s": s, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4673,7 +4549,6 @@ def dialoguenhance( voice: Double = Default(2.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4701,13 +4576,15 @@ def dialoguenhance( "voice": voice, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) def drmeter( - self, *, length: Double = Default(3.0), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + length: Double = Default(3.0), + extra_options: dict[str, Any] = None, ) -> AudioStream: """ @@ -4729,8 +4606,7 @@ def drmeter( **{ "length": length, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4752,7 +4628,6 @@ def dynaudnorm( curve: String = Default(None), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4800,12 +4675,14 @@ def dynaudnorm( "curve": curve, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def earwax(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStream: + def earwax( + self, + extra_options: dict[str, Any] = None, + ) -> AudioStream: """ Widen the stereo image. @@ -4820,7 +4697,7 @@ def earwax(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioSt filter_node = filter_node_factory( FFMpegFilterDef(name="earwax", typings_input=("audio",), typings_output=("audio",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.audio(0) @@ -4845,7 +4722,6 @@ def ebur128( sample_peak: Double = Default(0.0), true_peak: Double = Default(0.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -4904,8 +4780,7 @@ def ebur128( "sample_peak": sample_peak, "true_peak": true_peak, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -4925,7 +4800,6 @@ def equalizer( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -4967,8 +4841,7 @@ def equalizer( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -4979,7 +4852,6 @@ def extrastereo( c: Boolean = Default(True), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5005,8 +4877,7 @@ def extrastereo( "c": c, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5040,7 +4911,6 @@ def firequalizer( fft2: Boolean = Default(False), min_phase: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5086,8 +4956,7 @@ def firequalizer( "fft2": fft2, "min_phase": min_phase, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5103,7 +4972,6 @@ def flanger( phase: Double = Default(25.0), interp: Int | Literal["linear", "quadratic"] | Default = Default("linear"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5139,8 +5007,7 @@ def flanger( "phase": phase, "interp": interp, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5161,7 +5028,6 @@ def haas( right_gain: Double = Default(1.0), right_phase: Boolean = Default(True), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5207,8 +5073,7 @@ def haas( "right_gain": right_gain, "right_phase": right_phase, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5222,7 +5087,6 @@ def hdcd( analyze_mode: Int | Literal["off", "lle", "pe", "cdt", "tgm"] | Default = Default("off"), bits_per_sample: Int | Literal["16", "20", "24"] | Default = Default(16), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5254,8 +5118,7 @@ def hdcd( "analyze_mode": analyze_mode, "bits_per_sample": bits_per_sample, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5274,7 +5137,6 @@ def highpass( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5316,8 +5178,7 @@ def highpass( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5337,7 +5198,6 @@ def highshelf( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5381,8 +5241,7 @@ def highshelf( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5401,7 +5260,6 @@ def loudnorm( dual_mono: Boolean = Default(False), print_format: Int | Literal["none", "json", "summary"] | Default = Default("none"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5443,8 +5301,7 @@ def loudnorm( "dual_mono": dual_mono, "print_format": print_format, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5463,7 +5320,6 @@ def lowpass( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5505,8 +5361,7 @@ def lowpass( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5526,7 +5381,6 @@ def lowshelf( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5570,8 +5424,7 @@ def lowshelf( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5582,7 +5435,6 @@ def mcompand( "0.005,0.1 6 -47/-40,-34/-34,-17/-33 100 | 0.003,0.05 6 -47/-40,-34/-34,-17/-33 400 | 0.000625,0.0125 6 -47/-40,-34/-34,-15/-33 1600 | 0.0001,0.025 6 -47/-40,-34/-34,-31/-31,-0/-30 6400 | 0,0.025 6 -38/-31,-28/-28,-0/-25 22000" ), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5604,12 +5456,16 @@ def mcompand( **{ "args": args, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def pan(self, *, args: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStream: + def pan( + self, + *, + args: String = Default(None), + extra_options: dict[str, Any] = None, + ) -> AudioStream: """ Remix channels with coefficients (panning). @@ -5630,8 +5486,7 @@ def pan(self, *, args: String = Default(None), extra_options: dict[str, Any] = N **{ "args": args, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5641,7 +5496,6 @@ def replaygain( track_gain: Float = Default(0.0), track_peak: Float = Default(0.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5665,8 +5519,7 @@ def replaygain( "track_gain": track_gain, "track_peak": track_peak, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5684,7 +5537,6 @@ def rubberband( pitchq: Int | Literal["quality", "speed", "consistency"] | Default = Default("speed"), channels: Int | Literal["apart", "together"] | Default = Default("apart"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -5724,8 +5576,7 @@ def rubberband( "pitchq": pitchq, "channels": channels, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -5761,7 +5612,6 @@ def showcqt( | Default = Default("unspecified"), cscheme: String = Default("1|0.5|0|0|0.5|1"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5833,8 +5683,7 @@ def showcqt( "csp": csp, "cscheme": cscheme, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5860,7 +5709,6 @@ def showcwt( bar: Float = Default(0.0), rotation: Float = Default(0.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5912,8 +5760,7 @@ def showcwt( "bar": bar, "rotation": rotation, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5960,7 +5807,6 @@ def showfreqs( data: Int | Literal["magnitude", "phase", "delay"] | Default = Default("magnitude"), channels: String = Default("all"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6008,8 +5854,7 @@ def showfreqs( "data": data, "channels": channels, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6046,7 +5891,6 @@ def showspatial( | Default = Default("hann"), rate: Video_rate = Default("25"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6074,8 +5918,7 @@ def showspatial( "win_func": win_func, "rate": rate, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6146,7 +5989,6 @@ def showspectrum( limit: Float = Default(0.0), opacity: Float = Default(1.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6206,8 +6048,7 @@ def showspectrum( "limit": limit, "opacity": opacity, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6274,7 +6115,6 @@ def showspectrumpic( limit: Float = Default(0.0), opacity: Float = Default(1.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6326,8 +6166,7 @@ def showspectrumpic( "limit": limit, "opacity": opacity, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6350,7 +6189,6 @@ def showvolume( m: Int | Literal["p", "r"] | Default = Default("p"), ds: Int | Literal["lin", "log"] | Default = Default("lin"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6400,8 +6238,7 @@ def showvolume( "m": m, "ds": ds, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6417,7 +6254,6 @@ def showwaves( scale: Int | Literal["lin", "log", "sqrt", "cbrt"] | Default = Default("lin"), draw: Int | Literal["scale", "full"] | Default = Default("scale"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6453,8 +6289,7 @@ def showwaves( "scale": scale, "draw": draw, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6468,7 +6303,6 @@ def showwavespic( draw: Int | Literal["scale", "full"] | Default = Default("scale"), filter: Int | Literal["average", "peak"] | Default = Default("average"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6500,8 +6334,7 @@ def showwavespic( "draw": draw, "filter": filter, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6522,7 +6355,6 @@ def sidechaincompress( level_sc: Double = Default(1.0), mix: Double = Default(1.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -6567,8 +6399,7 @@ def sidechaincompress( "level_sc": level_sc, "mix": mix, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -6590,7 +6421,6 @@ def sidechaingate( level_sc: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -6637,8 +6467,7 @@ def sidechaingate( "level_sc": level_sc, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -6649,7 +6478,6 @@ def silencedetect( d: Duration = Default(2.0), mono: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -6675,8 +6503,7 @@ def silencedetect( "d": d, "mono": mono, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -6698,7 +6525,6 @@ def silenceremove( timestamp: Int | Literal["write", "copy"] | Default = Default("write"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -6746,8 +6572,7 @@ def silenceremove( "timestamp": timestamp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -6766,7 +6591,6 @@ def speechnorm( rms: Double = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -6808,8 +6632,7 @@ def speechnorm( "rms": rms, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -6840,7 +6663,6 @@ def stereotools( bmode_out: Int | Literal["balance", "amplitude", "power"] | Default = Default("balance"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -6902,8 +6724,7 @@ def stereotools( "bmode_out": bmode_out, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -6916,7 +6737,6 @@ def stereowiden( drymix: Float = Default(0.8), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -6946,8 +6766,7 @@ def stereowiden( "drymix": drymix, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -6973,7 +6792,6 @@ def superequalizer( _17b: Float = Default(1.0), _18b: Float = Default(1.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -7029,8 +6847,7 @@ def superequalizer( "17b": _17b, "18b": _18b, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -7113,7 +6930,6 @@ def surround( | Default = Default("hann"), overlap: Float = Default(0.5), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -7233,8 +7049,7 @@ def surround( "win_func": win_func, "overlap": overlap, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -7254,7 +7069,6 @@ def tiltshelf( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -7298,8 +7112,7 @@ def tiltshelf( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -7319,7 +7132,6 @@ def treble( blocksize: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -7363,8 +7175,7 @@ def treble( "blocksize": blocksize, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -7375,7 +7186,6 @@ def tremolo( d: Double = Default(0.5), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -7401,8 +7211,7 @@ def tremolo( "d": d, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -7413,7 +7222,6 @@ def vibrato( d: Double = Default(0.5), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -7439,8 +7247,7 @@ def vibrato( "d": d, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -7451,7 +7258,6 @@ def virtualbass( strength: Double = Default(3.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -7477,8 +7283,7 @@ def virtualbass( "strength": strength, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) @@ -7493,7 +7298,6 @@ def volume( replaygain_noclip: Boolean = Default(True), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -7527,12 +7331,14 @@ def volume( "replaygain_noclip": replaygain_noclip, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def volumedetect(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> AudioStream: + def volumedetect( + self, + extra_options: dict[str, Any] = None, + ) -> AudioStream: """ Detect audio volume. @@ -7547,6 +7353,6 @@ def volumedetect(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> A filter_node = filter_node_factory( FFMpegFilterDef(name="volumedetect", typings_input=("audio",), typings_output=("audio",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.audio(0) diff --git a/src/ffmpeg/streams/video.py b/src/ffmpeg/streams/video.py index 497cb8f6..1302be53 100644 --- a/src/ffmpeg/streams/video.py +++ b/src/ffmpeg/streams/video.py @@ -26,7 +26,6 @@ def addroi( qoffset: Rational = Default("-1/10"), clear: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -58,12 +57,14 @@ def addroi( "qoffset": qoffset, "clear": clear, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def alphaextract(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def alphaextract( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Extract an alpha channel as a grayscale image component. @@ -78,7 +79,7 @@ def alphaextract(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> V filter_node = filter_node_factory( FFMpegFilterDef(name="alphaextract", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -92,7 +93,6 @@ def alphamerge( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -123,8 +123,7 @@ def alphamerge( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -140,7 +139,6 @@ def amplify( planes: Flags = Default("7"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -176,8 +174,7 @@ def amplify( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -190,7 +187,6 @@ def ass( alpha: Boolean = Default(False), shaping: Int | Literal["auto", "simple", "complex"] | Default = Default("auto"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -220,8 +216,7 @@ def ass( "alpha": alpha, "shaping": shaping, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -242,7 +237,6 @@ def atadenoise( _2s: Float = Default(32767.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -288,8 +282,7 @@ def atadenoise( "2s": _2s, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -301,7 +294,6 @@ def avgblur( sizeY: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -329,8 +321,7 @@ def avgblur( "sizeY": sizeY, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -342,7 +333,6 @@ def backgroundkey( blend: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -370,8 +360,7 @@ def backgroundkey( "blend": blend, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -381,7 +370,6 @@ def bbox( min_val: Int = Default(16), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -405,8 +393,7 @@ def bbox( "min_val": min_val, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -415,7 +402,6 @@ def bench( *, action: Int | Literal["start", "stop"] | Default = Default("start"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -437,8 +423,7 @@ def bench( **{ "action": action, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -450,7 +435,6 @@ def bilateral( planes: Int = Default(1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -478,8 +462,7 @@ def bilateral( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -490,7 +473,6 @@ def bitplanenoise( filter: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -516,8 +498,7 @@ def bitplanenoise( "filter": filter, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -528,7 +509,6 @@ def blackdetect( picture_black_ratio_th: Double = Default(0.98), pixel_black_th: Double = Default(0.1), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -554,8 +534,7 @@ def blackdetect( "picture_black_ratio_th": picture_black_ratio_th, "pixel_black_th": pixel_black_th, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -565,7 +544,6 @@ def blackframe( amount: Int = Default(98), threshold: Int = Default(32), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -589,8 +567,7 @@ def blackframe( "amount": amount, "threshold": threshold, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -844,7 +821,6 @@ def blend( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -905,8 +881,7 @@ def blend( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -917,7 +892,6 @@ def blockdetect( period_max: Int = Default(24), planes: Int = Default(1), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -943,8 +917,7 @@ def blockdetect( "period_max": period_max, "planes": planes, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -958,7 +931,6 @@ def blurdetect( block_width: Int = Default(-1), planes: Int = Default(1), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -990,8 +962,7 @@ def blurdetect( "block_width": block_width, "planes": planes, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1006,7 +977,6 @@ def boxblur( alpha_power: Int = Default(-1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1040,8 +1010,7 @@ def boxblur( "alpha_power": alpha_power, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1053,7 +1022,6 @@ def bwdif( deint: Int | Literal["all", "interlaced"] | Default = Default("all"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1081,8 +1049,7 @@ def bwdif( "deint": deint, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1093,7 +1060,6 @@ def cas( planes: Flags = Default("7"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1119,12 +1085,14 @@ def cas( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def ccrepack(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def ccrepack( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Repack CEA-708 closed caption metadata @@ -1139,7 +1107,7 @@ def ccrepack(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> Video filter_node = filter_node_factory( FFMpegFilterDef(name="ccrepack", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -1152,7 +1120,6 @@ def chromahold( yuv: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1182,8 +1149,7 @@ def chromahold( "yuv": yuv, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1196,7 +1162,6 @@ def chromakey( yuv: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1226,8 +1191,7 @@ def chromakey( "yuv": yuv, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1245,7 +1209,6 @@ def chromanr( distance: Int | Literal["manhattan", "euclidean"] | Default = Default("manhattan"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1285,8 +1248,7 @@ def chromanr( "distance": distance, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1300,7 +1262,6 @@ def chromashift( edge: Int | Literal["smear", "wrap"] | Default = Default("smear"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1332,8 +1293,7 @@ def chromashift( "edge": edge, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1385,7 +1345,6 @@ def ciescope( gamma: Double = Default(2.6), fill: Boolean = Default(True), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1425,8 +1384,7 @@ def ciescope( "gamma": gamma, "fill": fill, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1440,7 +1398,6 @@ def codecview( block: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1472,8 +1429,7 @@ def codecview( "block": block, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1492,7 +1448,6 @@ def colorbalance( pl: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1534,8 +1489,7 @@ def colorbalance( "pl": pl, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1562,7 +1516,6 @@ def colorchannelmixer( pa: Double = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1620,8 +1573,7 @@ def colorchannelmixer( "pa": pa, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1637,7 +1589,6 @@ def colorcontrast( pl: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1673,8 +1624,7 @@ def colorcontrast( "pl": pl, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1689,7 +1639,6 @@ def colorcorrect( analyze: Int | Literal["manual", "average", "minmax", "median"] | Default = Default("manual"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1723,8 +1672,7 @@ def colorcorrect( "analyze": analyze, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1736,7 +1684,6 @@ def colorhold( blend: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1764,8 +1711,7 @@ def colorhold( "blend": blend, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1778,7 +1724,6 @@ def colorize( mix: Float = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1808,8 +1753,7 @@ def colorize( "mix": mix, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1821,7 +1765,6 @@ def colorkey( blend: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1849,8 +1792,7 @@ def colorkey( "blend": blend, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1876,7 +1818,6 @@ def colorlevels( preserve: Int | Literal["none", "lum", "max", "avg", "sum", "nrm", "pwr"] | Default = Default("none"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1932,8 +1873,7 @@ def colorlevels( "preserve": preserve, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1948,7 +1888,6 @@ def colormap( kernel: Int | Literal["euclidean", "weuclidean"] | Default = Default("euclidean"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -1980,8 +1919,7 @@ def colormap( "kernel": kernel, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -1996,7 +1934,6 @@ def colormatrix( | Default = Default(-1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2022,8 +1959,7 @@ def colormatrix( "dst": dst, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2130,7 +2066,6 @@ def colorspace( | Default = Default(2), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2180,8 +2115,7 @@ def colorspace( "itrc": itrc, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2193,7 +2127,6 @@ def colortemperature( pl: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2221,8 +2154,7 @@ def colortemperature( "pl": pl, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2247,7 +2179,6 @@ def convolution( _3mode: Int | Literal["square", "row", "column"] | Default = Default("square"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2301,8 +2232,7 @@ def convolution( "3mode": _3mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2319,7 +2249,6 @@ def convolve( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2356,12 +2285,14 @@ def convolve( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def copy(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def copy( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Copy the input video unchanged to the output. @@ -2376,7 +2307,7 @@ def copy(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStre filter_node = filter_node_factory( FFMpegFilterDef(name="copy", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -2388,7 +2319,6 @@ def coreimage( filter: String = Default(None), output_rect: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2416,8 +2346,7 @@ def coreimage( "filter": filter, "output_rect": output_rect, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2431,7 +2360,6 @@ def corr( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2462,8 +2390,7 @@ def corr( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2473,7 +2400,6 @@ def cover_rect( cover: String = Default(None), mode: Int | Literal["cover", "blur"] | Default = Default("blur"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2497,8 +2423,7 @@ def cover_rect( "cover": cover, "mode": mode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2512,7 +2437,6 @@ def crop( keep_aspect: Boolean = Default(False), exact: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2544,8 +2468,7 @@ def crop( "keep_aspect": keep_aspect, "exact": exact, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2564,7 +2487,6 @@ def cropdetect( mv_threshold: Int = Default(8), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2606,8 +2528,7 @@ def cropdetect( "mv_threshold": mv_threshold, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2618,7 +2539,6 @@ def cue( preroll: Duration = Default(0.0), buffer: Duration = Default(0.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2644,8 +2564,7 @@ def cue( "preroll": preroll, "buffer": buffer, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2677,7 +2596,6 @@ def curves( interp: Int | Literal["natural", "pchip"] | Default = Default("natural"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2717,8 +2635,7 @@ def curves( "interp": interp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2734,7 +2651,6 @@ def datascope( format: Int | Literal["hex", "dec"] | Default = Default("hex"), components: Int = Default(15), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2770,8 +2686,7 @@ def datascope( "format": format, "components": components, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2783,7 +2698,6 @@ def dblur( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2811,8 +2725,7 @@ def dblur( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2825,7 +2738,6 @@ def dctdnoiz( n: Int = Default(3), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2855,8 +2767,7 @@ def dctdnoiz( "n": n, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2873,7 +2784,6 @@ def deband( coupling: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2911,8 +2821,7 @@ def deband( "coupling": coupling, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2928,7 +2837,6 @@ def deblock( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -2964,8 +2872,7 @@ def deblock( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -2982,7 +2889,6 @@ def deconvolve( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3019,8 +2925,7 @@ def deconvolve( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3034,7 +2939,6 @@ def dedot( ct: Float = Default(0.019), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3066,8 +2970,7 @@ def dedot( "ct": ct, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3080,7 +2983,6 @@ def deflate( threshold3: Int = Default(65535), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3110,8 +3012,7 @@ def deflate( "threshold3": threshold3, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3122,7 +3023,6 @@ def deflicker( mode: Int | Literal["am", "gm", "hm", "qm", "cm", "pm", "median"] | Default = Default("am"), bypass: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3148,12 +3048,16 @@ def deflicker( "mode": mode, "bypass": bypass, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def dejudder(self, *, cycle: Int = Default(4), extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def dejudder( + self, + *, + cycle: Int = Default(4), + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Remove judder produced by pullup. @@ -3174,8 +3078,7 @@ def dejudder(self, *, cycle: Int = Default(4), extra_options: dict[str, Any] = N **{ "cycle": cycle, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3189,7 +3092,6 @@ def delogo( show: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3221,8 +3123,7 @@ def delogo( "show": show, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3236,7 +3137,6 @@ def derain( output: String = Default("y"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3268,8 +3168,7 @@ def derain( "output": output, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3289,7 +3188,6 @@ def deshake( filename: String = Default(None), opencl: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3333,8 +3231,7 @@ def deshake( "filename": filename, "opencl": opencl, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3351,7 +3248,6 @@ def despill( alpha: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3389,8 +3285,7 @@ def despill( "alpha": alpha, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3401,7 +3296,6 @@ def detelecine( pattern: String = Default("23"), start_frame: Int = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3427,8 +3321,7 @@ def detelecine( "pattern": pattern, "start_frame": start_frame, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3442,7 +3335,6 @@ def dilation( threshold3: Int = Default(65535), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3474,8 +3366,7 @@ def dilation( "threshold3": threshold3, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3487,7 +3378,6 @@ def displace( edge: Int | Literal["blank", "smear", "wrap", "mirror"] | Default = Default("smear"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3513,8 +3403,7 @@ def displace( "edge": edge, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3532,7 +3421,6 @@ def dnn_classify( labels: String = Default(None), target: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3572,8 +3460,7 @@ def dnn_classify( "labels": labels, "target": target, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3590,7 +3477,6 @@ def dnn_detect( confidence: Float = Default(0.5), labels: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3628,8 +3514,7 @@ def dnn_detect( "confidence": confidence, "labels": labels, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3644,7 +3529,6 @@ def dnn_processing( options: String = Default(None), _async: Boolean = Default(True), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3678,8 +3562,7 @@ def dnn_processing( "options": options, "async": _async, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3688,7 +3571,6 @@ def doubleweave( *, first_field: Int | Literal["top", "t", "bottom", "b"] | Default = Default("top"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3710,8 +3592,7 @@ def doubleweave( **{ "first_field": first_field, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3728,7 +3609,6 @@ def drawbox( box_source: String = Default(None), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3766,8 +3646,7 @@ def drawbox( "box_source": box_source, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3790,7 +3669,6 @@ def drawgraph( size: Image_size = Default("900x256"), rate: Video_rate = Default("25"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3840,8 +3718,7 @@ def drawgraph( "size": size, "rate": rate, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3857,7 +3734,6 @@ def drawgrid( replace: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -3893,8 +3769,7 @@ def drawgrid( "replace": replace, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -3957,7 +3832,6 @@ def drawtext( | Default = Default("0"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4047,8 +3921,7 @@ def drawtext( "ft_load_flags": ft_load_flags, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4061,7 +3934,6 @@ def edgedetect( planes: Flags | Literal["y", "u", "v", "r", "g", "b"] | Default = Default("y+u+v+r+g+b"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4091,8 +3963,7 @@ def edgedetect( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4105,7 +3976,6 @@ def elbg( pal8: Boolean = Default(False), use_alpha: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4135,8 +4005,7 @@ def elbg( "pal8": pal8, "use_alpha": use_alpha, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4146,7 +4015,6 @@ def entropy( mode: Int | Literal["normal", "diff"] | Default = Default("normal"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4170,12 +4038,16 @@ def entropy( "mode": mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def epx(self, *, n: Int = Default(3), extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def epx( + self, + *, + n: Int = Default(3), + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Scale the input using EPX algorithm. @@ -4196,8 +4068,7 @@ def epx(self, *, n: Int = Default(3), extra_options: dict[str, Any] = None, **kw **{ "n": n, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4215,7 +4086,6 @@ def eq( eval: Int | Literal["init", "frame"] | Default = Default("init"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4255,8 +4125,7 @@ def eq( "eval": eval, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4270,7 +4139,6 @@ def erosion( threshold3: Int = Default(65535), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4302,8 +4170,7 @@ def erosion( "threshold3": threshold3, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4321,7 +4188,6 @@ def estdif( interp: Int | Literal["2p", "4p", "6p"] | Default = Default("4p"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4361,8 +4227,7 @@ def estdif( "interp": interp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4373,7 +4238,6 @@ def exposure( black: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4399,8 +4263,7 @@ def exposure( "black": black, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4409,7 +4272,6 @@ def extractplanes( *, planes: Flags | Literal["y", "u", "v", "r", "g", "b", "a"] | Default = Default("r"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -4436,8 +4298,7 @@ def extractplanes( **{ "planes": planes, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -4454,7 +4315,6 @@ def fade( color: Color = Default("black"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4490,8 +4350,7 @@ def fade( "color": color, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4502,7 +4361,6 @@ def feedback( x: Int = Default(0), w: Int = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> tuple[VideoStream, VideoStream,]: """ @@ -4528,8 +4386,7 @@ def feedback( "x": x, "w": w, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return ( filter_node.video(0), @@ -4575,7 +4432,6 @@ def fftdnoiz( | Default = Default("hann"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4615,8 +4471,7 @@ def fftdnoiz( "window": window, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4632,7 +4487,6 @@ def fftfilt( eval: Int | Literal["init", "frame"] | Default = Default("init"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4668,8 +4522,7 @@ def fftfilt( "eval": eval, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4678,7 +4531,6 @@ def field( *, type: Int | Literal["top", "bottom"] | Default = Default("top"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4700,8 +4552,7 @@ def field( **{ "type": type, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4711,7 +4562,6 @@ def fieldhint( hint: String = Default(None), mode: Int | Literal["absolute", "relative", "pattern"] | Default = Default("absolute"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4735,8 +4585,7 @@ def fieldhint( "hint": hint, "mode": mode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4746,7 +4595,6 @@ def fieldorder( order: Int | Literal["bff", "tff"] | Default = Default("tff"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4770,8 +4618,7 @@ def fieldorder( "order": order, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4788,7 +4635,6 @@ def fillborders( color: Color = Default("black"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4822,8 +4668,7 @@ def fillborders( "color": color, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4836,7 +4681,6 @@ def find_rect( xmin: Int = Default(0), discard: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4866,8 +4710,7 @@ def find_rect( "xmin": xmin, "discard": discard, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4886,7 +4729,6 @@ def floodfill( d3: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4928,13 +4770,15 @@ def floodfill( "d3": d3, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def format( - self, *, pix_fmts: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + pix_fmts: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -4956,8 +4800,7 @@ def format( **{ "pix_fmts": pix_fmts, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -4969,7 +4812,6 @@ def fps( round: Int | Literal["zero", "inf", "down", "up", "near"] | Default = Default("near"), eof_action: Int | Literal["round", "pass"] | Default = Default("round"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -4997,8 +4839,7 @@ def fps( "round": round, "eof_action": eof_action, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5008,7 +4849,6 @@ def framepack( *, format: Int | Literal["sbs", "tab", "frameseq", "lines", "columns"] | Default = Default("sbs"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5031,8 +4871,7 @@ def framepack( **{ "format": format, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5045,7 +4884,6 @@ def framerate( scene: Double = Default(8.2), flags: Flags | Literal["scene_change_detect", "scd"] | Default = Default("scene_change_detect+scd"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5075,8 +4913,7 @@ def framerate( "scene": scene, "flags": flags, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5086,7 +4923,6 @@ def framestep( step: Int = Default(1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5110,8 +4946,7 @@ def framestep( "step": step, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5121,7 +4956,6 @@ def freezedetect( n: Double = Default(0.001), d: Duration = Default(2.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5145,8 +4979,7 @@ def freezedetect( "n": n, "d": d, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5158,7 +4991,6 @@ def freezeframes( last: Int64 = Default(0), replace: Int64 = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5185,8 +5017,7 @@ def freezeframes( "last": last, "replace": replace, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5197,7 +5028,6 @@ def frei0r( filter_params: String = Default(None), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5223,8 +5053,7 @@ def frei0r( "filter_params": filter_params, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5237,7 +5066,6 @@ def fspp( use_bframe_qp: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5267,8 +5095,7 @@ def fspp( "use_bframe_qp": use_bframe_qp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5281,7 +5108,6 @@ def gblur( sigmaV: Float = Default(-1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5311,8 +5137,7 @@ def gblur( "sigmaV": sigmaV, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5329,7 +5154,6 @@ def geq( interpolation: Int | Literal["nearest", "n", "bilinear", "b"] | Default = Default("bilinear"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5367,8 +5191,7 @@ def geq( "interpolation": interpolation, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5379,7 +5202,6 @@ def gradfun( radius: Int = Default(16), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5405,8 +5227,7 @@ def gradfun( "radius": radius, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5441,7 +5262,6 @@ def graphmonitor( | Default = Default("all+queue"), rate: Video_rate = Default("25"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5471,13 +5291,15 @@ def graphmonitor( "flags": flags, "rate": rate, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def grayworld( - self, *, enable: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + enable: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -5499,8 +5321,7 @@ def grayworld( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5512,7 +5333,6 @@ def greyedge( sigma: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5540,8 +5360,7 @@ def greyedge( "sigma": sigma, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5559,7 +5378,6 @@ def haldclut( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5594,13 +5412,15 @@ def haldclut( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def hflip( - self, *, enable: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + enable: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -5622,8 +5442,7 @@ def hflip( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5635,7 +5454,6 @@ def histeq( antibanding: Int | Literal["none", "weak", "strong"] | Default = Default("none"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5663,8 +5481,7 @@ def histeq( "antibanding": antibanding, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5693,7 +5510,6 @@ def histogram( ] | Default = Default("whiteonblack"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5729,8 +5545,7 @@ def histogram( "bgopacity": bgopacity, "colors_mode": colors_mode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5743,7 +5558,6 @@ def hqdn3d( chroma_tmp: Double = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5773,12 +5587,16 @@ def hqdn3d( "chroma_tmp": chroma_tmp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def hqx(self, *, n: Int = Default(3), extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def hqx( + self, + *, + n: Int = Default(3), + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Scale the input by 2, 3 or 4 using the hq*x magnification algorithm. @@ -5799,8 +5617,7 @@ def hqx(self, *, n: Int = Default(3), extra_options: dict[str, Any] = None, **kw **{ "n": n, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5814,7 +5631,6 @@ def hsvhold( blend: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5846,8 +5662,7 @@ def hsvhold( "blend": blend, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5861,7 +5676,6 @@ def hsvkey( blend: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5893,8 +5707,7 @@ def hsvkey( "blend": blend, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5907,7 +5720,6 @@ def hue( b: String = Default("0"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5937,8 +5749,7 @@ def hue( "b": b, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -5956,7 +5767,6 @@ def huesaturation( lightness: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -5996,12 +5806,14 @@ def huesaturation( "lightness": lightness, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def hwdownload(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def hwdownload( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Download a hardware frame to a normal frame @@ -6016,7 +5828,7 @@ def hwdownload(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> Vid filter_node = filter_node_factory( FFMpegFilterDef(name="hwdownload", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -6027,7 +5839,6 @@ def hwmap( derive_device: String = Default(None), reverse: Int = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6053,13 +5864,15 @@ def hwmap( "derive_device": derive_device, "reverse": reverse, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def hwupload( - self, *, derive_device: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + derive_device: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -6081,8 +5894,7 @@ def hwupload( **{ "derive_device": derive_device, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6098,7 +5910,6 @@ def hysteresis( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6133,8 +5944,7 @@ def hysteresis( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6148,7 +5958,6 @@ def identity( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6179,8 +5988,7 @@ def identity( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6193,7 +6001,6 @@ def idet( half_life: Float = Default(0.0), analyze_interlaced_flag: Int = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6223,8 +6030,7 @@ def idet( "half_life": half_life, "analyze_interlaced_flag": analyze_interlaced_flag, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6239,7 +6045,6 @@ def il( alpha_swap: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6273,8 +6078,7 @@ def il( "alpha_swap": alpha_swap, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6287,7 +6091,6 @@ def inflate( threshold3: Int = Default(65535), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6317,8 +6120,7 @@ def inflate( "threshold3": threshold3, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6328,7 +6130,6 @@ def interlace( scan: Int | Literal["tff", "bff"] | Default = Default("tff"), lowpass: Int | Literal["off", "linear", "complex"] | Default = Default("linear"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6352,8 +6153,7 @@ def interlace( "scan": scan, "lowpass": lowpass, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6366,7 +6166,6 @@ def kerndeint( sharp: Boolean = Default(False), twoway: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6396,8 +6195,7 @@ def kerndeint( "sharp": sharp, "twoway": twoway, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6409,7 +6207,6 @@ def kirsch( delta: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6437,8 +6234,7 @@ def kirsch( "delta": delta, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6449,7 +6245,6 @@ def lagfun( planes: Flags = Default("F"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6475,13 +6270,15 @@ def lagfun( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def latency( - self, *, enable: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + enable: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -6503,8 +6300,7 @@ def latency( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6519,7 +6315,6 @@ def lenscorrection( fc: Color = Default("black@0"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6553,8 +6348,7 @@ def lenscorrection( "fc": fc, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6574,7 +6368,6 @@ def libvmaf( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6617,8 +6410,7 @@ def libvmaf( "repeatlast": repeatlast, "ts_sync_mode": ts_sync_mode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6630,7 +6422,6 @@ def limiter( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6658,8 +6449,7 @@ def limiter( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6671,7 +6461,6 @@ def loop( start: Int64 = Default(0), time: Duration = Default("INT64_MAX"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6699,8 +6488,7 @@ def loop( "start": start, "time": time, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6712,7 +6500,6 @@ def lumakey( softness: Double = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6740,8 +6527,7 @@ def lumakey( "softness": softness, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6761,7 +6547,6 @@ def lut( a: String = Default("clipval"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6805,8 +6590,7 @@ def lut( "a": a, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6817,7 +6601,6 @@ def lut1d( interp: Int | Literal["nearest", "linear", "cosine", "cubic", "spline"] | Default = Default("linear"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6843,8 +6626,7 @@ def lut1d( "interp": interp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6863,7 +6645,6 @@ def lut2( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6904,8 +6685,7 @@ def lut2( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6919,7 +6699,6 @@ def lut3d( | Default = Default("tetrahedral"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -6947,8 +6726,7 @@ def lut3d( "interp": interp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -6968,7 +6746,6 @@ def lutrgb( a: String = Default("clipval"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7012,8 +6789,7 @@ def lutrgb( "a": a, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7033,7 +6809,6 @@ def lutyuv( a: String = Default("clipval"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7077,8 +6852,7 @@ def lutyuv( "a": a, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7092,7 +6866,6 @@ def maskedclamp( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7122,8 +6895,7 @@ def maskedclamp( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7135,7 +6907,6 @@ def maskedmax( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7161,8 +6932,7 @@ def maskedmax( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7174,7 +6944,6 @@ def maskedmerge( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7200,8 +6969,7 @@ def maskedmerge( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7213,7 +6981,6 @@ def maskedmin( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7239,8 +7006,7 @@ def maskedmin( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7253,7 +7019,6 @@ def maskedthreshold( mode: Int | Literal["abs", "diff"] | Default = Default("abs"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7282,8 +7047,7 @@ def maskedthreshold( "mode": mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7297,7 +7061,6 @@ def maskfun( sum: Int = Default(10), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7329,8 +7092,7 @@ def maskfun( "sum": sum, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7341,7 +7103,6 @@ def mcdeint( parity: Int | Literal["tff", "bff"] | Default = Default("bff"), qp: Int = Default(1), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7367,8 +7128,7 @@ def mcdeint( "parity": parity, "qp": qp, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7381,7 +7141,6 @@ def median( percentile: Float = Default(0.5), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7411,8 +7170,7 @@ def median( "percentile": percentile, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7425,7 +7183,6 @@ def mestimate( mb_size: Int = Default(16), search_param: Int = Default(7), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7451,8 +7208,7 @@ def mestimate( "mb_size": mb_size, "search_param": search_param, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7470,7 +7226,6 @@ def metadata( direct: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7506,8 +7261,7 @@ def metadata( "direct": direct, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7518,7 +7272,6 @@ def midequalizer( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7543,8 +7296,7 @@ def midequalizer( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7564,7 +7316,6 @@ def minterpolate( scd: Int | Literal["none", "fdiff"] | Default = Default("fdiff"), scd_threshold: Double = Default(10.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7604,8 +7355,7 @@ def minterpolate( "scd": scd, "scd_threshold": scd_threshold, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7618,7 +7368,6 @@ def monochrome( high: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7648,8 +7397,7 @@ def monochrome( "high": high, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7668,7 +7416,6 @@ def morpho( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7705,8 +7452,7 @@ def morpho( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7719,7 +7465,6 @@ def mpdecimate( lo: Int = Default(320), frac: Float = Default(0.33), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7749,8 +7494,7 @@ def mpdecimate( "lo": lo, "frac": frac, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7764,7 +7508,6 @@ def msad( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7795,8 +7538,7 @@ def msad( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7809,7 +7551,6 @@ def multiply( planes: Flags = Default("F"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7838,8 +7579,7 @@ def multiply( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7850,7 +7590,6 @@ def negate( negate_alpha: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7876,8 +7615,7 @@ def negate( "negate_alpha": negate_alpha, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7891,7 +7629,6 @@ def nlmeans( rc: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7923,8 +7660,7 @@ def nlmeans( "rc": rc, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -7942,7 +7678,6 @@ def nnedi( pscrn: Int | Literal["none", "original", "new", "new2", "new3"] | Default = Default("new"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -7982,13 +7717,15 @@ def nnedi( "pscrn": pscrn, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def noformat( - self, *, pix_fmts: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + pix_fmts: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -8010,8 +7747,7 @@ def noformat( **{ "pix_fmts": pix_fmts, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8035,7 +7771,6 @@ def noise( c3_flags: Flags | Literal["a", "p", "t", "u"] | Default = Default("0"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8087,8 +7822,7 @@ def noise( "c3_flags": c3_flags, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8102,7 +7836,6 @@ def normalize( strength: Float = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8134,12 +7867,14 @@ def normalize( "strength": strength, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def null(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def null( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Pass the source unchanged to the output. @@ -8154,7 +7889,7 @@ def null(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStre filter_node = filter_node_factory( FFMpegFilterDef(name="null", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -8166,7 +7901,6 @@ def ocr( whitelist: String = Default("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.:;,-+_!?\"'[]{}("), blacklist: String = Default(""), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8194,8 +7928,7 @@ def ocr( "whitelist": whitelist, "blacklist": blacklist, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8217,7 +7950,6 @@ def oscilloscope( sc: Boolean = Default(True), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8265,8 +7997,7 @@ def oscilloscope( "sc": sc, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8287,7 +8018,6 @@ def overlay( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8328,8 +8058,7 @@ def overlay( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8341,7 +8070,6 @@ def owdenoise( chroma_strength: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8369,8 +8097,7 @@ def owdenoise( "chroma_strength": chroma_strength, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8385,7 +8112,6 @@ def pad( eval: Int | Literal["init", "frame"] | Default = Default("init"), aspect: Rational = Default("0/1"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8419,8 +8145,7 @@ def pad( "eval": eval, "aspect": aspect, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8432,7 +8157,6 @@ def palettegen( transparency_color: Color = Default("lime"), stats_mode: Int | Literal["full", "diff", "single"] | Default = Default("full"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8460,8 +8184,7 @@ def palettegen( "transparency_color": transparency_color, "stats_mode": stats_mode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8478,7 +8201,6 @@ def paletteuse( alpha_threshold: Int = Default(128), debug_kdtree: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8511,8 +8233,7 @@ def paletteuse( "alpha_threshold": alpha_threshold, "debug_kdtree": debug_kdtree, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8523,7 +8244,6 @@ def perms( seed: Int64 = Default(-1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8549,8 +8269,7 @@ def perms( "seed": seed, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8570,7 +8289,6 @@ def perspective( eval: Int | Literal["init", "frame"] | Default = Default("init"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8614,8 +8332,7 @@ def perspective( "eval": eval, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8625,7 +8342,6 @@ def phase( mode: Int | Literal["p", "t", "b", "T", "B", "u", "U", "a", "A"] | Default = Default("A"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8649,8 +8365,7 @@ def phase( "mode": mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8662,7 +8377,6 @@ def photosensitivity( skip: Int = Default(1), bypass: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8690,12 +8404,14 @@ def photosensitivity( "skip": skip, "bypass": bypass, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def pixdesctest(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def pixdesctest( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Test pixel format definitions. @@ -8710,7 +8426,7 @@ def pixdesctest(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> Vi filter_node = filter_node_factory( FFMpegFilterDef(name="pixdesctest", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -8723,7 +8439,6 @@ def pixelize( planes: Flags = Default("F"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8753,8 +8468,7 @@ def pixelize( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8770,7 +8484,6 @@ def pixscope( wy: Float = Default(-1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8806,8 +8519,7 @@ def pixscope( "wy": wy, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8817,7 +8529,6 @@ def pp( subfilters: String = Default("de"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8841,8 +8552,7 @@ def pp( "subfilters": subfilters, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8853,7 +8563,6 @@ def pp7( mode: Int | Literal["hard", "soft", "medium"] | Default = Default("medium"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8879,8 +8588,7 @@ def pp7( "mode": mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8892,7 +8600,6 @@ def prewitt( delta: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8920,8 +8627,7 @@ def prewitt( "delta": delta, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -8962,7 +8668,6 @@ def pseudocolor( opacity: Float = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -8998,8 +8703,7 @@ def pseudocolor( "opacity": opacity, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9016,7 +8720,6 @@ def psnr( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9053,8 +8756,7 @@ def psnr( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9068,7 +8770,6 @@ def pullup( sb: Boolean = Default(False), mp: Int | Literal["y", "u", "v"] | Default = Default("y"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9100,8 +8801,7 @@ def pullup( "sb": sb, "mp": mp, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9111,7 +8811,6 @@ def qp( qp: String = Default(None), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9135,8 +8834,7 @@ def qp( "qp": qp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9146,7 +8844,6 @@ def random( frames: Int = Default(30), seed: Int64 = Default(-1), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9170,8 +8867,7 @@ def random( "frames": frames, "seed": seed, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9185,7 +8881,6 @@ def readeia608( lp: Boolean = Default(True), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9217,8 +8912,7 @@ def readeia608( "lp": lp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9229,7 +8923,6 @@ def readvitc( thr_b: Double = Default(0.2), thr_w: Double = Default(0.6), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9255,8 +8948,7 @@ def readvitc( "thr_b": thr_b, "thr_w": thr_w, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9266,7 +8958,6 @@ def realtime( limit: Duration = Default(2.0), speed: Double = Default(1.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9290,8 +8981,7 @@ def realtime( "limit": limit, "speed": speed, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9303,7 +8993,6 @@ def remap( format: Int | Literal["color", "gray"] | Default = Default("color"), fill: Color = Default("black"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9329,8 +9018,7 @@ def remap( "format": format, "fill": fill, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9343,7 +9031,6 @@ def removegrain( m3: Int = Default(0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9373,8 +9060,7 @@ def removegrain( "m3": m3, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9384,7 +9070,6 @@ def removelogo( filename: String = Default(None), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9408,12 +9093,14 @@ def removelogo( "filename": filename, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def repeatfields(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def repeatfields( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Hard repeat fields based on MPEG repeat field flag. @@ -9428,11 +9115,14 @@ def repeatfields(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> V filter_node = filter_node_factory( FFMpegFilterDef(name="repeatfields", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) - def reverse(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def reverse( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Reverse a clip. @@ -9447,7 +9137,7 @@ def reverse(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoS filter_node = filter_node_factory( FFMpegFilterDef(name="reverse", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -9465,7 +9155,6 @@ def rgbashift( edge: Int | Literal["smear", "wrap"] | Default = Default("smear"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9505,8 +9194,7 @@ def rgbashift( "edge": edge, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9518,7 +9206,6 @@ def roberts( delta: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9546,8 +9233,7 @@ def roberts( "delta": delta, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9561,7 +9247,6 @@ def rotate( bilinear: Boolean = Default(True), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9593,8 +9278,7 @@ def rotate( "bilinear": bilinear, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9609,7 +9293,6 @@ def sab( chroma_strength: Float = Default(-0.9), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9643,8 +9326,7 @@ def sab( "chroma_strength": chroma_strength, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9677,7 +9359,6 @@ def scale( param1: Double = Default("DBL_MAX"), eval: Int | Literal["init", "frame"] | Default = Default("init"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9731,8 +9412,7 @@ def scale( "param1": param1, "eval": eval, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9745,7 +9425,6 @@ def scale_vt( color_primaries: String = Default(None), color_transfer: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9775,8 +9454,7 @@ def scale_vt( "color_primaries": color_primaries, "color_transfer": color_transfer, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9786,7 +9464,6 @@ def scdet( threshold: Double = Default(10.0), sc_pass: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9810,8 +9487,7 @@ def scdet( "threshold": threshold, "sc_pass": sc_pass, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9823,7 +9499,6 @@ def scharr( delta: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9851,8 +9526,7 @@ def scharr( "delta": delta, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9865,7 +9539,6 @@ def scroll( vpos: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -9895,8 +9568,7 @@ def scroll( "vpos": vpos, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -9906,7 +9578,6 @@ def segment( timestamps: String = Default(None), frames: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -9935,8 +9606,7 @@ def segment( "timestamps": timestamps, "frames": frames, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -9947,7 +9617,6 @@ def select( expr: String = Default("1"), outputs: Int = Default(1), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> FilterNode: """ @@ -9974,8 +9643,7 @@ def select( "expr": expr, "outputs": outputs, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -9996,7 +9664,6 @@ def selectivecolor( psfile: String = Default(None), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10040,8 +9707,7 @@ def selectivecolor( "psfile": psfile, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10051,7 +9717,6 @@ def sendcmd( commands: String = Default(None), filename: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10075,12 +9740,14 @@ def sendcmd( "commands": commands, "filename": filename, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def separatefields(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def separatefields( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Split input video frames into fields. @@ -10095,7 +9762,7 @@ def separatefields(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> filter_node = filter_node_factory( FFMpegFilterDef(name="separatefields", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -10105,7 +9772,6 @@ def setdar( dar: String = Default("0"), max: Int = Default(100), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10129,8 +9795,7 @@ def setdar( "dar": dar, "max": max, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10139,7 +9804,6 @@ def setfield( *, mode: Int | Literal["auto", "bff", "tff", "prog"] | Default = Default("auto"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10161,8 +9825,7 @@ def setfield( **{ "mode": mode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10233,7 +9896,6 @@ def setparams( ] | Default = Default("auto"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10263,13 +9925,15 @@ def setparams( "color_trc": color_trc, "colorspace": colorspace, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def setpts( - self, *, expr: String = Default("PTS"), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + expr: String = Default("PTS"), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -10291,8 +9955,7 @@ def setpts( **{ "expr": expr, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10303,7 +9966,6 @@ def setrange( | Literal["auto", "unspecified", "unknown", "limited", "tv", "mpeg", "full", "pc", "jpeg"] | Default = Default("auto"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10325,8 +9987,7 @@ def setrange( **{ "range": range, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10336,7 +9997,6 @@ def setsar( sar: String = Default("0"), max: Int = Default(100), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10360,13 +10020,15 @@ def setsar( "sar": sar, "max": max, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def settb( - self, *, expr: String = Default("intb"), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + expr: String = Default("intb"), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -10388,8 +10050,7 @@ def settb( **{ "expr": expr, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10402,7 +10063,6 @@ def shear( interp: Int | Literal["nearest", "bilinear"] | Default = Default("bilinear"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10432,13 +10092,15 @@ def shear( "interp": interp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def showinfo( - self, *, checksum: Boolean = Default(True), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + checksum: Boolean = Default(True), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -10460,12 +10122,16 @@ def showinfo( **{ "checksum": checksum, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def showpalette(self, *, s: Int = Default(30), extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def showpalette( + self, + *, + s: Int = Default(30), + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Display frame palette. @@ -10486,8 +10152,7 @@ def showpalette(self, *, s: Int = Default(30), extra_options: dict[str, Any] = N **{ "s": s, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10497,7 +10162,6 @@ def shuffleframes( mapping: String = Default("0"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10521,8 +10185,7 @@ def shuffleframes( "mapping": mapping, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10536,7 +10199,6 @@ def shufflepixels( seed: Int64 = Default(-1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10568,8 +10230,7 @@ def shufflepixels( "seed": seed, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10582,7 +10243,6 @@ def shuffleplanes( map3: Int = Default(3), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10612,8 +10272,7 @@ def shuffleplanes( "map3": map3, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10648,7 +10307,6 @@ def sidedata( | Default = Default(-1), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10674,8 +10332,7 @@ def sidedata( "type": type, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10686,7 +10343,6 @@ def signalstats( out: Int | Literal["tout", "vrep", "brng"] | Default = Default(-1), c: Color = Default("yellow"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10712,13 +10368,15 @@ def signalstats( "out": out, "c": c, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def siti( - self, *, print_summary: Boolean = Default(False), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + print_summary: Boolean = Default(False), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -10740,8 +10398,7 @@ def siti( **{ "print_summary": print_summary, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10756,7 +10413,6 @@ def smartblur( chroma_threshold: Int = Default(-31), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10790,8 +10446,7 @@ def smartblur( "chroma_threshold": chroma_threshold, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10803,7 +10458,6 @@ def sobel( delta: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10831,8 +10485,7 @@ def sobel( "delta": delta, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10873,7 +10526,6 @@ def spectrumsynth( overlap: Float = Default(1.0), orientation: Int | Literal["vertical", "horizontal"] | Default = Default("vertical"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> AudioStream: """ @@ -10908,12 +10560,16 @@ def spectrumsynth( "overlap": overlap, "orientation": orientation, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.audio(0) - def split(self, *, outputs: Int = Default(2), extra_options: dict[str, Any] = None, **kwargs: Any) -> FilterNode: + def split( + self, + *, + outputs: Int = Default(2), + extra_options: dict[str, Any] = None, + ) -> FilterNode: """ Pass on the input to N video outputs. @@ -10935,8 +10591,7 @@ def split(self, *, outputs: Int = Default(2), extra_options: dict[str, Any] = No **{ "outputs": outputs, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node @@ -10950,7 +10605,6 @@ def spp( use_bframe_qp: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -10980,8 +10634,7 @@ def spp( "use_bframe_qp": use_bframe_qp, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -10994,7 +10647,6 @@ def sr( input: String = Default("x"), output: String = Default("y"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11024,8 +10676,7 @@ def sr( "input": input, "output": output, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11040,7 +10691,6 @@ def ssim( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11073,8 +10723,7 @@ def ssim( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11145,7 +10794,6 @@ def stereo3d( ] | Default = Default("arcd"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11169,8 +10817,7 @@ def stereo3d( "in": _in, "out": out, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11186,7 +10833,6 @@ def subtitles( force_style: String = Default(None), wrap_unicode: Boolean = Default("auto"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11222,12 +10868,14 @@ def subtitles( "force_style": force_style, "wrap_unicode": wrap_unicode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def super2xsai(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def super2xsai( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Scale the input by 2x using the Super2xSaI pixel art algorithm. @@ -11242,7 +10890,7 @@ def super2xsai(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> Vid filter_node = filter_node_factory( FFMpegFilterDef(name="super2xsai", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -11257,7 +10905,6 @@ def swaprect( y2: String = Default("0"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11291,13 +10938,15 @@ def swaprect( "y2": y2, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def swapuv( - self, *, enable: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + enable: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -11319,8 +10968,7 @@ def swapuv( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11569,7 +11217,6 @@ def tblend( all_opacity: Double = Default(1.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11621,8 +11268,7 @@ def tblend( "all_opacity": all_opacity, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11632,7 +11278,6 @@ def telecine( first_field: Int | Literal["top", "t", "bottom", "b"] | Default = Default("top"), pattern: String = Default("23"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11656,8 +11301,7 @@ def telecine( "first_field": first_field, "pattern": pattern, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11673,7 +11317,6 @@ def thistogram( ecolor: Color = Default("gold"), slide: Int | Literal["frame", "replace", "scroll", "rscroll", "picture"] | Default = Default("replace"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11709,8 +11352,7 @@ def thistogram( "ecolor": ecolor, "slide": slide, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11723,7 +11365,6 @@ def threshold( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11752,8 +11393,7 @@ def threshold( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11764,7 +11404,6 @@ def thumbnail( log: Int | Literal["quiet", "info", "verbose"] | Default = Default("info"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11790,8 +11429,7 @@ def thumbnail( "log": log, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11806,7 +11444,6 @@ def tile( overlap: Int = Default(0), init_padding: Int = Default(0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11840,8 +11477,7 @@ def tile( "overlap": overlap, "init_padding": init_padding, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11854,7 +11490,6 @@ def tinterlace( ] | Default = Default("merge"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11876,8 +11511,7 @@ def tinterlace( **{ "mode": mode, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11890,7 +11524,6 @@ def tlut2( c3: String = Default("x"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11920,8 +11553,7 @@ def tlut2( "c3": c3, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11933,7 +11565,6 @@ def tmedian( percentile: Float = Default(0.5), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -11961,8 +11592,7 @@ def tmedian( "percentile": percentile, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -11974,7 +11604,6 @@ def tmidequalizer( planes: Int = Default(15), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12002,8 +11631,7 @@ def tmidequalizer( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12016,7 +11644,6 @@ def tmix( planes: Flags = Default("F"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12046,8 +11673,7 @@ def tmix( "planes": planes, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12061,7 +11687,6 @@ def tonemap( desat: Double = Default(2.0), peak: Double = Default(0.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12089,8 +11714,7 @@ def tonemap( "desat": desat, "peak": peak, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12105,7 +11729,6 @@ def tpad( stop_duration: Duration = Default(0.0), color: Color = Default("black"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12139,8 +11762,7 @@ def tpad( "stop_duration": stop_duration, "color": color, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12150,7 +11772,6 @@ def transpose( dir: Int | Literal["cclock_flip", "clock", "cclock", "clock_flip"] | Default = Default("cclock_flip"), passthrough: Int | Literal["none", "portrait", "landscape"] | Default = Default("none"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12174,8 +11795,7 @@ def transpose( "dir": dir, "passthrough": passthrough, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12187,7 +11807,6 @@ def transpose_vt( | Default = Default("cclock_flip"), passthrough: Int | Literal["none", "portrait", "landscape"] | Default = Default("none"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12211,8 +11830,7 @@ def transpose_vt( "dir": dir, "passthrough": passthrough, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12227,7 +11845,6 @@ def trim( start_frame: Int64 = Default(-1), end_frame: Int64 = Default("I64_MAX"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12261,8 +11878,7 @@ def trim( "start_frame": start_frame, "end_frame": end_frame, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12280,7 +11896,6 @@ def unsharp( alpha_amount: Float = Default(0.0), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12320,13 +11935,15 @@ def unsharp( "alpha_amount": alpha_amount, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def untile( - self, *, layout: Image_size = Default("6x5"), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + layout: Image_size = Default("6x5"), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -12348,8 +11965,7 @@ def untile( **{ "layout": layout, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12362,7 +11978,6 @@ def uspp( codec: String = Default("snow"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12392,8 +12007,7 @@ def uspp( "codec": codec, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12519,7 +12133,6 @@ def v360( alpha_mask: Boolean = Default(False), reset_rot: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12611,8 +12224,7 @@ def v360( "alpha_mask": alpha_mask, "reset_rot": reset_rot, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12627,7 +12239,6 @@ def vaguedenoiser( type: Int | Literal["universal", "bayes"] | Default = Default("universal"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12661,8 +12272,7 @@ def vaguedenoiser( "type": type, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12679,7 +12289,6 @@ def varblur( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12716,8 +12325,7 @@ def varblur( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12741,7 +12349,6 @@ def vectorscope( tint0: Float = Default(0.0), tint1: Float = Default(0.0), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12789,13 +12396,15 @@ def vectorscope( "tint0": tint0, "tint1": tint1, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def vflip( - self, *, enable: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + enable: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -12817,12 +12426,14 @@ def vflip( **{ "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def vfrdet(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def vfrdet( + self, + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Variable frame rate detect filter. @@ -12837,7 +12448,7 @@ def vfrdet(self, extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoSt filter_node = filter_node_factory( FFMpegFilterDef(name="vfrdet", typings_input=("video",), typings_output=("video",)), self, - **{} | (extra_options or {}) | kwargs, + **{} | (extra_options or {}), ) return filter_node.video(0) @@ -12854,7 +12465,6 @@ def vibrance( alternate: Boolean = Default(False), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12892,8 +12502,7 @@ def vibrance( "alternate": alternate, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12909,7 +12518,6 @@ def vidstabdetect( tripod: Int = Default(0), fileformat: Int | Literal["ascii", "binary"] | Default = Default("binary"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -12945,8 +12553,7 @@ def vidstabdetect( "tripod": tripod, "fileformat": fileformat, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -12968,7 +12575,6 @@ def vidstabtransform( tripod: Boolean = Default(False), debug: Boolean = Default(False), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13016,8 +12622,7 @@ def vidstabtransform( "tripod": tripod, "debug": debug, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13031,7 +12636,6 @@ def vif( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13062,8 +12666,7 @@ def vif( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13079,7 +12682,6 @@ def vignette( aspect: Rational = Default("1/1"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13115,13 +12717,15 @@ def vignette( "aspect": aspect, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def vmafmotion( - self, *, stats_file: String = Default(None), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + stats_file: String = Default(None), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -13143,8 +12747,7 @@ def vmafmotion( **{ "stats_file": stats_file, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13157,7 +12760,6 @@ def w3fdif( deint: Int | Literal["all", "interlaced"] | Default = Default("all"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13187,8 +12789,7 @@ def w3fdif( "deint": deint, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13214,7 +12815,6 @@ def waveform( fitmode: Int | Literal["none", "size"] | Default = Default("none"), input: Int | Literal["all", "first"] | Default = Default("first"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13266,8 +12866,7 @@ def waveform( "fitmode": fitmode, "input": input, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13276,7 +12875,6 @@ def weave( *, first_field: Int | Literal["top", "t", "bottom", "b"] | Default = Default("top"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13298,12 +12896,16 @@ def weave( **{ "first_field": first_field, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) - def xbr(self, *, n: Int = Default(3), extra_options: dict[str, Any] = None, **kwargs: Any) -> VideoStream: + def xbr( + self, + *, + n: Int = Default(3), + extra_options: dict[str, Any] = None, + ) -> VideoStream: """ Scale the input using xBR algorithm. @@ -13324,8 +12926,7 @@ def xbr(self, *, n: Int = Default(3), extra_options: dict[str, Any] = None, **kw **{ "n": n, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13341,7 +12942,6 @@ def xcorrelate( ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13376,8 +12976,7 @@ def xcorrelate( "ts_sync_mode": ts_sync_mode, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13452,7 +13051,6 @@ def xfade( offset: Duration = Default(0.0), expr: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13481,8 +13079,7 @@ def xfade( "offset": offset, "expr": expr, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13496,7 +13093,6 @@ def yadif( deint: Int | Literal["all", "interlaced"] | Default = Default("all"), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13524,8 +13120,7 @@ def yadif( "deint": deint, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13537,7 +13132,6 @@ def yaepblur( sigma: Int = Default(128), enable: String = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13565,13 +13159,15 @@ def yaepblur( "sigma": sigma, "enable": enable, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) def zmq( - self, *, bind_address: String = Default("tcp://*:5555"), extra_options: dict[str, Any] = None, **kwargs: Any + self, + *, + bind_address: String = Default("tcp://*:5555"), + extra_options: dict[str, Any] = None, ) -> VideoStream: """ @@ -13593,8 +13189,7 @@ def zmq( **{ "bind_address": bind_address, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13608,7 +13203,6 @@ def zoompan( s: Image_size = Default("hd720"), fps: Video_rate = Default("25"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13640,8 +13234,7 @@ def zoompan( "s": s, "fps": fps, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) @@ -13814,7 +13407,6 @@ def zscale( param_a: Double = Default("nan"), param_b: Double = Default("nan"), extra_options: dict[str, Any] = None, - **kwargs: Any, ) -> VideoStream: """ @@ -13872,7 +13464,6 @@ def zscale( "param_a": param_a, "param_b": param_b, } - | (extra_options or {}) - | kwargs, + | (extra_options or {}), ) return filter_node.video(0) diff --git a/src/ffmpeg/tests/__snapshots__/test_base/test_output_node.1.json b/src/ffmpeg/tests/__snapshots__/test_base/test_output_node.1.json deleted file mode 100644 index a6bad26a..00000000 --- a/src/ffmpeg/tests/__snapshots__/test_base/test_output_node.1.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - "ffmpeg", - "-i", - "input1", - "-str", - "x", - "-int", - "1", - "-float", - "0.1", - "out.mp4" -] diff --git a/src/ffmpeg/tests/test_base.py b/src/ffmpeg/tests/test_base.py index 7eb1f222..fad7426e 100644 --- a/src/ffmpeg/tests/test_base.py +++ b/src/ffmpeg/tests/test_base.py @@ -13,8 +13,8 @@ def test_output_node(snapshot: SnapshotAssertion) -> None: value = {"str": "x", "int": 1, "float": 0.1} # due to https://github.com/python/mypy/issues/11583 - out = input1.output(filename="out.mp4", **value) # type: ignore[arg-type] - assert snapshot(extension_class=JSONSnapshotExtension) == (out.compile()) + # out = input1.output(filename="out.mp4", **value) # type: ignore[arg-type] + # assert snapshot(extension_class=JSONSnapshotExtension) == (out.compile()) out = input1.output(filename="out.mp4", extra_options=value) assert snapshot(extension_class=JSONSnapshotExtension) == (out.compile()) @@ -66,18 +66,24 @@ def test_generate_thumbnail_for_video(snapshot: SnapshotAssertion) -> None: def test_assemble_video_from_sequence_of_frames(snapshot: SnapshotAssertion) -> None: # ["ffmpeg", "-framerate", "25", "-pattern_type", "glob", "-i", "/path/to/jpegs/*.jpg", "movie.mp4""] assert snapshot(extension_class=JSONSnapshotExtension) == ( - input("/path/to/jpegs/*.jpg", framerate=25, pattern_type="glob").output(filename="movie.mp4").compile() + input("/path/to/jpegs/*.jpg", extra_options={"framerate": 25, "pattern_type": "glob"}) + .output(filename="movie.mp4") + .compile() ) def test_assemble_video_from_sequence_of_frames_with_additional_filtering(snapshot: SnapshotAssertion) -> None: # ["ffmpeg", "-framerate", "25", "-pattern_type", "glob", "-i", "/path/to/jpegs/*.jpg", "-filter_complex", "[0]deflicker=mode=pm:size=10[s0];[s0]scale=force_original_aspect_ratio=increase:size=hd1080[s1]", "-map", "[s1]", "-crf", "20", "-movflags", "faststart", "-pix_fmt", "yuv420p", "-preset", "slower", "movie.mp4"] assert snapshot(extension_class=JSONSnapshotExtension) == ( - input("/path/to/jpegs/*.jpg", framerate=25, pattern_type="glob") + input("/path/to/jpegs/*.jpg", extra_options={"framerate": 25, "pattern_type": "glob"}) .deflicker(mode="pm", size=10) # FIXME: scale's w,h options should be optional - .scale(size="hd1080", force_original_aspect_ratio="increase") - .output(filename="movie.mp4", crf=20, movflags="faststart", pix_fmt="yuv420p", preset="slower") + .scale(force_original_aspect_ratio="increase", extra_options={"size": "hd1080"}) + .output( + filename="movie.mp4", + pix_fmt="yuv420p", + extra_options={"crf": 20, "movflags": "faststart", "preset": "slower"}, + ) .compile() ) @@ -124,11 +130,17 @@ def test_drawtext_escaping(snapshot: SnapshotAssertion) -> None: def test_compile_bool_option(snapshot: SnapshotAssertion) -> None: assert snapshot(extension_class=JSONSnapshotExtension) == ( - input("input.mp4").drawtext(text="hello", escape_text=False).output(filename="output.mp4").compile() + input("input.mp4") + .drawtext(text="hello", extra_options={"escape_text": False}) + .output(filename="output.mp4") + .compile() ) assert snapshot(extension_class=JSONSnapshotExtension) == ( - input("input.mp4").drawtext(text="hello", escape_text=True).output(filename="output.mp4").compile() + input("input.mp4") + .drawtext(text="hello", extra_options={"escape_text": True}) + .output(filename="output.mp4") + .compile() ) @@ -157,8 +169,10 @@ def test_concat_dumuxer(snapshot: SnapshotAssertion) -> None: stream = input( "files.txt", f="concat", - safe="0", - protocol_whitelist="file,http,https,tcp,tls", + extra_options={ + "safe": 0, + "protocol_whitelist": "file,http,https,tcp,tls", + }, ) assert snapshot(extension_class=JSONSnapshotExtension) == (stream.output(filename="output.mp4").compile()) diff --git a/src/scripts/code_gen/templates/_components.jinja b/src/scripts/code_gen/templates/_components.jinja index 4d21fd1f..4c40b1b1 100644 --- a/src/scripts/code_gen/templates/_components.jinja +++ b/src/scripts/code_gen/templates/_components.jinja @@ -112,7 +112,7 @@ filter_node = filter_node_factory( {% for option in f.options %} "{{ option.name}}": {{ option.name | option_name_safe }}, {% endfor %} - } | (extra_options or {}) | kwargs + } | (extra_options or {}) ) {% if f.is_dynamic_output %} return filter_node @@ -138,7 +138,6 @@ return ( {% if not f.is_dynamic_input and f.options | length > 0 %}*,{% endif %} {{ f | filter_option_typings }} extra_options: dict[str, Any] = None, - **kwargs: Any ) {{- return_stream_typings(f) }} """ {{ docstring(f) }} @@ -153,7 +152,6 @@ def {{f.name}}( {% if not f.is_dynamic_input and f.options | length > 0 %}*,{% endif %} {{ f | filter_option_typings }} extra_options: dict[str, Any] = None, - **kwargs: Any ) {{- return_stream_typings(f) }} """ {{ docstring(f) }} diff --git a/src/scripts/code_gen/templates/dag/global_runnable/global_args.py.jinja b/src/scripts/code_gen/templates/dag/global_runnable/global_args.py.jinja index f7724f3d..df1a0433 100644 --- a/src/scripts/code_gen/templates/dag/global_runnable/global_args.py.jinja +++ b/src/scripts/code_gen/templates/dag/global_runnable/global_args.py.jinja @@ -22,7 +22,6 @@ class GlobalArgs(ABC): {%- endif -%} {%- endfor -%} extra_options: dict[str, Any] = None, - **kwargs: Any ) -> GlobalStream: """ Set global options. @@ -34,7 +33,6 @@ class GlobalArgs(ABC): {% endif %} {%- endfor -%} extra_options: Additional options - **kwargs: Additional options Returns: GlobalStream: GlobalStream instance @@ -47,5 +45,5 @@ class GlobalArgs(ABC): "{{ option.name}}": {{ option.name | option_name_safe }}, {% endif %} {% endfor %} - }.items() if v is not None} | (extra_options or {}) | kwargs), + }.items() if v is not None} | (extra_options or {})), ).stream() diff --git a/src/scripts/code_gen/templates/dag/io/_input.py.jinja b/src/scripts/code_gen/templates/dag/io/_input.py.jinja index f400de6f..3b607a31 100644 --- a/src/scripts/code_gen/templates/dag/io/_input.py.jinja +++ b/src/scripts/code_gen/templates/dag/io/_input.py.jinja @@ -16,7 +16,6 @@ def input( {%- endif -%} {%- endfor -%} extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AVStream: """ Input file URL (ffmpeg ``-i`` option) @@ -29,7 +28,6 @@ def input( {% endif %} {%- endfor -%} extra_options: ffmpeg's input file options - **kwargs: ffmpeg's input file options Returns: Input stream @@ -53,5 +51,5 @@ def input( return InputNode( filename=str(filename), - kwargs=tuple((options | (extra_options or {}) | kwargs).items()) + kwargs=tuple((options | (extra_options or {}) ).items()) ).stream() diff --git a/src/scripts/code_gen/templates/dag/io/_output.py.jinja b/src/scripts/code_gen/templates/dag/io/_output.py.jinja index b83bcf11..6e8fafb4 100644 --- a/src/scripts/code_gen/templates/dag/io/_output.py.jinja +++ b/src/scripts/code_gen/templates/dag/io/_output.py.jinja @@ -15,7 +15,6 @@ def output( {%- endif -%} {%- endfor -%} extra_options: dict[str, Any] = None, - **kwargs: Any ) -> OutputStream: """ Output file URL @@ -29,7 +28,6 @@ def output( {% endif %} {%- endfor -%} extra_options: the arguments for the output - **kwargs: the arguments for the output Returns: the output stream @@ -48,5 +46,5 @@ def output( return OutputNode( inputs=streams, filename=str(filename), - kwargs=tuple((options | (extra_options or {}) | kwargs).items()) + kwargs=tuple((options | (extra_options or {})).items()) ).stream() diff --git a/src/scripts/code_gen/templates/dag/io/output_args.py.jinja b/src/scripts/code_gen/templates/dag/io/output_args.py.jinja index 6dc90682..a999cdc3 100644 --- a/src/scripts/code_gen/templates/dag/io/output_args.py.jinja +++ b/src/scripts/code_gen/templates/dag/io/output_args.py.jinja @@ -24,7 +24,6 @@ class OutputArgs(ABC): {%- endif -%} {%- endfor -%} extra_options: dict[str, Any] = None, - **kwargs: Any ) -> OutputStream: """ Output file URL @@ -38,7 +37,6 @@ class OutputArgs(ABC): {% endif %} {%- endfor -%} extra_options: the arguments for the output - **kwargs: the arguments for the output Returns: the output stream @@ -54,4 +52,4 @@ class OutputArgs(ABC): }.items() if v is not None } - return self._output_node(*streams, filename=filename, **options, **(extra_options or {}), **kwargs).stream() + return self._output_node(*streams, filename=filename, **options, **(extra_options or {})).stream() diff --git a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[_input.py].raw b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[_input.py].raw index b24db6b6..09799c28 100644 --- a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[_input.py].raw +++ b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[_input.py].raw @@ -11,7 +11,6 @@ from ...types import * def input( filename: str | Path, *,extra_options: dict[str, Any] = None, - **kwargs: Any ) -> AVStream: """ Input file URL (ffmpeg ``-i`` option) @@ -19,7 +18,6 @@ def input( Args: filename: Input file URL extra_options: ffmpeg's input file options - **kwargs: ffmpeg's input file options Returns: Input stream @@ -39,5 +37,5 @@ def input( return InputNode( filename=str(filename), - kwargs=tuple((options | (extra_options or {}) | kwargs).items()) + kwargs=tuple((options | (extra_options or {}) ).items()) ).stream() \ No newline at end of file diff --git a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[_output.py].raw b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[_output.py].raw index 715789cb..9cd71daa 100644 --- a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[_output.py].raw +++ b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[_output.py].raw @@ -10,7 +10,6 @@ from ...types import * def output( *streams: FilterableStream, filename: str | Path,extra_options: dict[str, Any] = None, - **kwargs: Any ) -> OutputStream: """ Output file URL @@ -19,7 +18,6 @@ def output( *streams: the streams to output filename: the filename to output to extra_options: the arguments for the output - **kwargs: the arguments for the output Returns: the output stream @@ -34,5 +32,5 @@ def output( return OutputNode( inputs=streams, filename=str(filename), - kwargs=tuple((options | (extra_options or {}) | kwargs).items()) + kwargs=tuple((options | (extra_options or {})).items()) ).stream() \ No newline at end of file diff --git a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[audio.py].raw b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[audio.py].raw index 5ae1667d..7bab39b6 100644 --- a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[audio.py].raw +++ b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[audio.py].raw @@ -40,7 +40,6 @@ class AudioStream(FilterableStream): *, order: Int = Default(None),projection: Int = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any )-> AudioStream: """ @@ -79,7 +78,7 @@ References: "projection": projection, - } | (extra_options or {}) | kwargs + } | (extra_options or {}) ) return filter_node.audio(0) diff --git a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[filters.py].raw b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[filters.py].raw index 29721f93..219656be 100644 --- a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[filters.py].raw +++ b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[filters.py].raw @@ -35,7 +35,6 @@ def aap( *, order: Int = Default(None),projection: Int = Default(None), extra_options: dict[str, Any] = None, - **kwargs: Any )-> AudioStream: """ @@ -73,7 +72,7 @@ References: "projection": projection, - } | (extra_options or {}) | kwargs + } | (extra_options or {}) ) return filter_node.audio(0) diff --git a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[global_args.py].raw b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[global_args.py].raw index 40a99617..c57371ba 100644 --- a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[global_args.py].raw +++ b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[global_args.py].raw @@ -16,14 +16,12 @@ class GlobalArgs(ABC): def global_args( self, *,extra_options: dict[str, Any] = None, - **kwargs: Any ) -> GlobalStream: """ Set global options. Args: extra_options: Additional options - **kwargs: Additional options Returns: GlobalStream: GlobalStream instance @@ -32,5 +30,5 @@ class GlobalArgs(ABC): return self._global_node( **({k: v for k, v in { - }.items() if v is not None} | (extra_options or {}) | kwargs), + }.items() if v is not None} | (extra_options or {})), ).stream() \ No newline at end of file diff --git a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[output_args.py].raw b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[output_args.py].raw index df0ab0bf..636f265b 100644 --- a/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[output_args.py].raw +++ b/src/scripts/code_gen/tests/__snapshots__/test_gen/test_render[output_args.py].raw @@ -19,7 +19,6 @@ class OutputArgs(ABC): self, *streams: "FilterableStream", filename: str | Path,extra_options: dict[str, Any] = None, - **kwargs: Any ) -> OutputStream: """ Output file URL @@ -28,7 +27,6 @@ class OutputArgs(ABC): *streams: the streams to output filename: the filename to output to extra_options: the arguments for the output - **kwargs: the arguments for the output Returns: the output stream @@ -40,4 +38,4 @@ class OutputArgs(ABC): }.items() if v is not None } - return self._output_node(*streams, filename=filename, **options, **(extra_options or {}), **kwargs).stream() \ No newline at end of file + return self._output_node(*streams, filename=filename, **options, **(extra_options or {})).stream() \ No newline at end of file