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

Function list_scenes_command

scenedetect/_cli/__init__.py:1165–1188  ·  view source on GitHub ↗
(
    ctx: click.Context,
    output: str | None,
    filename: str | None,
    no_output_file: bool | None,
    quiet: bool | None,
    skip_cuts: bool | None,
)

Source from the content-addressed store, hash-verified

1163)
1164@click.pass_context
1165def list_scenes_command(
1166 ctx: click.Context,
1167 output: str | None,
1168 filename: str | None,
1169 no_output_file: bool | None,
1170 quiet: bool | None,
1171 skip_cuts: bool | None,
1172):
1173 ctx = ctx.obj
1174 assert isinstance(ctx, CliContext)
1175
1176 list_scenes_args = {
1177 "col_separator": ctx.config.get_value("list-scenes", "col-separator"),
1178 "cut_format": ctx.config.get_value("list-scenes", "cut-format"),
1179 "display_scenes": ctx.config.get_value("list-scenes", "display-scenes"),
1180 "display_cuts": ctx.config.get_value("list-scenes", "display-cuts"),
1181 "no_output_file": ctx.config.get_value("list-scenes", "no-output-file", no_output_file),
1182 "filename": ctx.config.get_value("list-scenes", "filename", filename),
1183 "skip_cuts": ctx.config.get_value("list-scenes", "skip-cuts", skip_cuts),
1184 "output": ctx.config.get_value("list-scenes", "output", output),
1185 "quiet": ctx.config.get_value("list-scenes", "quiet", quiet) or ctx.quiet_mode,
1186 "row_separator": ctx.config.get_value("list-scenes", "row-separator"),
1187 }
1188 ctx.add_command(cli_commands.list_scenes, list_scenes_args)
1189
1190
1191SPLIT_VIDEO_HELP = """Split input video using ffmpeg or mkvmerge.

Callers

nothing calls this directly

Calls 2

get_valueMethod · 0.80
add_commandMethod · 0.80

Tested by

no test coverage detected