diff --git a/src/ffmpeg/dag/global_runnable/global_args.py b/src/ffmpeg/dag/global_runnable/global_args.py index e993a544..a2291b07 100644 --- a/src/ffmpeg/dag/global_runnable/global_args.py +++ b/src/ffmpeg/dag/global_runnable/global_args.py @@ -4,7 +4,7 @@ from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Any -from ...types import Boolean, Float, Func, Int +from ...types import Boolean, Float, Func, Int, Value if TYPE_CHECKING: from ..nodes import GlobalNode, GlobalStream, OutputStream @@ -63,7 +63,7 @@ def global_args( adrift_threshold: Func = None, qphist: Func = None, vsync: Func = None, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> GlobalStream: """ Set global options. diff --git a/src/ffmpeg/dag/io/_input.py b/src/ffmpeg/dag/io/_input.py index 2d63814c..7703e575 100644 --- a/src/ffmpeg/dag/io/_input.py +++ b/src/ffmpeg/dag/io/_input.py @@ -2,10 +2,9 @@ from pathlib import Path -from typing import Any from ...streams.av import AVStream -from ...types import Boolean, Double, Float, Int, String, Time +from ...types import Boolean, Double, Float, Int, String, Time, Value from ..nodes import InputNode @@ -64,7 +63,7 @@ def input( dcodec: String = None, dn: Boolean = None, top: Int = None, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AVStream: """ Input file URL (ffmpeg ``-i`` option) diff --git a/src/ffmpeg/dag/io/_output.py b/src/ffmpeg/dag/io/_output.py index dacb4d82..53a3610f 100644 --- a/src/ffmpeg/dag/io/_output.py +++ b/src/ffmpeg/dag/io/_output.py @@ -2,9 +2,8 @@ from pathlib import Path -from typing import Any -from ...types import Boolean, Float, Func, Int, Int64, String, Time +from ...types import Boolean, Float, Func, Int, Int64, String, Time, Value from ..nodes import FilterableStream, OutputNode, OutputStream @@ -105,7 +104,7 @@ def output( dcodec: String = None, dn: Boolean = None, top: Int = None, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> OutputStream: """ Output file URL diff --git a/src/ffmpeg/dag/io/output_args.py b/src/ffmpeg/dag/io/output_args.py index 038a5231..694a904b 100644 --- a/src/ffmpeg/dag/io/output_args.py +++ b/src/ffmpeg/dag/io/output_args.py @@ -5,7 +5,7 @@ from pathlib import Path from typing import TYPE_CHECKING, Any -from ...types import Boolean, Float, Func, Int, Int64, String, Time +from ...types import Boolean, Float, Func, Int, Int64, String, Time, Value if TYPE_CHECKING: from ..nodes import FilterableStream, OutputNode, OutputStream @@ -114,7 +114,7 @@ def output( dcodec: String = None, dn: Boolean = None, top: Int = None, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> OutputStream: """ Output file URL diff --git a/src/ffmpeg/filters.py b/src/ffmpeg/filters.py index 20c20ce7..356846cb 100644 --- a/src/ffmpeg/filters.py +++ b/src/ffmpeg/filters.py @@ -1,5 +1,5 @@ # NOTE: this file is auto-generated, do not modify -from typing import Any, Literal +from typing import Literal from .common.schema import FFMpegFilterDef from .dag.factory import filter_node_factory @@ -7,7 +7,7 @@ from .schema import Auto, Default from .streams.audio import AudioStream from .streams.video import VideoStream -from .types import Boolean, Color, Double, Duration, Flags, Float, Image_size, Int, Int64, Pix_fmt, String +from .types import Boolean, Color, Double, Duration, Flags, Float, Image_size, Int, Int64, Pix_fmt, String, Value def acrossfade( @@ -73,7 +73,7 @@ def acrossfade( "hsin2", ] | Default = Default("tri"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -113,7 +113,7 @@ def ainterleave( *streams: AudioStream, nb_inputs: Int = Auto("len(streams)"), duration: Int | Literal["longest", "shortest", "first"] | Default = Default("longest"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -153,7 +153,7 @@ def alphamerge( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -192,7 +192,7 @@ def alphamerge( def amerge( *streams: AudioStream, inputs: Int = Auto("len(streams)"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -226,7 +226,7 @@ def amix( dropout_transition: Float = Default(2.0), weights: String = Default("1 1"), normalize: Boolean = Default(True), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -264,7 +264,7 @@ def amix( def amultiply( _multiply0: AudioStream, _multiply1: AudioStream, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -296,7 +296,7 @@ def anlmf( leakage: Float = Default(0.0), out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -344,7 +344,7 @@ def anlms( leakage: Float = Default(0.0), out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -387,7 +387,7 @@ def apsnr( _input1: AudioStream, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -424,7 +424,7 @@ def arls( delta: Float = Default(2.0), out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -465,7 +465,7 @@ def asdr( _input1: AudioStream, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -498,7 +498,7 @@ def asisdr( _input1: AudioStream, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -530,7 +530,7 @@ def astreamselect( *streams: AudioStream, inputs: Int = Auto("len(streams)"), map: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -571,7 +571,7 @@ def axcorrelate( *, size: Int = Default(256), algo: Int | Literal["slow", "fast", "best"] | Default = Default("best"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -850,7 +850,7 @@ def blend( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -930,7 +930,7 @@ def bm3d( ref: Boolean = Default(False), planes: Int = Default(7), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -993,7 +993,7 @@ def colormap( type: Int | Literal["relative", "absolute"] | Default = Default("absolute"), kernel: Int | Literal["euclidean", "weuclidean"] | Default = Default("euclidean"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1036,7 +1036,7 @@ def concat( v: Int = Default(1), a: Int = Default(0), unsafe: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -1087,7 +1087,7 @@ def convolve( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1138,7 +1138,7 @@ def corr( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1184,7 +1184,7 @@ def decimate( ppsrc: Boolean = Default(False), chroma: Boolean = Default(True), mixed: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1241,7 +1241,7 @@ def deconvolve( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1290,7 +1290,7 @@ def displace( *, edge: Int | Literal["blank", "smear", "wrap", "mirror"] | Default = Default("smear"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1327,7 +1327,7 @@ def feedback( *, x: Int = Default(0), w: Int = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> tuple[VideoStream, VideoStream,]: """ @@ -1377,7 +1377,7 @@ def fieldmatch( blockx: Int = Default(16), blocky: Int = Default(16), combpel: Int = Default(80), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1439,7 +1439,7 @@ def framepack( _right: VideoStream, *, format: Int | Literal["sbs", "tab", "frameseq", "lines", "columns"] | Default = Default("sbs"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1474,7 +1474,7 @@ def freezeframes( first: Int64 = Default(0), last: Int64 = Default(0), replace: Int64 = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1515,7 +1515,7 @@ def guided( guidance: Int | Literal["off", "on"] | Default = Default("off"), planes: Int = Default(1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1569,7 +1569,7 @@ def haldclut( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1617,7 +1617,7 @@ def headphone( type: Int | Literal["time", "freq"] | Default = Default("freq"), size: Int = Default(1024), hrir: Int | Literal["stereo", "multich"] | Default = Default("stereo"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1662,7 +1662,7 @@ def hstack( *streams: VideoStream, inputs: Int = Auto("len(streams)"), shortest: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1702,7 +1702,7 @@ def hysteresis( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1751,7 +1751,7 @@ def identity( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1791,7 +1791,7 @@ def interleave( *streams: VideoStream, nb_inputs: Int = Auto("len(streams)"), duration: Int | Literal["longest", "shortest", "first"] | Default = Default("longest"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1827,7 +1827,7 @@ def join( inputs: Int = Auto("len(streams)"), channel_layout: String = Default("stereo"), map: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1873,7 +1873,7 @@ def libvmaf( shortest: Boolean = Default(False), repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1928,7 +1928,7 @@ def limitdiff( reference: Boolean = Default(False), planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1981,7 +1981,7 @@ def lut2( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2036,7 +2036,7 @@ def maskedclamp( overshoot: Int = Default(0), planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2078,7 +2078,7 @@ def maskedmax( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2116,7 +2116,7 @@ def maskedmerge( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2154,7 +2154,7 @@ def maskedmin( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2193,7 +2193,7 @@ def maskedthreshold( planes: Int = Default(15), mode: Int | Literal["abs", "diff"] | Default = Default("abs"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2239,7 +2239,7 @@ def mergeplanes( map2p: Int = Default(0), map3s: Int = Default(0), map3p: Int = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2294,7 +2294,7 @@ def midequalizer( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2332,7 +2332,7 @@ def mix( planes: Flags = Default("F"), duration: Int | Literal["longest", "shortest", "first"] | Default = Default("longest"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2383,7 +2383,7 @@ def morpho( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2434,7 +2434,7 @@ def msad( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2478,7 +2478,7 @@ def multiply( offset: Float = Default(0.5), planes: Flags = Default("F"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2528,7 +2528,7 @@ def overlay( alpha: Int | Literal["straight", "premultiplied"] | Default = Default("straight"), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2586,7 +2586,7 @@ def paletteuse( new: Boolean = Default(False), alpha_threshold: Int = Default(128), debug_kdtree: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2629,7 +2629,7 @@ def premultiply( planes: Int = Default(15), inplace: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2676,7 +2676,7 @@ def psnr( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2725,7 +2725,7 @@ def remap( *, format: Int | Literal["color", "gray"] | Default = Default("color"), fill: Color = Default("black"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2772,7 +2772,7 @@ def sidechaincompress( detection: Int | Literal["peak", "rms"] | Default = Default("rms"), level_sc: Double = Default(1.0), mix: Double = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2839,7 +2839,7 @@ def sidechaingate( link: Int | Literal["average", "maximum"] | Default = Default("average"), level_sc: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2902,7 +2902,7 @@ def signature( th_xh: Int = Default(116), th_di: Int = Default(0), th_it: Double = Default(0.5), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2983,7 +2983,7 @@ def spectrumsynth( | Default = Default("rect"), overlap: Float = Default(1.0), orientation: Int | Literal["vertical", "horizontal"] | Default = Default("vertical"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3033,7 +3033,7 @@ def ssim( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3075,7 +3075,7 @@ def streamselect( *streams: VideoStream, inputs: Int = Auto("len(streams)"), map: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -3118,7 +3118,7 @@ def threshold( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3157,7 +3157,7 @@ def unpremultiply( planes: Int = Default(15), inplace: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3204,7 +3204,7 @@ def varblur( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3255,7 +3255,7 @@ def vif( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3295,7 +3295,7 @@ def vstack( *streams: VideoStream, inputs: Int = Auto("len(streams)"), shortest: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3335,7 +3335,7 @@ def xcorrelate( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3445,7 +3445,7 @@ def xfade( duration: Duration = Default(1.0), offset: Duration = Default(0.0), expr: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3489,7 +3489,7 @@ def xmedian( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3537,7 +3537,7 @@ def xstack( grid: Image_size = Default(None), shortest: Boolean = Default(False), fill: String = Default("none"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ diff --git a/src/ffmpeg/streams/audio.py b/src/ffmpeg/streams/audio.py index 3cdec9f6..40d11931 100644 --- a/src/ffmpeg/streams/audio.py +++ b/src/ffmpeg/streams/audio.py @@ -3,13 +3,27 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal +from typing import TYPE_CHECKING, Literal from ..common.schema import FFMpegFilterDef from ..dag.factory import filter_node_factory from ..dag.nodes import FilterableStream, FilterNode from ..schema import Default -from ..types import Boolean, Color, Double, Duration, Flags, Float, Image_size, Int, Int64, Rational, String, Video_rate +from ..types import ( + Boolean, + Color, + Double, + Duration, + Flags, + Float, + Image_size, + Int, + Int64, + Rational, + String, + Value, + Video_rate, +) if TYPE_CHECKING: from .video import VideoStream @@ -28,7 +42,7 @@ def a3dscope( xzoom: Float = Default(1.0), xpos: Float = Default(0.0), length: Int = Default(15), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -74,7 +88,7 @@ def abench( self, *, action: Int | Literal["start", "stop"] | Default = Default("start"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -107,7 +121,7 @@ def abitscope( size: Image_size = Default("1024x256"), 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, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -154,7 +168,7 @@ def acompressor( detection: Int | Literal["peak", "rms"] | Default = Default("rms"), level_sc: Double = Default(1.0), mix: Double = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -206,7 +220,7 @@ def acontrast( self, *, contrast: Float = Default(33.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -234,7 +248,7 @@ def acontrast( def acopy( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -317,7 +331,7 @@ def acrossfade( "hsin2", ] | Default = Default("tri"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -362,7 +376,7 @@ def acrossover( level: Float = Default(1.0), gain: String = Default("1.f"), precision: Int | Literal["auto", "float", "double"] | Default = Default("auto"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -417,7 +431,7 @@ def acrusher( lforange: Double = Default(20.0), lforate: Double = Default(0.3), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -471,7 +485,7 @@ def acue( cue: Int64 = Default(0), preroll: Duration = Default(0.0), buffer: Duration = Default(0.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -511,7 +525,7 @@ def adeclick( burst: Double = Default(2.0), method: Int | Literal["add", "a", "save", "s"] | Default = Default("add"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -559,7 +573,7 @@ def adeclip( hsize: Int = Default(1000), method: Int | Literal["add", "a", "save", "s"] | Default = Default("add"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -603,7 +617,7 @@ def adecorrelate( stages: Int = Default(6), seed: Int64 = Default(-1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -639,7 +653,7 @@ def adelay( delays: String = Default(None), all: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -675,7 +689,7 @@ def adenorm( level: Double = Default(-351.0), type: Int | Literal["dc", "ac", "square", "pulse"] | Default = Default("dc"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -709,7 +723,7 @@ def aderivative( self, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -753,7 +767,7 @@ def adrawgraph( slide: Int | Literal["frame", "replace", "scroll", "rscroll", "picture"] | Default = Default("frame"), size: Image_size = Default("900x256"), rate: Video_rate = Default("25"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -815,7 +829,7 @@ def adrc( release: Double = Default(100.0), channels: String = Default("all"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -869,7 +883,7 @@ def adynamicequalizer( auto: Int | Literal["disabled", "off", "on"] | Default = Default("disabled"), precision: Int | Literal["auto", "float", "double"] | Default = Default("auto"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -933,7 +947,7 @@ def adynamicsmooth( sensitivity: Double = Default(2.0), basefreq: Double = Default(22050.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -970,7 +984,7 @@ def aecho( out_gain: Float = Default(0.3), delays: String = Default("1000"), decays: String = Default("0.5"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1012,7 +1026,7 @@ def aemphasis( | Literal["col", "emi", "bsi", "riaa", "cd", "50fm", "75fm", "50kf", "75kf"] | Default = Default("cd"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1052,7 +1066,7 @@ def aeval( exprs: String = Default(None), channel_layout: String = Default(None), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1094,7 +1108,7 @@ def aexciter( ceil: Double = Default(9999.0), listen: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1175,7 +1189,7 @@ def afade( silence: Double = Default(0.0), unity: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1237,7 +1251,7 @@ def afftdn( sample_noise: Int | Literal["none", "start", "begin", "stop", "end"] | Default = Default("none"), gain_smooth: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1325,7 +1339,7 @@ def afftfilt( | Default = Default("hann"), overlap: Float = Default(0.75), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1367,7 +1381,7 @@ def aformat( sample_fmts: String = Default(None), sample_rates: String = Default(None), channel_layouts: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1404,7 +1418,7 @@ def afreqshift( level: Double = Default(1.0), order: Int = Default(8), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1448,7 +1462,7 @@ def afwtdn( samples: Int = Default(8192), softness: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1506,7 +1520,7 @@ def agate( link: Int | Literal["average", "maximum"] | Default = Default("average"), level_sc: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1586,7 +1600,7 @@ def agraphmonitor( ] | Default = Default("all+queue"), rate: Video_rate = Default("25"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1632,7 +1646,7 @@ def ahistogram( rheight: Float = Default(0.1), slide: Int | Literal["replace", "scroll"] | Default = Default("replace"), hmode: Int | Literal["abs", "sign"] | Default = Default("abs"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1692,7 +1706,7 @@ def aiir( channel: Int = Default(0), size: Image_size = Default("hd720"), rate: Video_rate = Default("25"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -1756,7 +1770,7 @@ def aintegral( self, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1786,7 +1800,7 @@ def alatency( self, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1825,7 +1839,7 @@ def alimiter( level: Boolean = Default(True), latency: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1882,7 +1896,7 @@ def allpass( transform: Int | Literal["di", "dii", "tdi", "tdii", "latt", "svf", "zdf"] | Default = Default("di"), precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1933,7 +1947,7 @@ def aloop( size: Int64 = Default(0), start: Int64 = Default(0), time: Duration = Default("INT64_MAX"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -1978,7 +1992,7 @@ def ametadata( file: String = Default(None), direct: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2021,7 +2035,7 @@ def ametadata( def amultiply( self, _multiply1: AudioStream, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2052,7 +2066,7 @@ def anequalizer( fscale: Int | Literal["lin", "log"] | Default = Default("log"), colors: String = Default("red|green|blue|yellow|orange|lime|pink|magenta|brown"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -2105,7 +2119,7 @@ def anlmdn( output: Int | Literal["i", "o", "n"] | Default = Default("o"), smooth: Float = Default(11.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2151,7 +2165,7 @@ def anlmf( leakage: Float = Default(0.0), out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2198,7 +2212,7 @@ def anlms( leakage: Float = Default(0.0), out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2237,7 +2251,7 @@ def anlms( def anull( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2266,7 +2280,7 @@ def apad( pad_dur: Duration = Default(-1e-06), whole_dur: Duration = Default(-1e-06), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2308,7 +2322,7 @@ def aperms( mode: Int | Literal["none", "ro", "rw", "toggle", "random"] | Default = Default("none"), seed: Int64 = Default(-1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2352,7 +2366,7 @@ def aphasemeter( tolerance: Float = Default(0.0), angle: Float = Default(170.0), duration: Duration = Default(2.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -2413,7 +2427,7 @@ def aphaser( decay: Double = Default(0.4), speed: Double = Default(0.5), type: Int | Literal["triangular", "t", "sinusoidal", "s"] | Default = Default("triangular"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2456,7 +2470,7 @@ def aphaseshift( level: Double = Default(1.0), order: Int = Default(8), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2493,7 +2507,7 @@ def apsnr( _input1: AudioStream, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2531,7 +2545,7 @@ def apsyclip( iterations: Int = Default(10), level: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2585,7 +2599,7 @@ def apulsator( bpm: Double = Default(120.0), ms: Int = Default(500), hz: Double = Default(2.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2636,7 +2650,7 @@ def arealtime( *, limit: Duration = Default(2.0), speed: Double = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2668,7 +2682,7 @@ def aresample( self, *, sample_rate: Int = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2696,7 +2710,7 @@ def aresample( def areverse( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2725,7 +2739,7 @@ def arls( delta: Float = Default(2.0), out_mode: Int | Literal["i", "d", "o", "n", "e"] | Default = Default("o"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2766,7 +2780,7 @@ def arnndn( model: String = Default(None), mix: Float = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2801,7 +2815,7 @@ def asdr( _input1: AudioStream, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2833,7 +2847,7 @@ def asegment( *, timestamps: String = Default(None), samples: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -2872,7 +2886,7 @@ def aselect( *, expr: String = Default("1"), outputs: Int = Default(1), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -2909,7 +2923,7 @@ def asendcmd( *, commands: String = Default(None), filename: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2943,7 +2957,7 @@ def asetnsamples( nb_out_samples: Int = Default(1024), pad: Boolean = Default(True), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -2977,7 +2991,7 @@ def asetpts( self, *, expr: String = Default("PTS"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3007,7 +3021,7 @@ def asetrate( self, *, sample_rate: Int = Default(44100), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3037,7 +3051,7 @@ def asettb( self, *, expr: String = Default("intb"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3065,7 +3079,7 @@ def asettb( def ashowinfo( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3115,7 +3129,7 @@ def asidedata( ] | Default = Default(-1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3150,7 +3164,7 @@ def asisdr( _input1: AudioStream, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3188,7 +3202,7 @@ def asoftclip( param: Double = Default(1.0), oversample: Int = Default(1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3276,7 +3290,7 @@ def aspectralstats( | Default = Default( "all+mean+variance+centroid+spread+skewness+kurtosis+entropy+flatness+crest+flux+slope+decrease+rolloff" ), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3312,7 +3326,7 @@ def asplit( self, *, outputs: Int = Default(2), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -3416,7 +3430,7 @@ def astats( | Default = Default( "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, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3463,7 +3477,7 @@ def asubboost( delay: Double = Default(20.0), channels: String = Default("all"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3514,7 +3528,7 @@ def asubcut( order: Int = Default(10), level: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3553,7 +3567,7 @@ def asupercut( order: Int = Default(10), level: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3593,7 +3607,7 @@ def asuperpass( qfactor: Double = Default(1.0), level: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3635,7 +3649,7 @@ def asuperstop( qfactor: Double = Default(1.0), level: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3673,7 +3687,7 @@ def atempo( self, *, tempo: Double = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3708,7 +3722,7 @@ def atilt( order: Int = Default(5), level: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3754,7 +3768,7 @@ def atrim( duration: Duration = Default(0.0), start_sample: Int64 = Default(-1), end_sample: Int64 = Default("I64_MAX"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3811,7 +3825,7 @@ def avectorscope( scale: Int | Literal["lin", "sqrt", "cbrt", "log"] | Default = Default("lin"), swap: Boolean = Default(True), mirror: Int | Literal["none", "x", "y", "xy"] | Default = Default("none"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3873,7 +3887,7 @@ def axcorrelate( *, size: Int = Default(256), algo: Int | Literal["slow", "fast", "best"] | Default = Default("best"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3906,7 +3920,7 @@ def azmq( self, *, bind_address: String = Default("tcp://*:5555"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -3946,7 +3960,7 @@ def bandpass( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4005,7 +4019,7 @@ def bandreject( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4064,7 +4078,7 @@ def bass( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4124,7 +4138,7 @@ def biquad( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4171,7 +4185,7 @@ def channelmap( *, map: String = Default(None), channel_layout: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4204,7 +4218,7 @@ def channelsplit( *, channel_layout: String = Default("stereo"), channels: String = Default("all"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -4247,7 +4261,7 @@ def chorus( decays: String = Default(None), speeds: String = Default(None), depths: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4293,7 +4307,7 @@ def compand( gain: Double = Default(0.0), volume: Double = Default(0.0), delay: Double = Default(0.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4341,7 +4355,7 @@ def compensationdelay( wet: Double = Default(1.0), temp: Int = Default(20), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4389,7 +4403,7 @@ def crossfeed( level_out: Double = Default(1.0), block_size: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4433,7 +4447,7 @@ def crystalizer( i: Float = Default(2.0), c: Boolean = Default(True), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4469,7 +4483,7 @@ def dcshift( shift: Double = Default(0.0), limitergain: Double = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4507,7 +4521,7 @@ def deesser( f: Double = Default(0.5), s: Int | Literal["i", "o", "e"] | Default = Default("o"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4548,7 +4562,7 @@ def dialoguenhance( enhance: Double = Default(1.0), voice: Double = Default(2.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4584,7 +4598,7 @@ def drmeter( self, *, length: Double = Default(3.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4627,7 +4641,7 @@ def dynaudnorm( overlap: Double = Default(0.0), curve: String = Default(None), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4681,7 +4695,7 @@ def dynaudnorm( def earwax( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4721,7 +4735,7 @@ def ebur128( lra_high: Double = Default(0.0), sample_peak: Double = Default(0.0), true_peak: Double = Default(0.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -4799,7 +4813,7 @@ def equalizer( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4851,7 +4865,7 @@ def extrastereo( m: Float = Default(2.5), c: Boolean = Default(True), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4910,7 +4924,7 @@ def firequalizer( dumpscale: Int | Literal["linlin", "linlog", "loglin", "loglog"] | Default = Default("linlog"), fft2: Boolean = Default(False), min_phase: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -4971,7 +4985,7 @@ def flanger( shape: Int | Literal["triangular", "t", "sinusoidal", "s"] | Default = Default("sinusoidal"), phase: Double = Default(25.0), interp: Int | Literal["linear", "quadratic"] | Default = Default("linear"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5027,7 +5041,7 @@ def haas( right_balance: Double = Default(1.0), right_gain: Double = Default(1.0), right_phase: Boolean = Default(True), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5086,7 +5100,7 @@ def hdcd( force_pe: Boolean = Default(False), 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, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5136,7 +5150,7 @@ def highpass( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5197,7 +5211,7 @@ def highshelf( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5259,7 +5273,7 @@ def loudnorm( linear: Boolean = Default(True), dual_mono: Boolean = Default(False), print_format: Int | Literal["none", "json", "summary"] | Default = Default("none"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5319,7 +5333,7 @@ def lowpass( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5380,7 +5394,7 @@ def lowshelf( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5434,7 +5448,7 @@ def mcompand( args: String = Default( "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, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5464,7 +5478,7 @@ def pan( self, *, args: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5495,7 +5509,7 @@ def replaygain( *, track_gain: Float = Default(0.0), track_peak: Float = Default(0.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5536,7 +5550,7 @@ def rubberband( formant: Int | Literal["shifted", "preserved"] | Default = Default("shifted"), pitchq: Int | Literal["quality", "speed", "consistency"] | Default = Default("speed"), channels: Int | Literal["apart", "together"] | Default = Default("apart"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -5611,7 +5625,7 @@ def showcqt( | Literal["unspecified", "bt709", "fcc", "bt470bg", "smpte170m", "smpte240m", "bt2020ncl"] | Default = Default("unspecified"), cscheme: String = Default("1|0.5|0|0|0.5|1"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5708,7 +5722,7 @@ def showcwt( direction: Int | Literal["lr", "rl", "ud", "du"] | Default = Default("lr"), bar: Float = Default(0.0), rotation: Float = Default(0.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5806,7 +5820,7 @@ def showfreqs( minamp: Float = Default(1e-06), data: Int | Literal["magnitude", "phase", "delay"] | Default = Default("magnitude"), channels: String = Default("all"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5890,7 +5904,7 @@ def showspatial( ] | Default = Default("hann"), rate: Video_rate = Default("25"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5988,7 +6002,7 @@ def showspectrum( drange: Float = Default(120.0), limit: Float = Default(0.0), opacity: Float = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6114,7 +6128,7 @@ def showspectrumpic( drange: Float = Default(120.0), limit: Float = Default(0.0), opacity: Float = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6188,7 +6202,7 @@ def showvolume( p: Float = Default(0.0), m: Int | Literal["p", "r"] | Default = Default("p"), ds: Int | Literal["lin", "log"] | Default = Default("lin"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6253,7 +6267,7 @@ def showwaves( colors: String = Default("red|green|blue|yellow|orange|lime|pink|magenta|brown"), scale: Int | Literal["lin", "log", "sqrt", "cbrt"] | Default = Default("lin"), draw: Int | Literal["scale", "full"] | Default = Default("scale"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6302,7 +6316,7 @@ def showwavespic( scale: Int | Literal["lin", "log", "sqrt", "cbrt"] | Default = Default("lin"), draw: Int | Literal["scale", "full"] | Default = Default("scale"), filter: Int | Literal["average", "peak"] | Default = Default("average"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6354,7 +6368,7 @@ def sidechaincompress( detection: Int | Literal["peak", "rms"] | Default = Default("rms"), level_sc: Double = Default(1.0), mix: Double = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -6420,7 +6434,7 @@ def sidechaingate( link: Int | Literal["average", "maximum"] | Default = Default("average"), level_sc: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -6477,7 +6491,7 @@ def silencedetect( n: Double = Default(0.001), d: Duration = Default(2.0), mono: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -6524,7 +6538,7 @@ def silenceremove( window: Duration = Default(0.02), timestamp: Int | Literal["write", "copy"] | Default = Default("write"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -6590,7 +6604,7 @@ def speechnorm( link: Boolean = Default(False), rms: Double = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -6662,7 +6676,7 @@ def stereotools( bmode_in: Int | Literal["balance", "amplitude", "power"] | Default = Default("balance"), bmode_out: Int | Literal["balance", "amplitude", "power"] | Default = Default("balance"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -6736,7 +6750,7 @@ def stereowiden( crossfeed: Float = Default(0.3), drymix: Float = Default(0.8), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -6791,7 +6805,7 @@ def superequalizer( _16b: Float = Default(1.0), _17b: Float = Default(1.0), _18b: Float = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -6929,7 +6943,7 @@ def surround( ] | Default = Default("hann"), overlap: Float = Default(0.5), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -7068,7 +7082,7 @@ def tiltshelf( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -7131,7 +7145,7 @@ def treble( precision: Int | Literal["auto", "s16", "s32", "f32", "f64"] | Default = Default("auto"), blocksize: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -7185,7 +7199,7 @@ def tremolo( f: Double = Default(5.0), d: Double = Default(0.5), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -7221,7 +7235,7 @@ def vibrato( f: Double = Default(5.0), d: Double = Default(0.5), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -7257,7 +7271,7 @@ def virtualbass( cutoff: Double = Default(250.0), strength: Double = Default(3.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -7297,7 +7311,7 @@ def volume( replaygain_preamp: Double = Default(0.0), replaygain_noclip: Boolean = Default(True), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -7337,7 +7351,7 @@ def volume( def volumedetect( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ diff --git a/src/ffmpeg/streams/video.py b/src/ffmpeg/streams/video.py index 56330811..a36fcefe 100644 --- a/src/ffmpeg/streams/video.py +++ b/src/ffmpeg/streams/video.py @@ -3,13 +3,27 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Literal +from typing import TYPE_CHECKING, Literal from ..common.schema import FFMpegFilterDef from ..dag.factory import filter_node_factory from ..dag.nodes import FilterableStream, FilterNode from ..schema import Default -from ..types import Boolean, Color, Double, Duration, Flags, Float, Image_size, Int, Int64, Rational, String, Video_rate +from ..types import ( + Boolean, + Color, + Double, + Duration, + Flags, + Float, + Image_size, + Int, + Int64, + Rational, + String, + Value, + Video_rate, +) if TYPE_CHECKING: from .audio import AudioStream @@ -25,7 +39,7 @@ def addroi( h: String = Default("0"), qoffset: Rational = Default("-1/10"), clear: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -63,7 +77,7 @@ def addroi( def alphaextract( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -92,7 +106,7 @@ def alphamerge( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -138,7 +152,7 @@ def amplify( high: Float = Default(65535.0), planes: Flags = Default("7"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -186,7 +200,7 @@ def ass( fontsdir: String = Default(None), alpha: Boolean = Default(False), shaping: Int | Literal["auto", "simple", "complex"] | Default = Default("auto"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -236,7 +250,7 @@ def atadenoise( _1s: Float = Default(32767.0), _2s: Float = Default(32767.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -293,7 +307,7 @@ def avgblur( planes: Int = Default(15), sizeY: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -332,7 +346,7 @@ def backgroundkey( similarity: Float = Default(0.1), blend: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -369,7 +383,7 @@ def bbox( *, min_val: Int = Default(16), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -401,7 +415,7 @@ def bench( self, *, action: Int | Literal["start", "stop"] | Default = Default("start"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -434,7 +448,7 @@ def bilateral( sigmaR: Float = Default(0.1), planes: Int = Default(1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -472,7 +486,7 @@ def bitplanenoise( bitplane: Int = Default(1), filter: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -508,7 +522,7 @@ def blackdetect( d: Double = Default(2.0), picture_black_ratio_th: Double = Default(0.98), pixel_black_th: Double = Default(0.1), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -543,7 +557,7 @@ def blackframe( *, amount: Int = Default(98), threshold: Int = Default(32), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -820,7 +834,7 @@ def blend( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -891,7 +905,7 @@ def blockdetect( period_min: Int = Default(3), period_max: Int = Default(24), planes: Int = Default(1), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -930,7 +944,7 @@ def blurdetect( block_pct: Int = Default(80), block_width: Int = Default(-1), planes: Int = Default(1), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -976,7 +990,7 @@ def boxblur( alpha_radius: String = Default(None), alpha_power: Int = Default(-1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1021,7 +1035,7 @@ def bwdif( parity: Int | Literal["tff", "bff", "auto"] | Default = Default("auto"), deint: Int | Literal["all", "interlaced"] | Default = Default("all"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1059,7 +1073,7 @@ def cas( strength: Float = Default(0.0), planes: Flags = Default("7"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1091,7 +1105,7 @@ def cas( def ccrepack( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1119,7 +1133,7 @@ def chromahold( blend: Float = Default(0.0), yuv: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1161,7 +1175,7 @@ def chromakey( blend: Float = Default(0.0), yuv: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1208,7 +1222,7 @@ def chromanr( threv: Float = Default(200.0), distance: Int | Literal["manhattan", "euclidean"] | Default = Default("manhattan"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1261,7 +1275,7 @@ def chromashift( crv: Int = Default(0), edge: Int | Literal["smear", "wrap"] | Default = Default("smear"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1344,7 +1358,7 @@ def ciescope( showwhite: Boolean = Default(False), gamma: Double = Default(2.6), fill: Boolean = Default(True), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1397,7 +1411,7 @@ def codecview( frame_type: Flags | Literal["if", "pf", "bf"] | Default = Default("0"), block: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1447,7 +1461,7 @@ def colorbalance( bh: Float = Default(0.0), pl: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1515,7 +1529,7 @@ def colorchannelmixer( pc: Int | Literal["none", "lum", "max", "avg", "sum", "nrm", "pwr"] | Default = Default("none"), pa: Double = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1588,7 +1602,7 @@ def colorcontrast( byw: Float = Default(0.0), pl: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1638,7 +1652,7 @@ def colorcorrect( saturation: Float = Default(1.0), analyze: Int | Literal["manual", "average", "minmax", "median"] | Default = Default("manual"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1683,7 +1697,7 @@ def colorhold( similarity: Float = Default(0.01), blend: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1723,7 +1737,7 @@ def colorize( lightness: Float = Default(0.5), mix: Float = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1764,7 +1778,7 @@ def colorkey( similarity: Float = Default(0.01), blend: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1817,7 +1831,7 @@ def colorlevels( aomax: Double = Default(1.0), preserve: Int | Literal["none", "lum", "max", "avg", "sum", "nrm", "pwr"] | Default = Default("none"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1887,7 +1901,7 @@ def colormap( type: Int | Literal["relative", "absolute"] | Default = Default("absolute"), kernel: Int | Literal["euclidean", "weuclidean"] | Default = Default("euclidean"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -1933,7 +1947,7 @@ def colormatrix( | Literal["bt709", "fcc", "bt601", "bt470", "bt470bg", "smpte170m", "smpte240m", "bt2020"] | Default = Default(-1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2065,7 +2079,7 @@ def colorspace( ] | Default = Default(2), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2126,7 +2140,7 @@ def colortemperature( mix: Float = Default(1.0), pl: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2178,7 +2192,7 @@ def convolution( _2mode: Int | Literal["square", "row", "column"] | Default = Default("square"), _3mode: Int | Literal["square", "row", "column"] | Default = Default("square"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2248,7 +2262,7 @@ def convolve( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2291,7 +2305,7 @@ def convolve( def copy( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2318,7 +2332,7 @@ def coreimage( list_generators: Boolean = Default(False), filter: String = Default(None), output_rect: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2359,7 +2373,7 @@ def corr( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2399,7 +2413,7 @@ def cover_rect( *, cover: String = Default(None), mode: Int | Literal["cover", "blur"] | Default = Default("blur"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2436,7 +2450,7 @@ def crop( y: String = Default("(in_h-out_h"), keep_aspect: Boolean = Default(False), exact: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2486,7 +2500,7 @@ def cropdetect( low: Float = Default(0.0588235), mv_threshold: Int = Default(8), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2538,7 +2552,7 @@ def cue( cue: Int64 = Default(0), preroll: Duration = Default(0.0), buffer: Duration = Default(0.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2595,7 +2609,7 @@ def curves( plot: String = Default(None), interp: Int | Literal["natural", "pchip"] | Default = Default("natural"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2650,7 +2664,7 @@ def datascope( opacity: Float = Default(0.75), format: Int | Literal["hex", "dec"] | Default = Default("hex"), components: Int = Default(15), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2697,7 +2711,7 @@ def dblur( radius: Float = Default(5.0), planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2737,7 +2751,7 @@ def dctdnoiz( expr: String = Default(None), n: Int = Default(3), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2783,7 +2797,7 @@ def deband( blur: Boolean = Default(True), coupling: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2836,7 +2850,7 @@ def deblock( delta: Float = Default(0.05), planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2888,7 +2902,7 @@ def deconvolve( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2938,7 +2952,7 @@ def dedot( tc: Float = Default(0.058), ct: Float = Default(0.019), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -2982,7 +2996,7 @@ def deflate( threshold2: Int = Default(65535), threshold3: Int = Default(65535), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3022,7 +3036,7 @@ def deflicker( size: Int = Default(5), mode: Int | Literal["am", "gm", "hm", "qm", "cm", "pm", "median"] | Default = Default("am"), bypass: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3056,7 +3070,7 @@ def dejudder( self, *, cycle: Int = Default(4), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3091,7 +3105,7 @@ def delogo( h: String = Default("-1"), show: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3136,7 +3150,7 @@ def derain( input: String = Default("x"), output: String = Default("y"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3187,7 +3201,7 @@ def deshake( search: Int | Literal["exhaustive", "less"] | Default = Default("exhaustive"), filename: String = Default(None), opencl: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3247,7 +3261,7 @@ def despill( brightness: Float = Default(0.0), alpha: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3295,7 +3309,7 @@ def detelecine( first_field: Int | Literal["top", "t", "bottom", "b"] | Default = Default("top"), pattern: String = Default("23"), start_frame: Int = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3334,7 +3348,7 @@ def dilation( threshold2: Int = Default(65535), threshold3: Int = Default(65535), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3377,7 +3391,7 @@ def displace( *, edge: Int | Literal["blank", "smear", "wrap", "mirror"] | Default = Default("smear"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3420,7 +3434,7 @@ def dnn_classify( confidence: Float = Default(0.5), labels: String = Default(None), target: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3476,7 +3490,7 @@ def dnn_detect( _async: Boolean = Default(True), confidence: Float = Default(0.5), labels: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3528,7 +3542,7 @@ def dnn_processing( backend_configs: String = Default(None), options: String = Default(None), _async: Boolean = Default(True), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3570,7 +3584,7 @@ def doubleweave( self, *, first_field: Int | Literal["top", "t", "bottom", "b"] | Default = Default("top"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3608,7 +3622,7 @@ def drawbox( replace: Boolean = Default(False), box_source: String = Default(None), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3668,7 +3682,7 @@ def drawgraph( slide: Int | Literal["frame", "replace", "scroll", "rscroll", "picture"] | Default = Default("frame"), size: Image_size = Default("900x256"), rate: Video_rate = Default("25"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3733,7 +3747,7 @@ def drawgrid( thickness: String = Default("1"), replace: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3831,7 +3845,7 @@ def drawtext( ] | Default = Default("0"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3933,7 +3947,7 @@ def edgedetect( mode: Int | Literal["wires", "colormix", "canny"] | Default = Default("wires"), 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, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -3975,7 +3989,7 @@ def elbg( seed: Int64 = Default(-1), pal8: Boolean = Default(False), use_alpha: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4014,7 +4028,7 @@ def entropy( *, mode: Int | Literal["normal", "diff"] | Default = Default("normal"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4046,7 +4060,7 @@ def epx( self, *, n: Int = Default(3), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4085,7 +4099,7 @@ def eq( gamma_weight: String = Default("1.0"), eval: Int | Literal["init", "frame"] | Default = Default("init"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4138,7 +4152,7 @@ def erosion( threshold2: Int = Default(65535), threshold3: Int = Default(65535), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4187,7 +4201,7 @@ def estdif( dcost: Int = Default(1), interp: Int | Literal["2p", "4p", "6p"] | Default = Default("4p"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4237,7 +4251,7 @@ def exposure( exposure: Float = Default(0.0), black: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4271,7 +4285,7 @@ def extractplanes( self, *, planes: Flags | Literal["y", "u", "v", "r", "g", "b", "a"] | Default = Default("r"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -4314,7 +4328,7 @@ def fade( duration: Duration = Default(0.0), color: Color = Default("black"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4360,7 +4374,7 @@ def feedback( *, x: Int = Default(0), w: Int = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> tuple[VideoStream, VideoStream,]: """ @@ -4431,7 +4445,7 @@ def fftdnoiz( ] | Default = Default("hann"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4486,7 +4500,7 @@ def fftfilt( weight_V: String = Default(None), eval: Int | Literal["init", "frame"] | Default = Default("init"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4530,7 +4544,7 @@ def field( self, *, type: Int | Literal["top", "bottom"] | Default = Default("top"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4561,7 +4575,7 @@ def fieldhint( *, hint: String = Default(None), mode: Int | Literal["absolute", "relative", "pattern"] | Default = Default("absolute"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4594,7 +4608,7 @@ def fieldorder( *, order: Int | Literal["bff", "tff"] | Default = Default("tff"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4634,7 +4648,7 @@ def fillborders( | Default = Default("smear"), color: Color = Default("black"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4680,7 +4694,7 @@ def find_rect( mipmaps: Int = Default(3), xmin: Int = Default(0), discard: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4728,7 +4742,7 @@ def floodfill( d2: Int = Default(0), d3: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4778,7 +4792,7 @@ def format( self, *, pix_fmts: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4811,7 +4825,7 @@ def fps( start_time: Double = Default("DBL_MAX"), 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, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4848,7 +4862,7 @@ def framepack( _right: VideoStream, *, format: Int | Literal["sbs", "tab", "frameseq", "lines", "columns"] | Default = Default("sbs"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4883,7 +4897,7 @@ def framerate( interp_end: Int = Default(240), scene: Double = Default(8.2), flags: Flags | Literal["scene_change_detect", "scd"] | Default = Default("scene_change_detect+scd"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4922,7 +4936,7 @@ def framestep( *, step: Int = Default(1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4955,7 +4969,7 @@ def freezedetect( *, n: Double = Default(0.001), d: Duration = Default(2.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -4990,7 +5004,7 @@ def freezeframes( first: Int64 = Default(0), last: Int64 = Default(0), replace: Int64 = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5027,7 +5041,7 @@ def frei0r( filter_name: String = Default(None), filter_params: String = Default(None), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5065,7 +5079,7 @@ def fspp( strength: Int = Default(0), use_bframe_qp: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5107,7 +5121,7 @@ def gblur( planes: Int = Default(15), sigmaV: Float = Default(-1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5153,7 +5167,7 @@ def geq( blue_expr: String = Default(None), interpolation: Int | Literal["nearest", "n", "bilinear", "b"] | Default = Default("bilinear"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5201,7 +5215,7 @@ def gradfun( strength: Float = Default(1.2), radius: Int = Default(16), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5261,7 +5275,7 @@ def graphmonitor( ] | Default = Default("all+queue"), rate: Video_rate = Default("25"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5299,7 +5313,7 @@ def grayworld( self, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5332,7 +5346,7 @@ def greyedge( minknorm: Int = Default(1), sigma: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5377,7 +5391,7 @@ def haldclut( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5420,7 +5434,7 @@ def hflip( self, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5453,7 +5467,7 @@ def histeq( intensity: Float = Default(0.21), antibanding: Int | Literal["none", "weak", "strong"] | Default = Default("none"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5509,7 +5523,7 @@ def histogram( "grayoncolor", ] | Default = Default("whiteonblack"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5557,7 +5571,7 @@ def hqdn3d( luma_tmp: Double = Default(0.0), chroma_tmp: Double = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5595,7 +5609,7 @@ def hqx( self, *, n: Int = Default(3), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5630,7 +5644,7 @@ def hsvhold( similarity: Float = Default(0.01), blend: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5675,7 +5689,7 @@ def hsvkey( similarity: Float = Default(0.01), blend: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5719,7 +5733,7 @@ def hue( H: String = Default(None), b: String = Default("0"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5766,7 +5780,7 @@ def huesaturation( bw: Float = Default(0.333), lightness: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5812,7 +5826,7 @@ def huesaturation( def hwdownload( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5838,7 +5852,7 @@ def hwmap( mode: Flags | Literal["read", "write", "overwrite", "direct"] | Default = Default("read+write"), derive_device: String = Default(None), reverse: Int = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5872,7 +5886,7 @@ def hwupload( self, *, derive_device: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5909,7 +5923,7 @@ def hysteresis( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -5957,7 +5971,7 @@ def identity( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6000,7 +6014,7 @@ def idet( rep_thres: Float = Default(3.0), half_life: Float = Default(0.0), analyze_interlaced_flag: Int = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6044,7 +6058,7 @@ def il( chroma_swap: Boolean = Default(False), alpha_swap: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6090,7 +6104,7 @@ def inflate( threshold2: Int = Default(65535), threshold3: Int = Default(65535), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6129,7 +6143,7 @@ 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, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6165,7 +6179,7 @@ def kerndeint( order: Boolean = Default(False), sharp: Boolean = Default(False), twoway: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6206,7 +6220,7 @@ def kirsch( scale: Float = Default(1.0), delta: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6244,7 +6258,7 @@ def lagfun( decay: Float = Default(0.95), planes: Flags = Default("F"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6278,7 +6292,7 @@ def latency( self, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6314,7 +6328,7 @@ def lenscorrection( i: Int | Literal["nearest", "bilinear"] | Default = Default("nearest"), fc: Color = Default("black@0"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6367,7 +6381,7 @@ def libvmaf( shortest: Boolean = Default(False), repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6421,7 +6435,7 @@ def limiter( max: Int = Default(65535), planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6460,7 +6474,7 @@ def loop( size: Int64 = Default(0), start: Int64 = Default(0), time: Duration = Default("INT64_MAX"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6499,7 +6513,7 @@ def lumakey( tolerance: Double = Default(0.01), softness: Double = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6546,7 +6560,7 @@ def lut( b: String = Default("clipval"), a: String = Default("clipval"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6600,7 +6614,7 @@ def lut1d( file: String = Default(None), interp: Int | Literal["nearest", "linear", "cosine", "cubic", "spline"] | Default = Default("linear"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6644,7 +6658,7 @@ def lut2( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6698,7 +6712,7 @@ def lut3d( | Literal["nearest", "trilinear", "tetrahedral", "pyramid", "prism"] | Default = Default("tetrahedral"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6745,7 +6759,7 @@ def lutrgb( b: String = Default("clipval"), a: String = Default("clipval"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6808,7 +6822,7 @@ def lutyuv( b: String = Default("clipval"), a: String = Default("clipval"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6865,7 +6879,7 @@ def maskedclamp( overshoot: Int = Default(0), planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6906,7 +6920,7 @@ def maskedmax( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6943,7 +6957,7 @@ def maskedmerge( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -6980,7 +6994,7 @@ def maskedmin( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7018,7 +7032,7 @@ def maskedthreshold( planes: Int = Default(15), mode: Int | Literal["abs", "diff"] | Default = Default("abs"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7060,7 +7074,7 @@ def maskfun( fill: Int = Default(0), sum: Int = Default(10), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7102,7 +7116,7 @@ def mcdeint( mode: Int | Literal["fast", "medium", "slow", "extra_slow"] | Default = Default("fast"), parity: Int | Literal["tff", "bff"] | Default = Default("bff"), qp: Int = Default(1), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7140,7 +7154,7 @@ def median( radiusV: Int = Default(0), percentile: Float = Default(0.5), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7182,7 +7196,7 @@ def mestimate( | Default = Default("esa"), mb_size: Int = Default(16), search_param: Int = Default(7), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7225,7 +7239,7 @@ def metadata( file: String = Default(None), direct: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7271,7 +7285,7 @@ def midequalizer( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7315,7 +7329,7 @@ def minterpolate( vsbmc: Int = Default(0), scd: Int | Literal["none", "fdiff"] | Default = Default("fdiff"), scd_threshold: Double = Default(10.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7367,7 +7381,7 @@ def monochrome( size: Float = Default(1.0), high: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7415,7 +7429,7 @@ def morpho( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7464,7 +7478,7 @@ def mpdecimate( hi: Int = Default(768), lo: Int = Default(320), frac: Float = Default(0.33), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7507,7 +7521,7 @@ def msad( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7550,7 +7564,7 @@ def multiply( offset: Float = Default(0.5), planes: Flags = Default("F"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7589,7 +7603,7 @@ def negate( components: Flags | Literal["y", "u", "v", "r", "g", "b", "a"] | Default = Default("y+u+v+r+g+b"), negate_alpha: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7628,7 +7642,7 @@ def nlmeans( r: Int = Default(15), rc: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7677,7 +7691,7 @@ def nnedi( etype: Int | Literal["a", "abs", "s", "mse"] | Default = Default("a"), pscrn: Int | Literal["none", "original", "new", "new2", "new3"] | Default = Default("new"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7725,7 +7739,7 @@ def noformat( self, *, pix_fmts: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7770,7 +7784,7 @@ def noise( c3_strength: Int = Default(0), c3_flags: Flags | Literal["a", "p", "t", "u"] | Default = Default("0"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7835,7 +7849,7 @@ def normalize( independence: Float = Default(1.0), strength: Float = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7873,7 +7887,7 @@ def normalize( def null( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7900,7 +7914,7 @@ def ocr( language: String = Default("eng"), whitelist: String = Default("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.:;,-+_!?\"'[]{}("), blacklist: String = Default(""), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -7949,7 +7963,7 @@ def oscilloscope( st: Boolean = Default(True), sc: Boolean = Default(True), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8017,7 +8031,7 @@ def overlay( alpha: Int | Literal["straight", "premultiplied"] | Default = Default("straight"), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8069,7 +8083,7 @@ def owdenoise( luma_strength: Double = Default(1.0), chroma_strength: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8111,7 +8125,7 @@ def pad( color: Color = Default("black"), eval: Int | Literal["init", "frame"] | Default = Default("init"), aspect: Rational = Default("0/1"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8156,7 +8170,7 @@ def palettegen( reserve_transparent: Boolean = Default(True), transparency_color: Color = Default("lime"), stats_mode: Int | Literal["full", "diff", "single"] | Default = Default("full"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8200,7 +8214,7 @@ def paletteuse( new: Boolean = Default(False), alpha_threshold: Int = Default(128), debug_kdtree: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8243,7 +8257,7 @@ def perms( mode: Int | Literal["none", "ro", "rw", "toggle", "random"] | Default = Default("none"), seed: Int64 = Default(-1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8288,7 +8302,7 @@ def perspective( sense: Int | Literal["source", "destination"] | Default = Default("source"), eval: Int | Literal["init", "frame"] | Default = Default("init"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8341,7 +8355,7 @@ 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, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8376,7 +8390,7 @@ def photosensitivity( threshold: Float = Default(1.0), skip: Int = Default(1), bypass: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8410,7 +8424,7 @@ def photosensitivity( def pixdesctest( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8438,7 +8452,7 @@ def pixelize( mode: Int | Literal["avg", "min", "max"] | Default = Default("avg"), planes: Flags = Default("F"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8483,7 +8497,7 @@ def pixscope( wx: Float = Default(-1.0), wy: Float = Default(-1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8528,7 +8542,7 @@ def pp( *, subfilters: String = Default("de"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8562,7 +8576,7 @@ def pp7( qp: Int = Default(0), mode: Int | Literal["hard", "soft", "medium"] | Default = Default("medium"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8599,7 +8613,7 @@ def prewitt( scale: Float = Default(1.0), delta: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8667,7 +8681,7 @@ def pseudocolor( | Default = Default("none"), opacity: Float = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8719,7 +8733,7 @@ def psnr( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8769,7 +8783,7 @@ def pullup( jb: Int = Default(4), sb: Boolean = Default(False), mp: Int | Literal["y", "u", "v"] | Default = Default("y"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8810,7 +8824,7 @@ def qp( *, qp: String = Default(None), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8843,7 +8857,7 @@ def random( *, frames: Int = Default(30), seed: Int64 = Default(-1), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8880,7 +8894,7 @@ def readeia608( chp: Boolean = Default(False), lp: Boolean = Default(True), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8922,7 +8936,7 @@ def readvitc( scan_max: Int = Default(45), thr_b: Double = Default(0.2), thr_w: Double = Default(0.6), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8957,7 +8971,7 @@ def realtime( *, limit: Duration = Default(2.0), speed: Double = Default(1.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -8992,7 +9006,7 @@ def remap( *, format: Int | Literal["color", "gray"] | Default = Default("color"), fill: Color = Default("black"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9030,7 +9044,7 @@ def removegrain( m2: Int = Default(0), m3: Int = Default(0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9069,7 +9083,7 @@ def removelogo( *, filename: String = Default(None), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9099,7 +9113,7 @@ def removelogo( def repeatfields( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9121,7 +9135,7 @@ def repeatfields( def reverse( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9154,7 +9168,7 @@ def rgbashift( av: Int = Default(0), edge: Int | Literal["smear", "wrap"] | Default = Default("smear"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9205,7 +9219,7 @@ def roberts( scale: Float = Default(1.0), delta: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9246,7 +9260,7 @@ def rotate( fillcolor: String = Default("black"), bilinear: Boolean = Default(True), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9292,7 +9306,7 @@ def sab( chroma_pre_filter_radius: Float = Default(-0.9), chroma_strength: Float = Default(-0.9), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9358,7 +9372,7 @@ def scale( param0: Double = Default("DBL_MAX"), param1: Double = Default("DBL_MAX"), eval: Int | Literal["init", "frame"] | Default = Default("init"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9424,7 +9438,7 @@ def scale_vt( color_matrix: String = Default(None), color_primaries: String = Default(None), color_transfer: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9463,7 +9477,7 @@ def scdet( *, threshold: Double = Default(10.0), sc_pass: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9498,7 +9512,7 @@ def scharr( scale: Float = Default(1.0), delta: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9538,7 +9552,7 @@ def scroll( hpos: Float = Default(0.0), vpos: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9577,7 +9591,7 @@ def segment( *, timestamps: String = Default(None), frames: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -9616,7 +9630,7 @@ def select( *, expr: String = Default("1"), outputs: Int = Default(1), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -9663,7 +9677,7 @@ def selectivecolor( blacks: String = Default(None), psfile: String = Default(None), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9716,7 +9730,7 @@ def sendcmd( *, commands: String = Default(None), filename: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9746,7 +9760,7 @@ def sendcmd( def separatefields( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9771,7 +9785,7 @@ def setdar( *, dar: String = Default("0"), max: Int = Default(100), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9803,7 +9817,7 @@ def setfield( self, *, mode: Int | Literal["auto", "bff", "tff", "prog"] | Default = Default("auto"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9895,7 +9909,7 @@ def setparams( "ictcp", ] | Default = Default("auto"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9933,7 +9947,7 @@ def setpts( self, *, expr: String = Default("PTS"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9965,7 +9979,7 @@ def setrange( range: Int | Literal["auto", "unspecified", "unknown", "limited", "tv", "mpeg", "full", "pc", "jpeg"] | Default = Default("auto"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -9996,7 +10010,7 @@ def setsar( *, sar: String = Default("0"), max: Int = Default(100), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10028,7 +10042,7 @@ def settb( self, *, expr: String = Default("intb"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10062,7 +10076,7 @@ def shear( fillcolor: String = Default("black"), interp: Int | Literal["nearest", "bilinear"] | Default = Default("bilinear"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10100,7 +10114,7 @@ def showinfo( self, *, checksum: Boolean = Default(True), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10130,7 +10144,7 @@ def showpalette( self, *, s: Int = Default(30), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10161,7 +10175,7 @@ def shuffleframes( *, mapping: String = Default("0"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10198,7 +10212,7 @@ def shufflepixels( height: Int = Default(10), seed: Int64 = Default(-1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10242,7 +10256,7 @@ def shuffleplanes( map2: Int = Default(2), map3: Int = Default(3), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10306,7 +10320,7 @@ def sidedata( ] | Default = Default(-1), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10342,7 +10356,7 @@ def signalstats( stat: Flags | Literal["tout", "vrep", "brng"] | Default = Default("0"), out: Int | Literal["tout", "vrep", "brng"] | Default = Default(-1), c: Color = Default("yellow"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10376,7 +10390,7 @@ def siti( self, *, print_summary: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10412,7 +10426,7 @@ def smartblur( chroma_strength: Float = Default(-2.0), chroma_threshold: Int = Default(-31), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10457,7 +10471,7 @@ def sobel( scale: Float = Default(1.0), delta: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10525,7 +10539,7 @@ def spectrumsynth( | Default = Default("rect"), overlap: Float = Default(1.0), orientation: Int | Literal["vertical", "horizontal"] | Default = Default("vertical"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AudioStream: """ @@ -10568,7 +10582,7 @@ def split( self, *, outputs: Int = Default(2), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> FilterNode: """ @@ -10604,7 +10618,7 @@ def spp( mode: Int | Literal["hard", "soft"] | Default = Default("hard"), use_bframe_qp: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10646,7 +10660,7 @@ def sr( model: String = Default(None), input: String = Default("x"), output: String = Default("y"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10690,7 +10704,7 @@ def ssim( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10793,7 +10807,7 @@ def stereo3d( "hdmi", ] | Default = Default("arcd"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10832,7 +10846,7 @@ def subtitles( stream_index: Int = Default(-1), force_style: String = Default(None), wrap_unicode: Boolean = Default("auto"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10874,7 +10888,7 @@ def subtitles( def super2xsai( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10904,7 +10918,7 @@ def swaprect( x2: String = Default("0"), y2: String = Default("0"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -10946,7 +10960,7 @@ def swapuv( self, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11216,7 +11230,7 @@ def tblend( c3_opacity: Double = Default(1.0), all_opacity: Double = Default(1.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11277,7 +11291,7 @@ def telecine( *, first_field: Int | Literal["top", "t", "bottom", "b"] | Default = Default("top"), pattern: String = Default("23"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11316,7 +11330,7 @@ def thistogram( envelope: Boolean = Default(False), ecolor: Color = Default("gold"), slide: Int | Literal["frame", "replace", "scroll", "rscroll", "picture"] | Default = Default("replace"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11364,7 +11378,7 @@ def threshold( *, planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11403,7 +11417,7 @@ def thumbnail( n: Int = Default(100), log: Int | Literal["quiet", "info", "verbose"] | Default = Default("info"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11443,7 +11457,7 @@ def tile( color: Color = Default("black"), overlap: Int = Default(0), init_padding: Int = Default(0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11489,7 +11503,7 @@ def tinterlace( "merge", "drop_even", "drop_odd", "pad", "interleave_top", "interleave_bottom", "interlacex2", "mergex2" ] | Default = Default("merge"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11523,7 +11537,7 @@ def tlut2( c2: String = Default("x"), c3: String = Default("x"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11564,7 +11578,7 @@ def tmedian( planes: Int = Default(15), percentile: Float = Default(0.5), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11603,7 +11617,7 @@ def tmidequalizer( sigma: Float = Default(0.5), planes: Int = Default(15), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11643,7 +11657,7 @@ def tmix( scale: Float = Default(0.0), planes: Flags = Default("F"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11686,7 +11700,7 @@ def tonemap( param: Double = Default("nan"), desat: Double = Default(2.0), peak: Double = Default(0.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11728,7 +11742,7 @@ def tpad( start_duration: Duration = Default(0.0), stop_duration: Duration = Default(0.0), color: Color = Default("black"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11771,7 +11785,7 @@ 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, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11806,7 +11820,7 @@ def transpose_vt( | Literal["cclock_flip", "clock", "cclock", "clock_flip", "reversal", "hflip", "vflip"] | Default = Default("cclock_flip"), passthrough: Int | Literal["none", "portrait", "landscape"] | Default = Default("none"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11844,7 +11858,7 @@ def trim( duration: Duration = Default(0.0), start_frame: Int64 = Default(-1), end_frame: Int64 = Default("I64_MAX"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11895,7 +11909,7 @@ def unsharp( alpha_msize_y: Int = Default(5), alpha_amount: Float = Default(0.0), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11943,7 +11957,7 @@ def untile( self, *, layout: Image_size = Default("6x5"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -11977,7 +11991,7 @@ def uspp( use_bframe_qp: Boolean = Default(False), codec: String = Default("snow"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12132,7 +12146,7 @@ def v360( v_offset: Float = Default(0.0), alpha_mask: Boolean = Default(False), reset_rot: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12238,7 +12252,7 @@ def vaguedenoiser( planes: Int = Default(15), type: Int | Literal["universal", "bayes"] | Default = Default("universal"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12288,7 +12302,7 @@ def varblur( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12348,7 +12362,7 @@ def vectorscope( colorspace: Int | Literal["auto", "601", "709"] | Default = Default("auto"), tint0: Float = Default(0.0), tint1: Float = Default(0.0), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12404,7 +12418,7 @@ def vflip( self, *, enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12432,7 +12446,7 @@ def vflip( def vfrdet( self, - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12464,7 +12478,7 @@ def vibrance( blum: Float = Default(0.212656), alternate: Boolean = Default(False), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12517,7 +12531,7 @@ def vidstabdetect( show: Int = Default(0), tripod: Int = Default(0), fileformat: Int | Literal["ascii", "binary"] | Default = Default("binary"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12574,7 +12588,7 @@ def vidstabtransform( interpol: Int | Literal["no", "linear", "bilinear", "bicubic"] | Default = Default("bilinear"), tripod: Boolean = Default(False), debug: Boolean = Default(False), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12635,7 +12649,7 @@ def vif( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12681,7 +12695,7 @@ def vignette( dither: Boolean = Default(True), aspect: Rational = Default("1/1"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12725,7 +12739,7 @@ def vmafmotion( self, *, stats_file: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12759,7 +12773,7 @@ def w3fdif( parity: Int | Literal["tff", "bff", "auto"] | Default = Default("auto"), deint: Int | Literal["all", "interlaced"] | Default = Default("all"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12814,7 +12828,7 @@ def waveform( tint1: Float = Default(0.0), fitmode: Int | Literal["none", "size"] | Default = Default("none"), input: Int | Literal["all", "first"] | Default = Default("first"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12874,7 +12888,7 @@ def weave( self, *, first_field: Int | Literal["top", "t", "bottom", "b"] | Default = Default("top"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12904,7 +12918,7 @@ def xbr( self, *, n: Int = Default(3), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -12941,7 +12955,7 @@ def xcorrelate( repeatlast: Boolean = Default(True), ts_sync_mode: Int | Literal["default", "nearest"] | Default = Default("default"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -13050,7 +13064,7 @@ def xfade( duration: Duration = Default(1.0), offset: Duration = Default(0.0), expr: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -13092,7 +13106,7 @@ def yadif( parity: Int | Literal["tff", "bff", "auto"] | Default = Default("auto"), deint: Int | Literal["all", "interlaced"] | Default = Default("all"), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -13131,7 +13145,7 @@ def yaepblur( planes: Int = Default(1), sigma: Int = Default(128), enable: String = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -13167,7 +13181,7 @@ def zmq( self, *, bind_address: String = Default("tcp://*:5555"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -13202,7 +13216,7 @@ def zoompan( d: String = Default("90"), s: Image_size = Default("hd720"), fps: Video_rate = Default("25"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ @@ -13406,7 +13420,7 @@ def zscale( agamma: Boolean = Default(True), param_a: Double = Default("nan"), param_b: Double = Default("nan"), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> VideoStream: """ diff --git a/src/ffmpeg/types.py b/src/ffmpeg/types.py index 5345526e..169c2b41 100644 --- a/src/ffmpeg/types.py +++ b/src/ffmpeg/types.py @@ -117,3 +117,8 @@ """ ref: OPT_TYPE_TIME """ + +Value = bool | str | int | float | LazyValue +""" +A value that can be either a boolean, string, integer, or float but canot be None. +""" diff --git a/src/scripts/code_gen/templates/_components.jinja b/src/scripts/code_gen/templates/_components.jinja index 4c40b1b1..22f30a56 100644 --- a/src/scripts/code_gen/templates/_components.jinja +++ b/src/scripts/code_gen/templates/_components.jinja @@ -137,7 +137,7 @@ return ( {{ stream_typings(f, "method") }} {% if not f.is_dynamic_input and f.options | length > 0 %}*,{% endif %} {{ f | filter_option_typings }} - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) {{- return_stream_typings(f) }} """ {{ docstring(f) }} @@ -151,7 +151,7 @@ def {{f.name}}( {{ stream_typings(f, "function") }} {% if not f.is_dynamic_input and f.options | length > 0 %}*,{% endif %} {{ f | filter_option_typings }} - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) {{- 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 df1a0433..b947e393 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 @@ -21,7 +21,7 @@ class GlobalArgs(ABC): {{ option.name }}: {{ option | option_typing }} = None, {%- endif -%} {%- endfor -%} - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> GlobalStream: """ Set global options. 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 3b607a31..f474af28 100644 --- a/src/scripts/code_gen/templates/dag/io/_input.py.jinja +++ b/src/scripts/code_gen/templates/dag/io/_input.py.jinja @@ -15,7 +15,7 @@ def input( {{ option.name }}: {{ option | option_typing }} = None, {%- endif -%} {%- endfor -%} - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> AVStream: """ Input file URL (ffmpeg ``-i`` option) 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 6e8fafb4..c2bf3e91 100644 --- a/src/scripts/code_gen/templates/dag/io/_output.py.jinja +++ b/src/scripts/code_gen/templates/dag/io/_output.py.jinja @@ -14,7 +14,7 @@ def output( {{ option.name | option_name_safe }}: {{ option | option_typing }} = None, {%- endif -%} {%- endfor -%} - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> OutputStream: """ Output file URL 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 a999cdc3..bc3dbbb2 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 @@ -23,7 +23,7 @@ class OutputArgs(ABC): {{ option.name | option_name_safe }}: {{ option | option_typing }} = None, {%- endif -%} {%- endfor -%} - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, ) -> OutputStream: """ Output file URL 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 09799c28..8f677570 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 @@ -10,7 +10,7 @@ from ...types import * def input( filename: str | Path, - *,extra_options: dict[str, Any] = None, + *,extra_options: dict[str, Value] = None, ) -> AVStream: """ Input file URL (ffmpeg ``-i`` option) 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 9cd71daa..f037c788 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 @@ -9,7 +9,7 @@ from ...types import * def output( *streams: FilterableStream, - filename: str | Path,extra_options: dict[str, Any] = None, + filename: str | Path,extra_options: dict[str, Value] = None, ) -> OutputStream: """ Output file URL 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 7bab39b6..4fa3c087 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 @@ -39,7 +39,7 @@ class AudioStream(FilterableStream): *, order: Int = Default(None),projection: Int = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, )-> AudioStream: """ 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 219656be..06de0ea2 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 @@ -34,7 +34,7 @@ def aap( *, order: Int = Default(None),projection: Int = Default(None), - extra_options: dict[str, Any] = None, + extra_options: dict[str, Value] = None, )-> AudioStream: """ 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 c57371ba..8594b6a1 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 @@ -15,7 +15,7 @@ class GlobalArgs(ABC): def global_args( self, - *,extra_options: dict[str, Any] = None, + *,extra_options: dict[str, Value] = None, ) -> GlobalStream: """ Set global options. 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 636f265b..4e9e9cf3 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 @@ -18,7 +18,7 @@ class OutputArgs(ABC): def output( self, *streams: "FilterableStream", - filename: str | Path,extra_options: dict[str, Any] = None, + filename: str | Path,extra_options: dict[str, Value] = None, ) -> OutputStream: """ Output file URL