Skip to main content
Glama

Detect freeze frames in a file

detect_freeze_frames_in_file
Read-onlyIdempotent

Detect frozen or unchanging video frames in a media file using ffmpeg, returning each freeze range with start, end, and duration. Use it to find held stills and stuck-encoder artifacts before editing.

Instructions

Find the parts of a video file where the picture does not change (ffmpeg freezedetect): frozen frames, held stills, stuck encoders. Returns frozen ranges as {start, end, duration} in file time (seconds from the start of the file), frozen_count and frozen_seconds. A black or otherwise static stretch also counts as frozen; use detect_black_frames_in_file to tell them apart. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "detect_freeze_frames_in_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoAnalyse up to this file time, in seconds; clamped to the file's length. Must be greater than start. Default: the end of the file.
pathYesAbsolute path of the media file on this computer.
startNoAnalyse from this file time (seconds from the start of the file). Default 0.
noise_dbNoDifference between frames (dB) still treated as no change. Default -60. Raise towards -40 for noisy or heavily compressed footage.
max_resultsNoMaximum ranges to return. When there are more, the result has truncated=true and the total count. Default 500.
min_durationNoShortest freeze to report, in seconds. Default 0.5.
timeout_secondsNoStop ffmpeg and fail with TIMEOUT after this many seconds. Default 600.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnly, idempotent, non-destructive), it discloses the external dependency (ffmpeg and ffprobe must be installed, see check_ffmpeg), the specific failure code FFMPEG_NOT_FOUND, and the time base for results (seconds from the start of the file, not timeline time). It also describes the return payload shape, which annotations alone would not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and output shape are front-loaded, followed by the sibling disambiguation and prerequisites, in a tight five-sentence block with no filler. It is dense near the point of being run-on (the semicolon-chained caveats about black frames and timeline scope), but every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With seven parameters but no output schema, the description compensates by naming the returned fields (frozen ranges as {start, end, duration}, frozen_count, frozen_seconds) and defining the time unit. Combined with the prerequisite and error-code disclosure, an agent has everything needed to call this correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so start/end/noise_db/min_duration/max_results/timeout_seconds are already fully documented in the schema, and the baseline of 3 applies. The description adds only the 'file time (seconds from the start of the file)' framing, which mildly reinforces the start/end semantics but does not explain tuning tradeoffs such as noise_db or min_duration.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Find the parts of a video file where the picture does not change', names the detector implementation (ffmpeg freezedetect), and enumerates the phenomena it covers (frozen frames, held stills, stuck encoders). It explicitly separates itself from the sibling detect_black_frames_in_file, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: a static black stretch 'also counts as frozen; use detect_black_frames_in_file to tell them apart,' which is a concrete when-to-prefer-the-alternative rule. It also scopes the tool to files on disk rather than the timeline ('Premiere Pro is not needed'), pre-empting a wrong-tool selection among the sequence/timeline siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools