Skip to content

Commit

Permalink
fix #412 remove kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia committed Jan 4, 2025
1 parent 0c4152a commit 7b3f899
Show file tree
Hide file tree
Showing 12 changed files with 817 additions and 2,232 deletions.
3 changes: 0 additions & 3 deletions src/ffmpeg/dag/global_runnable/global_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def global_args(
qphist: Func = None,
vsync: Func = None,
extra_options: dict[str, Any] = None,
**kwargs: Any,
) -> GlobalStream:
"""
Set global options.
Expand Down Expand Up @@ -116,7 +115,6 @@ def global_args(
qphist: deprecated, does nothing
vsync: set video sync method globally; deprecated, use -fps_mode
extra_options: Additional options
**kwargs: Additional options
Returns:
GlobalStream: GlobalStream instance
Expand Down Expand Up @@ -176,6 +174,5 @@ def global_args(
if v is not None
}
| (extra_options or {})
| kwargs
),
).stream()
4 changes: 1 addition & 3 deletions src/ffmpeg/dag/io/_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def input(
dn: Boolean = None,
top: Int = None,
extra_options: dict[str, Any] = None,
**kwargs: Any
) -> AVStream:
"""
Input file URL (ffmpeg ``-i`` option)
Expand Down Expand Up @@ -125,7 +124,6 @@ def input(
dn: disable data
top: deprecated, use the setfield video filter
extra_options: ffmpeg's input file options
**kwargs: ffmpeg's input file options
Returns:
Input stream
Expand Down Expand Up @@ -196,4 +194,4 @@ def input(
if v is not None
}

return InputNode(filename=str(filename), kwargs=tuple((options | (extra_options or {}) | kwargs).items())).stream()
return InputNode(filename=str(filename), kwargs=tuple((options | (extra_options or {})).items())).stream()
4 changes: 1 addition & 3 deletions src/ffmpeg/dag/io/_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def output(
dn: Boolean = None,
top: Int = None,
extra_options: dict[str, Any] = None,
**kwargs: Any
) -> OutputStream:
"""
Output file URL
Expand Down Expand Up @@ -210,7 +209,6 @@ def output(
dn: disable data
top: deprecated, use the setfield video filter
extra_options: the arguments for the output
**kwargs: the arguments for the output
Returns:
the output stream
Expand Down Expand Up @@ -318,5 +316,5 @@ def output(
}

return OutputNode(
inputs=streams, filename=str(filename), kwargs=tuple((options | (extra_options or {}) | kwargs).items())
inputs=streams, filename=str(filename), kwargs=tuple((options | (extra_options or {})).items())
).stream()
4 changes: 1 addition & 3 deletions src/ffmpeg/dag/io/output_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def output(
dn: Boolean = None,
top: Int = None,
extra_options: dict[str, Any] = None,
**kwargs: Any,
) -> OutputStream:
"""
Output file URL
Expand Down Expand Up @@ -219,7 +218,6 @@ def output(
dn: disable data
top: deprecated, use the setfield video filter
extra_options: the arguments for the output
**kwargs: the arguments for the output
Returns:
the output stream
Expand Down Expand Up @@ -326,4 +324,4 @@ def output(
if v is not None
}

return self._output_node(*streams, filename=filename, **options, **(extra_options or {}), **kwargs).stream()
return self._output_node(*streams, filename=filename, **options, **(extra_options or {})).stream()
Loading

0 comments on commit 7b3f899

Please sign in to comment.