1.  [](/)
2.  [Diagrams](/diagrams)
3.  Scene Segmentation: How a Video Becomes Searchable Scenes

[Back to Diagrams](/diagrams)Video Understanding

# Scene Segmentation: How a Video Becomes Searchable Scenes

A raw video has no scenes. Two levels of boundary detection turn 108,000 frames an hour into a handful of searchable segments.

![Scene segmentation turns a continuous video into searchable segments in two levels. First, shot boundary detection compares consecutive frames: a hard cut spikes a histogram difference (over 1000 fps on CPU), while dissolves and fades spread the change across many frames, so adaptive detectors flag a boundary when the score beats a rolling local mean by 2 to 3 sigma. Second, shots group into scenes, where a shot is one continuous camera take and a scene is a semantic unit that can span many shots. Cleanup rules merge segments under 2 seconds into their nearest neighbor and split segments over 60 seconds at audio silence. The scene becomes the retrieval unit: one embedding per scene instead of per frame, results that carry start and end timestamps, and storage down 10 to 100x.](/diagrams/scene-segmentation.webp)Full screen

A raw video has no scenes. Two levels of boundary detection turn 108,000 frames an hour into a handful of searchable segments.

A raw video file has no scenes. It is a continuous stream of pixels and audio samples, 108,000 frames per hour at 30 fps, with no natural boundaries until something draws them. You cannot run search on that directly: embedding every frame is wasteful and redundant, because neighbors inside a shot are nearly identical.

So the pipeline draws boundaries in two levels. First, shot boundary detection compares consecutive frames and watches the difference signal. A hard cut produces one sharp spike that a simple histogram comparison catches at over 1000 fps on a CPU. A dissolve or fade spreads the change across many frames, so no single frame pair clears a fixed threshold; adaptive detectors keep a rolling window of recent scores and flag a boundary when the current score beats the local mean by 2 to 3 sigma. Second, shots group into scenes. A shot is one continuous camera take; a scene is a semantic unit that can span many shots, like a conversation that cuts between two camera angles. Cleanup rules keep the segments useful: anything under 2 seconds merges into its more similar neighbor, anything over 60 seconds splits at audio silence.

The scene is the retrieval unit. You get one embedding per scene instead of per frame, results that carry start and end timestamps, and storage down 10 to 100x. Every downstream capability, from frame sampling to temporal grounding, assumes this step already ran.

## Where this diagram appears

*   [Guide: Video Scene Segmentation →](/guides/video-scene-segmentation)

Run this on your own data

Mixpeek turns video, images, audio, and documents in your object storage into searchable, timestamped results through one API.

[Search your own data](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=diagram_detail&utm_campaign=mvs_onramp)

## Related diagrams

[

![Object decomposition: you search inside the file, not for it. A one-hour recording.mp4 is split into scenes (visual embeddings), speech (transcript embeddings on silence and speaker turns), faces (who appeared and when), and on-screen text (OCR of slides and captions). A whole file being findable is not the same as usable: the thing you need is a moment inside it, like 23,41 where the renewal number is spoken while the pricing slide is on screen. The same move works on video, PDFs, and audio: one file becomes dozens of small, independently searchable documents.](/diagrams/foundations/decomposition.webp)

You search inside the file, not for it



](/diagrams/decomposition)[

![Feature extraction turns raw pixels into searchable signals: one video frame becomes a structured row, face, scene, spoken words (transcript), on-screen text (OCR), and a visual embedding. Every question you later ask the video is answered from these extracted signals, not from the raw pixels; if a signal was never extracted, nothing downstream can search it.](/diagrams/foundations/feature-extraction.webp)

Pixels in, signals out



](/diagrams/feature-extraction)[

![Video highlight detection pipeline: a video is decomposed into shots and segments, each segment is scored across visual, audio, and transcript signals, contiguous high-scoring intervals merge into moments, and moments are ranked per video.](/diagrams/multimodal-decomposition.webp)

Multimodal Decomposition: One File, Many Signals



](/diagrams/multimodal-decomposition)