cli
Class info¶
🛈 DocStrings¶
Command line interface: framesheet inspect FILE....
inspect_cmd
¶
inspect_cmd(
sources: Annotated[
list[str],
Argument(
help="SVG/HTML files, videos (mp4, webm, mov, mkv, animated gif/webp), http(s):// URLs, or - for stdin."
),
],
frames: Annotated[int, Option(--frames, -n, help="Contact-sheet tiles.")] = 12,
duration: Annotated[
float | None, Option(help="Cycle length in seconds (default: detected).")
] = None,
at: Annotated[
float | None,
Option(help="Time (s) of the full-resolution frame (default: 0 / range start)."),
] = None,
size: Annotated[
str | None, Option(help="Viewport WxH (default: SVG size or 1280x720).")
] = None,
scale: Annotated[float | None, Option(help="Device scale factor.")] = None,
out: Annotated[
Path | None, Option(--out, -o, help="Output dir (default: new temp dir).")
] = None,
tile: Annotated[
int | None, Option(help="Longest side of a sheet tile in px (default: auto).")
] = None,
columns: Annotated[int | None, Option(help="Sheet columns.")] = None,
keep_frames: Annotated[bool, Option(help="Also write every frame to frames/.")] = False,
dark: Annotated[bool, Option(help="Emulate prefers-color-scheme: dark.")] = False,
as_json: Annotated[bool, Option(--json, help="Print only the JSON report.")] = False,
heat_frames: Annotated[
int, Option(help="Extra pixel-only samples (heatmap; videos: pacing checks).")
] = 48,
every: Annotated[
float | None, Option(help="Video: one tile every SECONDS (instead of -n).")
] = None,
times: Annotated[
str | None, Option(help="Video: tile times, e.g. 1.2,3.4 (or 'marks': from --marks).")
] = None,
start: Annotated[float | None, Option(help="Video: range start (s).")] = None,
end: Annotated[float | None, Option(help="Video: range end (s).")] = None,
marks: Annotated[
Path | None, Option(help="Video: marks.json to draw (points, regions, spans).")
] = None,
static_stretch: Annotated[
float, Option(help="Video: seconds without change reported as dead time.")
] = 2.0,
channel: Annotated[
str | None, Option(help="Browser channel, e.g. chrome (H.264 decoding).")
] = None,
) -> None
Render inputs at evenly spaced times and check them.
Writes full.png, sheet.png, heatmap.png and report.json per input and prints a summary. Exits 1 if any error-level finding was reported.
Source code in src/framesheet/cli.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | |