MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / add_command

Method add_command

scenedetect/_cli/context.py:112–117  ·  view source on GitHub ↗

Add `command` to the processing pipeline. Will be called after processing the input.

(self, command: ty.Callable, command_args: dict[str, ty.Any])

Source from the content-addressed store, hash-verified

110 self.commands: list[tuple[ty.Callable, dict[str, ty.Any]]] = []
111
112 def add_command(self, command: ty.Callable, command_args: dict[str, ty.Any]):
113 """Add `command` to the processing pipeline. Will be called after processing the input."""
114 if "output" in command_args and command_args["output"] is None:
115 command_args["output"] = self.output
116 logger.debug("Adding command: %s(%s)", command.__name__, command_args)
117 self.commands.append((command, command_args))
118
119 def add_detector(self, detector: type[SceneDetector], detector_args: dict[str, ty.Any]):
120 """Instantiate and add `detector` to the processing pipeline."""

Callers 10

add_hidden_aliasFunction · 0.80
save_html_commandFunction · 0.80
list_scenes_commandFunction · 0.80
split_video_commandFunction · 0.80
save_images_commandFunction · 0.80
save_edl_commandFunction · 0.80
save_qp_commandFunction · 0.80
save_fcp_commandFunction · 0.80
save_otio_commandFunction · 0.80
__init__.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected