typed-ffmpeg-compatible 2.1.0a0__py3-none-any.whl → 2.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,6 +63,7 @@ class GlobalArgs(ABC):
63
63
  adrift_threshold: Func = None,
64
64
  qphist: Func = None,
65
65
  vsync: Func = None,
66
+ extra_options: dict[str, Any] = None,
66
67
  **kwargs: Any,
67
68
  ) -> GlobalStream:
68
69
  """
@@ -114,6 +115,7 @@ class GlobalArgs(ABC):
114
115
  adrift_threshold: deprecated, does nothing
115
116
  qphist: deprecated, does nothing
116
117
  vsync: set video sync method globally; deprecated, use -fps_mode
118
+ extra_options: Additional options
117
119
  **kwargs: Additional options
118
120
 
119
121
  Returns:
@@ -173,6 +175,7 @@ class GlobalArgs(ABC):
173
175
  }.items()
174
176
  if v is not None
175
177
  }
178
+ | (extra_options or {})
176
179
  | kwargs
177
180
  ),
178
181
  ).stream()
@@ -64,6 +64,7 @@ def input(
64
64
  dcodec: String = None,
65
65
  dn: Boolean = None,
66
66
  top: Int = None,
67
+ extra_options: dict[str, Any] = None,
67
68
  **kwargs: Any
68
69
  ) -> AVStream:
69
70
  """
@@ -123,6 +124,7 @@ def input(
123
124
  dcodec: alias for -c:d (select encoder/decoder for data streams)
124
125
  dn: disable data
125
126
  top: deprecated, use the setfield video filter
127
+ extra_options: ffmpeg's input file options
126
128
  **kwargs: ffmpeg's input file options
127
129
 
128
130
  Returns:
@@ -194,4 +196,4 @@ def input(
194
196
  if v is not None
195
197
  }
196
198
 
197
- return InputNode(filename=str(filename), kwargs=tuple((options | kwargs).items())).stream()
199
+ return InputNode(filename=str(filename), kwargs=tuple((options | (extra_options or {}) | kwargs).items())).stream()
@@ -105,6 +105,7 @@ def output(
105
105
  dcodec: String = None,
106
106
  dn: Boolean = None,
107
107
  top: Int = None,
108
+ extra_options: dict[str, Any] = None,
108
109
  **kwargs: Any
109
110
  ) -> OutputStream:
110
111
  """
@@ -208,6 +209,7 @@ def output(
208
209
  dcodec: alias for -c:d (select encoder/decoder for data streams)
209
210
  dn: disable data
210
211
  top: deprecated, use the setfield video filter
212
+ extra_options: the arguments for the output
211
213
  **kwargs: the arguments for the output
212
214
 
213
215
  Returns:
@@ -315,4 +317,6 @@ def output(
315
317
  if v is not None
316
318
  }
317
319
 
318
- return OutputNode(inputs=streams, filename=str(filename), kwargs=tuple((options | kwargs).items())).stream()
320
+ return OutputNode(
321
+ inputs=streams, filename=str(filename), kwargs=tuple((options | (extra_options or {}) | kwargs).items())
322
+ ).stream()
@@ -114,6 +114,7 @@ class OutputArgs(ABC):
114
114
  dcodec: String = None,
115
115
  dn: Boolean = None,
116
116
  top: Int = None,
117
+ extra_options: dict[str, Any] = None,
117
118
  **kwargs: Any,
118
119
  ) -> OutputStream:
119
120
  """
@@ -217,6 +218,7 @@ class OutputArgs(ABC):
217
218
  dcodec: alias for -c:d (select encoder/decoder for data streams)
218
219
  dn: disable data
219
220
  top: deprecated, use the setfield video filter
221
+ extra_options: the arguments for the output
220
222
  **kwargs: the arguments for the output
221
223
 
222
224
  Returns:
@@ -324,4 +326,4 @@ class OutputArgs(ABC):
324
326
  if v is not None
325
327
  }
326
328
 
327
- return self._output_node(*streams, filename=filename, **options, **kwargs).stream()
329
+ return self._output_node(*streams, filename=filename, **options, **(extra_options or {}), **kwargs).stream()