fix: add --video to manage_index examples, spot-verification parallel loop

This commit is contained in:
2026-07-15 15:23:23 +08:00
parent 6c67235415
commit 87eb3392df
2 changed files with 20 additions and 6 deletions
+10
View File
@@ -20,6 +20,16 @@ When verifying ASR transcript claims against actual video visuals, use this ligh
**Important:** Save frames to the video file's directory, never to `/tmp/` or other temporary paths.
**Parallel extraction:** Use a sequential `for` loop to extract multiple frames in one terminal call — each frame takes <1s so the total is still fast. Do not use shell `&` backgrounding inside a single terminal call; some terminal tools reject it.
```bash
for ts in "00:05:17" "00:14:06" "00:28:00"; do
fn="$DIR/spot_${ts//:/}.jpg"
ffmpeg -hide_banner -y -ss "$ts" -i "$VIDEO" -frames:v 1 -q:v 3 "$fn" 2>/dev/null
echo "$ts -> $fn ($(stat -c%s "$fn" 2>/dev/null) bytes)"
done
```
2. **Send frames to vision analysis with targeted questions.** For each frame, ask about the specific transcript claim:
- "The transcript says 'X' at this time. Can you see X happening?"
- "Is there a boss/enemy visible? Is combat happening?"