@lumy-pack/scene-sieve 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/dist/cli.mjs +708 -86
- package/dist/index.cjs +382 -4
- package/dist/index.mjs +382 -4
- package/dist/pipeline-worker.mjs +382 -4
- package/package.json +3 -2
- package/dist/cli.d.ts +0 -1
- package/dist/commands/Sieve.d.ts +0 -15
- package/dist/components/PhaseStep.d.ts +0 -14
- package/dist/components/ProgressBar.d.ts +0 -7
- package/dist/constants.d.ts +0 -30
- package/dist/core/analyzer.d.ts +0 -62
- package/dist/core/dbscan.d.ts +0 -10
- package/dist/core/extractor.d.ts +0 -7
- package/dist/core/index.d.ts +0 -8
- package/dist/core/input-resolver.d.ts +0 -13
- package/dist/core/orchestrator.d.ts +0 -2
- package/dist/core/pipeline-worker.d.ts +0 -1
- package/dist/core/pruner.d.ts +0 -61
- package/dist/core/run-in-worker.d.ts +0 -9
- package/dist/core/workspace.d.ts +0 -24
- package/dist/index.d.ts +0 -2
- package/dist/types/index.d.ts +0 -107
- package/dist/utils/logger.d.ts +0 -8
- package/dist/utils/math.d.ts +0 -27
- package/dist/utils/min-heap.d.ts +0 -16
- package/dist/utils/paths.d.ts +0 -18
package/README.md
CHANGED
|
@@ -99,6 +99,99 @@ scene-sieve <input> [options]
|
|
|
99
99
|
| Video | `.mp4`, `.mov`, `.avi`, `.mkv`, `.webm` |
|
|
100
100
|
| Animation | `.gif` |
|
|
101
101
|
|
|
102
|
+
### Parameter Tuning Guide
|
|
103
|
+
|
|
104
|
+
Not sure where to start? Here's how each parameter affects the output, based on real benchmarks with a ~19s screen recording (MOV) and a GIF animation.
|
|
105
|
+
|
|
106
|
+
#### `--count` — How many frames to keep
|
|
107
|
+
|
|
108
|
+
| Setting | Extracted | Selected | Notes |
|
|
109
|
+
|---------|-----------|----------|-------|
|
|
110
|
+
| `-n 3` | 90 | 3 | First and last frames are always preserved (boundary protection) |
|
|
111
|
+
| `-n 10` | 90 | 10 | Good for short summaries |
|
|
112
|
+
| `-n 20` (default) | 90 | 20 | Balanced for most videos |
|
|
113
|
+
| `-n 50` | 90 | 22 | Only 22 frames passed the score threshold — count above actual scenes has no effect |
|
|
114
|
+
|
|
115
|
+
#### `--threshold` — Minimum score to keep a frame
|
|
116
|
+
|
|
117
|
+
Higher values = stricter filtering = fewer frames.
|
|
118
|
+
|
|
119
|
+
| Setting | Selected | Notes |
|
|
120
|
+
|---------|----------|-------|
|
|
121
|
+
| `-t 0.1` | 20 | Very permissive — most scene changes pass |
|
|
122
|
+
| `-t 0.3` | 20 | Still permissive for screen recordings |
|
|
123
|
+
| `-t 0.5` (default) | 20 | Capped by the default count of 20 |
|
|
124
|
+
| `-t 0.7` | 19 | Starts filtering subtle changes |
|
|
125
|
+
| `-t 0.9` | 12 | Only major scene transitions survive |
|
|
126
|
+
|
|
127
|
+
> **Tip**: Use `-t` alone for "give me everything important". Combine with `-n` to set an upper bound (e.g., `-t 0.3 -n 10`).
|
|
128
|
+
|
|
129
|
+
#### `--fps` and `--max-frames` — Extraction density
|
|
130
|
+
|
|
131
|
+
These control how many frames are pulled from the video before analysis. More frames = more precision but longer processing.
|
|
132
|
+
|
|
133
|
+
| Setting | Extracted | Selected | Time |
|
|
134
|
+
|---------|-----------|----------|------|
|
|
135
|
+
| `--fps 1` | 18 | 6 | ~5s |
|
|
136
|
+
| `--fps 5` (default) | 90 | 20 | ~25s |
|
|
137
|
+
| `--fps 10` | 180 | 20 | ~47s |
|
|
138
|
+
| `-mf 50` | 47 | 13 | ~13s |
|
|
139
|
+
|
|
140
|
+
> **Tip**: For quick previews, `--fps 1` is 5x faster. For frame-accurate analysis, `--fps 10` captures finer transitions.
|
|
141
|
+
|
|
142
|
+
#### `--scale` — Analysis resolution
|
|
143
|
+
|
|
144
|
+
Controls the resolution used for vision analysis (not output resolution). Lower = faster but less sensitive.
|
|
145
|
+
|
|
146
|
+
| Setting | Selected | Time | Output Size |
|
|
147
|
+
|---------|----------|------|-------------|
|
|
148
|
+
| `-s 360` | 7 | ~6s | 72 KB |
|
|
149
|
+
| `-s 720` (default) | 20 | ~25s | 634 KB |
|
|
150
|
+
| `-s 1080` | 20 | ~54s | 1,172 KB |
|
|
151
|
+
|
|
152
|
+
> **Tip**: `360` is good for quick scans. `720` provides the best speed/quality balance. `1080` is only needed when detecting very subtle UI changes.
|
|
153
|
+
|
|
154
|
+
#### `--iou-threshold` and `--anim-threshold` — Animation sensitivity
|
|
155
|
+
|
|
156
|
+
These control how aggressively repeating animations (spinners, blinking cursors) are detected and suppressed.
|
|
157
|
+
|
|
158
|
+
| Setting | Animations Detected | Notes |
|
|
159
|
+
|---------|-------------------|-------|
|
|
160
|
+
| `-it 0.5 -at 3` | 7 (MOV), 4 (GIF) | Sensitive — catches most repeating motion |
|
|
161
|
+
| `-it 0.9 -at 5` (default) | 0 | Conservative — only obvious loops |
|
|
162
|
+
| `-it 0.95 -at 10` | 0 | Very conservative |
|
|
163
|
+
|
|
164
|
+
> **Tip**: If your video has loading spinners or repeated UI animations, try `-it 0.5 -at 3` to suppress them.
|
|
165
|
+
|
|
166
|
+
#### `--quality` — Output JPEG quality
|
|
167
|
+
|
|
168
|
+
Only affects file size, **not** scene detection. The same frames are selected regardless of quality.
|
|
169
|
+
|
|
170
|
+
| Setting | File Size (5 frames) |
|
|
171
|
+
|---------|---------------------|
|
|
172
|
+
| `-q 30` | 62 KB |
|
|
173
|
+
| `-q 80` (default) | 151 KB |
|
|
174
|
+
| `-q 100` | 407 KB |
|
|
175
|
+
|
|
176
|
+
### Recommended Presets
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Quick preview — fast, rough selection
|
|
180
|
+
scene-sieve input.mp4 --fps 1 -s 360 -n 10
|
|
181
|
+
|
|
182
|
+
# Balanced (default) — good for most use cases
|
|
183
|
+
scene-sieve input.mp4
|
|
184
|
+
|
|
185
|
+
# High precision — catches subtle transitions
|
|
186
|
+
scene-sieve input.mp4 --fps 10 -s 1080 -t 0.3
|
|
187
|
+
|
|
188
|
+
# UI recording — suppress animations, keep key states
|
|
189
|
+
scene-sieve recording.mov -it 0.5 -at 3 -t 0.3 -n 15
|
|
190
|
+
|
|
191
|
+
# Minimal summary — just the major scenes
|
|
192
|
+
scene-sieve input.mp4 -t 0.9 -n 5
|
|
193
|
+
```
|
|
194
|
+
|
|
102
195
|
### Examples
|
|
103
196
|
|
|
104
197
|
```bash
|