Detect freeze frames in a file
detect_freeze_frames_in_fileDetect 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
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Analyse up to this file time, in seconds; clamped to the file's length. Must be greater than start. Default: the end of the file. | |
| path | Yes | Absolute path of the media file on this computer. | |
| start | No | Analyse from this file time (seconds from the start of the file). Default 0. | |
| noise_db | No | Difference between frames (dB) still treated as no change. Default -60. Raise towards -40 for noisy or heavily compressed footage. | |
| max_results | No | Maximum ranges to return. When there are more, the result has truncated=true and the total count. Default 500. | |
| min_duration | No | Shortest freeze to report, in seconds. Default 0.5. | |
| timeout_seconds | No | Stop ffmpeg and fail with TIMEOUT after this many seconds. Default 600. |