---
url: https://superduperai.co/library/find-cuts-in-a-video-with-ffmpeg-scene-filter/
title: Find the cuts in a video with ffmpeg's scene filter
description: One ffmpeg command that lists the timestamps where the picture changes, how to set the threshold, and why phone footage often has no cuts to find.
category: editing
platforms: [any]
works_with: [ffmpeg, claude-code, manual]
tags: [ffmpeg, scene-detection, shot-detection, cuts, timestamps]
difficulty: beginner
verified: false
created: 2026-11-10
source: https://ffmpeg.org/ffmpeg-filters.html
---

# Find the cuts in a video with ffmpeg's scene filter

One ffmpeg command that lists the timestamps where the picture changes, how to set the threshold, and why phone footage often has no cuts to find.

## Prompt

```text
# prints one pts_time per detected cut, in seconds
ffmpeg -hide_banner -i {input.mp4} -vf "select='gt(scene,0.3)',showinfo" -an -f null - 2>&1 | grep -o "pts_time:[0-9.]*"
```

## Steps

1. Run it on an already edited video, or on a clip you suspect has several shots. Each line is the time in seconds of the first frame of a new shot.
2. Start at 0.3. Too many hits from camera flashes or fast pans: raise it to 0.4 or 0.5. Missed cuts, above all fades and dissolves: lower it to 0.2 or 0.1.
3. Check every hit by eye: open the video at that time, or grab the frames around it with ffmpeg -ss {seconds} -i {input.mp4} -frames:v 1 frame.png.
4. For a folder of phone clips, skip detection inside each file. A phone clip is usually one continuous shot, so the clip boundaries are your shots.

## Example

On a test file made of three flat colour blocks of 3 seconds each (red, blue, green), the command printed pts_time:3 and pts_time:6, both with a scene score of 0.4. A real film gives more hits than cuts at 0.3; the by-eye check in step 3 is part of the method.

## Tips

- The score is a frame-to-frame difference from 0 to 1, so a hard cut is exact to the frame. A slow dissolve changes little per frame and scores low on each one.
- On your own phone footage expect few or no hits. It is shot in long takes, and a detector that returns nothing there is correct, not broken.
- Want it without a terminal and without an upload? The scene detector at life2film.com/tools runs in a browser tab.
- Cut times are the input for the cutaway rules: keep b-roll inside one shot, and never cover a shot where lips move.

## Read more

- [Scene detector (runs in the browser)](https://life2film.com/tools/scene-detector/) (life2film.com): Drop in a video, get the cut points. Nothing is uploaded.
- [life2film-engine on npm](https://www.npmjs.com/package/life2film-engine) (npm): The analysis core as WebAssembly: beats, downbeats, shot boundaries, frame scores. Free for noncommercial use.
- [A cut detector found zero cuts in a day at the beach](https://rustman.org/wiki/shot-detection-phone-footage-no-cuts/) (rustman.org): Sixteen classical detectors and two learned models on hand-labelled phone footage: why a day of phone video has few cuts to find.

## Works with

- ffmpeg: A terminal command you run yourself.
- Claude Code: Runs as a skill or a prompt in the terminal; can read your files and write the result.
- By hand: No tool needed: a checklist or a technique.
