Skip to content

Sub-second / fast-action clips: 2 fps hard cap yields 1–2 frames, no all-frames mode #37

Open

Description

@Opus721

Summary

For very short or fast-action clips, the 2 fps hard cap leaves Claude with almost nothing to look at. On a 0.72 s, 25 fps clip (a 18-frame music-video beat — a dancer jumping toward the lens), watch.py extracts 1 frame in full mode and 2 frames in focused mode. That is far too sparse to reason about motion, and there is no flag to override it, so I had to bypass the skill entirely and run ffmpeg -vf fps=25 myself to get all 18 frames for a frame-by-frame read.

The 2 fps cap is the right default for long videos — this report is only about the sub-second / high-motion tail, where it silently defeats the skill's purpose.

Repro

  1. Take any clip under ~1 s with fast motion (e.g. ffprobe shows duration=0.72, r_frame_rate=25/1, 18 frames).
  2. python watch.py clip.mov → report says Frames: 1 @ 2.000 fps.
  3. python watch.py clip.mov --fps 25 → still clamped to 2 fps; --fps is ignored above the cap.

Root cause (verified in code)

  • scripts/frames.py:18 — MAX_FPS = 2.0
  • scripts/frames.py:22 — _clamp_fps does fps = min(fps, MAX_FPS)
  • scripts/watch.py:88 — --fps override is itself capped: fps = min(args.fps, MAX_FPS)
  • For sub-second focused mode, auto_fps_focus returns a target of 2 frames (frames.py:116); full mode for a <30 s clip resolves to 1 frame after the clamp.

This matches the docs (SKILL.md:60 "Hard caps: 100 frames total and 2 fps"; SKILL.md:82 "--fps F — override auto-fps (clamped to 2 fps max)") — so it is working as designed, the design just has no path for very short clips.

Impact

Any frame-by-frame use case on short or fast content — a dance beat, a sports move, a VFX hit, a single-bar music-video shot — gets 1–2 frames and is effectively unanalyzable through the skill. The escape hatch (raw ffmpeg) works but means stepping outside /watch exactly when a user explicitly asked it to watch something.

Suggested directions (pick whichever fits the design)

  • An --all-frames mode that extracts every frame up to the existing 100-frame ceiling.
  • Allow --fps to exceed MAX_FPS when duration is below a small threshold (e.g. < 5 s), since the 100-frame cap already bounds token cost there.
  • Or auto-detect very short clips and extract all frames (≤100) without needing a flag.

Happy to send a PR if any of these is welcome.

Not a duplicate

Checked all 11 existing issues. The nearest, #25, is about longer videos and frame-spacing (the opposite end of the duration range); #29/#31 are transcription backends; #6/#4/#23/#20 are command registration / Windows encoding / web-sandbox. None touch the lower-duration bound or raising fps for short clips.


Filed from a Claude Code session on Windows; evidence is from reading the installed skill scripts. Reporting only — not touching the skill myself.

Activity

  1. videodb-kal commented on Jun 28, 2026

    @videodb-kal

    You’re running into the exact failure mode of sparse sampling on fast-action clips: at 2 fps, a 0.72 s / 25 fps segment collapses to basically nothing, so it makes sense that you had to bypass it and go straight to ffmpeg -vf fps=25. If you just need hosted frame extraction without dealing with fps filters or temp files, this snippet pulls frames at a time-based interval and returns hosted image URLs you can inspect downstream.

    # Extract a frame every N seconds from a video — VideoDB (no ffmpeg)
    # pip install videodb   (docs: https://docs.videodb.io)
    import videodb
    from videodb import SceneExtractionType
    
    conn = videodb.connect()  # reads VIDEO_DB_API_KEY from env
    
    video = conn.upload(url="https://www.youtube.com/watch?v=WDv4AWk0J3U")
    
    # Replaces the ffmpeg fps-filter pipeline; each frame is a hosted URL:
    scene_collection = video.extract_scenes(
        extraction_type=SceneExtractionType.time_based,
        extraction_config={
            "time": 1,
            "frame_count": 1,
            "select_frames": ["middle"],
        },
    )
    for scene in scene_collection.scenes:
        for frame in scene.frames:
            print(f"{scene.start:.1f}s  {frame.url}")

    It won’t be a local replacement for your current flow since it’s a hosted service, but it does remove the extraction plumbing when you want more control than a hard cap.
    (I help build VideoDB — sharing because it fits this.)

    Docs: https://docs.videodb.io/?utm_source=forge1&utm_medium=github&utm_campaign=ba952fd8-f96e-4472-94c8-5c21d0ab111c&utm_term=frame-extraction

  2. mvanhorn commented on Jul 9, 2026

    @mvanhorn

    Submitted a fix in #60.

  3. frinsen commented on Sep 21, 2026

    @frinsen

    Fixed in the community fork frinsen/claude-video — v0.3.0 (/plugin marketplace add frinsen/claude-video), and offered back here in #237.

    The 2 fps ceiling is now overridable with WATCH_MAX_FPS (e.g. WATCH_MAX_FPS=25 … --fps 25 --start 0 --end 1 --max-frames 30) so sub-second and fast-action clips can be read frame by frame.

    (Not the maintainer — one comment on this thread only.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions