Skip to content

Commit f1057ca

Browse files
committed
[docs] Fix incorrect short-form specification (#493)
1 parent 09f2b64 commit f1057ca

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

docs/cli.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Options
6767

6868
.. option:: -m TIMECODE, --min-scene-len TIMECODE
6969

70-
Minimum length of any scene. TIMECODE can be specified as number of frames (:option:`-m=10 <-m>`), time in seconds (:option:`-m=2.5 <-m>`), or timecode (:option:`-m=00:02:53.633 <-m>`).
70+
Minimum length of any scene. TIMECODE can be specified as number of frames (:option:`-m 10 <-m>`), time in seconds (:option:`-m 2.5 <-m>`), or timecode (:option:`-m 00:02:53.633 <-m>`).
7171

7272
Default: ``0.6s``
7373

@@ -91,11 +91,11 @@ Options
9191

9292
.. option:: -d N, --downscale N
9393

94-
Integer factor to downscale video by before processing. If unset, value is selected based on resolution. Set :option:`-d=1 <-d>` to disable downscaling.
94+
Integer factor to downscale video by before processing. If unset, value is selected based on resolution. Set :option:`-d 1 <-d>` to disable downscaling.
9595

9696
.. option:: -fs N, --frame-skip N
9797

98-
Skip N frames during processing. Reduces processing speed at expense of accuracy. :option:`-fs=1 <-fs>` skips every other frame processing 50% of the video, :option:`-fs=2 <-fs>` processes 33% of the video frames, :option:`-fs=3 <-fs>` processes 25%, etc...
98+
Skip N frames during processing. Reduces processing speed at expense of accuracy. :option:`-fs 1 <-fs>` skips every other frame processing 50% of the video, :option:`-fs 2 <-fs>` processes 33% of the video frames, :option:`-fs 3 <-fs>` processes 25%, etc...
9999

100100
Default: ``0``
101101

@@ -208,7 +208,7 @@ Options
208208

209209
.. option:: -m TIMECODE, --min-scene-len TIMECODE
210210

211-
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (:option:`-m=100 <-m>`), in seconds with `s` suffix (:option:`-m=3.5s <-m>`), or timecode (:option:`-m=00:01:52.778 <-m>`).
211+
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (:option:`-m 100 <-m>`), in seconds with `s` suffix (:option:`-m 3.5s <-m>`), or timecode (:option:`-m 00:01:52.778 <-m>`).
212212

213213

214214
.. _command-detect-content:
@@ -263,7 +263,7 @@ Options
263263

264264
.. option:: -l, --luma-only
265265

266-
Only use luma (brightness) channel. Useful for greyscale videos. Equivalent to setting -w="0 0 1 0".
266+
Only use luma (brightness) channel. Useful for greyscale videos. Equivalent to setting -w 0 0 1 0.
267267

268268
.. option:: -k N, --kernel-size N
269269

@@ -424,7 +424,7 @@ Options
424424

425425
.. option:: -m TIMECODE, --min-scene-len TIMECODE
426426

427-
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (:option:`-m=100 <-m>`), in seconds with `s` suffix (:option:`-m=3.5s <-m>`), or timecode (:option:`-m=00:01:52.778 <-m>`).
427+
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (:option:`-m 100 <-m>`), in seconds with `s` suffix (:option:`-m 3.5s <-m>`), or timecode (:option:`-m 00:01:52.778 <-m>`).
428428

429429

430430
************************************************************************
@@ -506,7 +506,7 @@ Options
506506

507507
.. option:: -f NAME, --filename NAME
508508

509-
Filename format to use for the scene list CSV file. You can use the $VIDEO_NAME macro in the file name. Note that you may have to wrap the name using single quotes or use escape characters (e.g. :option:`-f=\$VIDEO_NAME-Scenes.csv <-f>`).
509+
Filename format to use for the scene list CSV file. You can use the $VIDEO_NAME macro in the file name. Note that you may have to wrap the name using single quotes or use escape characters (e.g. :option:`-f \$VIDEO_NAME-Scenes.csv <-f>`).
510510

511511
Default: ``$VIDEO_NAME-Scenes.csv``
512512

@@ -590,13 +590,13 @@ Options
590590

591591
.. option:: -f NAME, --filename NAME
592592

593-
Filename format *without* extension to use when saving images. You can use the $VIDEO_NAME, $SCENE_NUMBER, $IMAGE_NUMBER, and $FRAME_NUMBER macros in the file name. You may have to use escape characters (e.g. :option:`-f=\$SCENE_NUMBER-Image-\$IMAGE_NUMBER <-f>`) or single quotes.
593+
Filename format *without* extension to use when saving images. You can use the $VIDEO_NAME, $SCENE_NUMBER, $IMAGE_NUMBER, and $FRAME_NUMBER macros in the file name. You may have to use escape characters (e.g. :option:`-f \$SCENE_NUMBER-Image-\$IMAGE_NUMBER <-f>`) or single quotes.
594594

595595
Default: ``$VIDEO_NAME-Scene-$SCENE_NUMBER-$IMAGE_NUMBER``
596596

597597
.. option:: -n N, --num-images N
598598

599-
Number of images to generate per scene. Will always include start/end frame, unless :option:`-n=1 <-n>`, in which case the image will be the frame at the mid-point of the scene.
599+
Number of images to generate per scene. Will always include start/end frame, unless :option:`-n 1 <-n>`, in which case the image will be the frame at the mid-point of the scene.
600600

601601
Default: ``3``
602602

@@ -713,7 +713,7 @@ Options
713713

714714
.. option:: -f NAME, --filename NAME
715715

716-
File name format to use when saving videos, with or without extension. You can use $VIDEO_NAME and $SCENE_NUMBER macros in the filename. You may have to wrap the format in single quotes or use escape characters to avoid variable expansion (e.g. :option:`-f=\$VIDEO_NAME-Scene-\$SCENE_NUMBER <-f>`).
716+
File name format to use when saving videos, with or without extension. You can use $VIDEO_NAME and $SCENE_NUMBER macros in the filename. You may have to wrap the format in single quotes or use escape characters to avoid variable expansion (e.g. :option:`-f \$VIDEO_NAME-Scene-\$SCENE_NUMBER <-f>`).
717717

718718
Default: ``$VIDEO_NAME-Scene-$SCENE_NUMBER``
719719

scenedetect/_cli/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def print_command_help(ctx: click.Context, command: click.Command):
228228
metavar="TIMECODE",
229229
type=click.STRING,
230230
default=None,
231-
help="Minimum length of any scene. TIMECODE can be specified as number of frames (-m=10), time in seconds (-m=2.5), or timecode (-m=00:02:53.633).%s"
231+
help="Minimum length of any scene. TIMECODE can be specified as number of frames (-m 10), time in seconds (-m 2.5), or timecode (-m 00:02:53.633).%s"
232232
% USER_CONFIG.get_help_string("global", "min-scene-len"),
233233
)
234234
@click.option(
@@ -270,7 +270,7 @@ def print_command_help(ctx: click.Context, command: click.Command):
270270
metavar="N",
271271
type=click.INT,
272272
default=None,
273-
help="Integer factor to downscale video by before processing. If unset, value is selected based on resolution. Set -d=1 to disable downscaling.%s"
273+
help="Integer factor to downscale video by before processing. If unset, value is selected based on resolution. Set -d 1 to disable downscaling.%s"
274274
% (USER_CONFIG.get_help_string("global", "downscale", show_default=False)),
275275
)
276276
@click.option(
@@ -279,7 +279,7 @@ def print_command_help(ctx: click.Context, command: click.Command):
279279
metavar="N",
280280
type=click.INT,
281281
default=None,
282-
help="Skip N frames during processing. Reduces processing speed at expense of accuracy. -fs=1 skips every other frame processing 50%% of the video, -fs=2 processes 33%% of the video frames, -fs=3 processes 25%%, etc... %s"
282+
help="Skip N frames during processing. Reduces processing speed at expense of accuracy. -fs 1 skips every other frame processing 50%% of the video, -fs 2 processes 33%% of the video frames, -fs 3 processes 25%%, etc... %s"
283283
% USER_CONFIG.get_help_string("global", "frame-skip"),
284284
)
285285
@click.option(
@@ -515,7 +515,7 @@ def time_command(
515515
"-l",
516516
is_flag=True,
517517
flag_value=True,
518-
help='Only use luma (brightness) channel. Useful for greyscale videos. Equivalent to setting -w="0 0 1 0".%s'
518+
help="Only use luma (brightness) channel. Useful for greyscale videos. Equivalent to setting -w 0 0 1 0.%s"
519519
% (USER_CONFIG.get_help_string("detect-content", "luma-only")),
520520
)
521521
@click.option(
@@ -656,7 +656,7 @@ def detect_content_command(
656656
metavar="TIMECODE",
657657
type=click.STRING,
658658
default=None,
659-
help="Minimum length of any scene. Overrides global option -m/--min-scene-len. TIMECODE can be specified in frames (-m=100), in seconds with `s` suffix (-m=3.5s), or timecode (-m=00:01:52.778).%s"
659+
help="Minimum length of any scene. Overrides global option -m/--min-scene-len. TIMECODE can be specified in frames (-m 100), in seconds with `s` suffix (-m 3.5s), or timecode (-m 00:01:52.778).%s"
660660
% (
661661
""
662662
if USER_CONFIG.is_default("detect-adaptive", "min-scene-len")
@@ -741,7 +741,7 @@ def detect_adaptive_command(
741741
metavar="TIMECODE",
742742
type=click.STRING,
743743
default=None,
744-
help="Minimum length of any scene. Overrides global option -m/--min-scene-len. TIMECODE can be specified in frames (-m=100), in seconds with `s` suffix (-m=3.5s), or timecode (-m=00:01:52.778).%s"
744+
help="Minimum length of any scene. Overrides global option -m/--min-scene-len. TIMECODE can be specified in frames (-m 100), in seconds with `s` suffix (-m 3.5s), or timecode (-m 00:01:52.778).%s"
745745
% (
746746
""
747747
if USER_CONFIG.is_default("detect-threshold", "min-scene-len")
@@ -1079,7 +1079,7 @@ def export_html_command(
10791079
metavar="NAME",
10801080
default="$VIDEO_NAME-Scenes.csv",
10811081
type=click.STRING,
1082-
help="Filename format to use for the scene list CSV file. You can use the $VIDEO_NAME macro in the file name. Note that you may have to wrap the name using single quotes or use escape characters (e.g. -f=\\$VIDEO_NAME-Scenes.csv).%s"
1082+
help="Filename format to use for the scene list CSV file. You can use the $VIDEO_NAME macro in the file name. Note that you may have to wrap the name using single quotes or use escape characters (e.g. -f \\$VIDEO_NAME-Scenes.csv).%s"
10831083
% (USER_CONFIG.get_help_string("list-scenes", "filename")),
10841084
)
10851085
@click.option(
@@ -1171,7 +1171,7 @@ def list_scenes_command(
11711171
metavar="NAME",
11721172
default=None,
11731173
type=click.STRING,
1174-
help="File name format to use when saving videos, with or without extension. You can use $VIDEO_NAME and $SCENE_NUMBER macros in the filename. You may have to wrap the format in single quotes or use escape characters to avoid variable expansion (e.g. -f=\\$VIDEO_NAME-Scene-\\$SCENE_NUMBER).%s"
1174+
help="File name format to use when saving videos, with or without extension. You can use $VIDEO_NAME and $SCENE_NUMBER macros in the filename. You may have to wrap the format in single quotes or use escape characters to avoid variable expansion (e.g. -f \\$VIDEO_NAME-Scene-\\$SCENE_NUMBER).%s"
11751175
% (USER_CONFIG.get_help_string("split-video", "filename")),
11761176
)
11771177
@click.option(
@@ -1348,7 +1348,7 @@ def split_video_command(
13481348
metavar="NAME",
13491349
default=None,
13501350
type=click.STRING,
1351-
help="Filename format *without* extension to use when saving images. You can use the $VIDEO_NAME, $SCENE_NUMBER, $IMAGE_NUMBER, and $FRAME_NUMBER macros in the file name. You may have to use escape characters (e.g. -f=\\$SCENE_NUMBER-Image-\\$IMAGE_NUMBER) or single quotes.%s"
1351+
help="Filename format *without* extension to use when saving images. You can use the $VIDEO_NAME, $SCENE_NUMBER, $IMAGE_NUMBER, and $FRAME_NUMBER macros in the file name. You may have to use escape characters (e.g. -f \\$SCENE_NUMBER-Image-\\$IMAGE_NUMBER) or single quotes.%s"
13521352
% (USER_CONFIG.get_help_string("save-images", "filename")),
13531353
)
13541354
@click.option(
@@ -1357,7 +1357,7 @@ def split_video_command(
13571357
metavar="N",
13581358
default=None,
13591359
type=click.INT,
1360-
help="Number of images to generate per scene. Will always include start/end frame, unless -n=1, in which case the image will be the frame at the mid-point of the scene.%s"
1360+
help="Number of images to generate per scene. Will always include start/end frame, unless -n 1, in which case the image will be the frame at the mid-point of the scene.%s"
13611361
% (USER_CONFIG.get_help_string("save-images", "num-images")),
13621362
)
13631363
@click.option(

0 commit comments

Comments
 (0)