> For the complete documentation index, see [llms.txt](https://support.hivo.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.hivo.co/video/scene-detection-in-video.md). Agents can also search and read this documentation through its [MCP server](https://support.hivo.co/~gitbook/mcp).

# Scene Detection in Video

Automatically splits a video into smaller segments based on one or two selected people detected within the video

### **Video Scene Detection Feature**

**The Scene Detection Video** feature allows the system to automatically split a video into multiple smaller segments based on the faces detected in the video.

With video scene detection feature, users can:

* View all segments generated from the original video, for one person or for up to two people.
* Download individual segments.
* Edit each segment independently (similar to the Video Editor on the Asset Detail page) and save it as a new version or a new asset.
* Merge the segments into a new video and edit it (similar to the Video Editor on the Asset Detail page), then save it as a new version or a new asset.

👉 **Note: Scene Detection only works if** [**Face Detection** ](https://support.hivo.co/recognition/run-automation-recognition)**has already been processed** on the video.

### **How to use Scene Detection in Video**

#### 🔹 **Step 1: Run Scene Detection in Video**

* On the video toolbar, click the **Scene Detection icon**.
* When clicked, the system opens the **Scene Detection Dialog**.

<figure><img src="https://2446612760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sjg5GpIPr5HzBTJYqYe%2Fuploads%2FiLVizJamxSkKEExjR7Ey%2FGroup%20896.png?alt=media&amp;token=640012c7-82ec-48a8-8dd8-936d65513d74" alt=""><figcaption></figcaption></figure>

#### 🔹 **Step 2: Select up to Two People for Segment Generation**

Inside the Scene Detection Dialog:

* **View Detected Faces**
  * The system displays **all faces detected** by Face Detection.
  * Each detected face is shown as a **thumbnail** for selection.
* **Select one or two people**
  * Click a face to select it. Click it again to unselect it.
  * You can select **up to 2 people**. Once two people are selected, the other faces are disabled until you unselect one.

<figure><img src="https://2446612760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sjg5GpIPr5HzBTJYqYe%2Fuploads%2FV0jaRXXlGJ2kDyUlgyiL%2FGroup%20897.png?alt=media&amp;token=0aa3eef3-28d7-480e-ad1e-61004f857f7b" alt=""><figcaption></figcaption></figure>

* **Apply your selection**
  * **One person selected:** click **Apply**. The system splits the video into segments each time that person appears.
  * **Two people selected:** Click the **Apply dropdown** to choose how the selected people should be matched: Apply Either or Apply Both.

| Option           | What you get                                                                                                                                 |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| **Apply Either** | The segments of **each person**, listed in a separate section per person. Each section shows the person's face, name and number of segments. |
| **Apply Both**   | Only the moments where **both people appear in the video at the same time**.                                                                 |

<figure><img src="https://2446612760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sjg5GpIPr5HzBTJYqYe%2Fuploads%2FUqWwyyJuUHSXXYTYiP4O%2FGroup%201083.png?alt=media&amp;token=af2bad89-abea-4fdc-8ad4-2a5f75eac898" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Which option should I choose?**

* Use **Apply Either** to get all footage of each person, e.g. to collect clips of two speakers from one event video.
* Use **Apply Both** to get only the footage where the two people are together, e.g. an interview or a handshake.
  {% endhint %}

#### 🔹 **Step 3: Automatic Segment Generation**

The system creates a segment each time the selected person appears (with **Apply Both**, each time both people appear together). Each segment shows its **Start**, **End** and **Duration**.

* **Title:** shows the selected people, e.g. **Video Segments - A or B** (Apply Either) or **A & B** (Apply Both). Untagged people show as **Untagged Person**; identical names are numbered, e.g. **Untagged Person (1)**.
* **Apply Either:** one section per person, with segments numbered within each section.
* **No segments found:** shown when the person doesn't appear, or the two people never appear together.
* **Back:** the arrow at the top left returns to the person selection, with the same people still selected.

#### 🔹 **Step 4: Adding a buffer to segments**

A buffer adds **0–10 seconds** before (**Pre**) and after (**Post**) a segment.

* **One segment:** enter **Pre (s)** and **Post (s)** on the segment card.
* **All segments:** tick **Apply buffer to all clips**, enter the seconds, then click **APPLY TO ALL**. This replaces the buffer on every segment, including ones set individually.
* **Start, End and Duration** on each card include the buffer and are used for Download, Edit and Merge. E.g. with a 2s Pre and 3s Post buffer, 0:46–0:49 becomes **0:44–0:52**. A buffer never goes before 0:00 or past the end of the video.
* **To remove a buffer**, set it back to 0. Unticking the checkbox doesn't remove it.

{% hint style="warning" %}
**When two people are selected**

* **APPLY TO ALL applies to both people's segments**, and the segment count under the title is the total for both.
* **Going Back or closing the list resets all buffers**, so choose Apply Either or Apply Both before adding them.
* **Buffers can make segments overlap.** When the segments are merged, overlapping parts are only included once, so the merged video can be shorter than the total of the segment durations. Segments downloaded one by one aren't adjusted, so two downloaded files can contain the same footage.
* **With Apply Both**, a buffer extends the segment beyond the moment the two people are together, so the start and end of the segment may show only one of them.
  {% endhint %}

#### 🔹 **Step 5: Segment Actions**

For each generated segment, users can:

* **Play Segment:** Preview the segment to verify its content.
* **Add Buffer:** Use the **Pre (s)** and **Post (s)** fields on a segment card to add extra seconds before and after that segment.
* **Download Segment:** Download the trimmed segment. With **Apply Either**, the file name includes the person's name and the segment number in their section.
* **Merge all Segments**

<figure><img src="https://2446612760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sjg5GpIPr5HzBTJYqYe%2Fuploads%2FuDZJbP6qfP7Ym5zBVIfi%2FGroup%20899.png?alt=media&amp;token=c6783585-1393-4b26-9254-97f21ca33bd7" alt=""><figcaption></figcaption></figure>

* **Edit Segment:** Adjust the start and end timestamps. The editing interface is similar to the[ **Video Editor** ](https://support.hivo.co/video/video-editor)in Asset Detail. After editing, users can choose to:
  * **Save as new version**
  * **Save as new asset**

<figure><img src="https://2446612760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sjg5GpIPr5HzBTJYqYe%2Fuploads%2F3lyxuQuZvOaD46sfA8zm%2FGroup%20902.png?alt=media&amp;token=7ec83958-2359-4708-bed8-7461623cbaae" alt=""><figcaption></figcaption></figure>

#### 🔹 **Step 6: Merge all Segment & Edit**

* **Merge All Segments:** Users can merge all generated segments into a single video. The system creates a new combined video file.
  * With **Apply Either**, the merged video contains the segments of **both** people. Where their segments overlap, that part is only included once.
  * The merge uses each segment's buffered times.
* **Edit the Merged Video:**
  * After merging, the merged video can be edited using the Video Editor tools include: **TRIM, CROP, FILTER, add LAYER, SETTINGS out put.**
  * The interface works the same as the standard [**Video Editor**](https://support.hivo.co/video/video-editor)**.**

<figure><img src="https://2446612760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0sjg5GpIPr5HzBTJYqYe%2Fuploads%2Fj2UaczZ18pQxw1VQSSai%2FGroup%20903.png?alt=media&amp;token=7ea9d8bb-e678-4bc9-aeee-a8f8649db5d9" alt=""><figcaption></figcaption></figure>

#### 🔹 **Step 7: Save the Merged Video**

Users can choose how to save:

* **Save as new version:** Create a new version of the original video.
* **Save as new asset:** Save the merged video as a completely new asset in the library.

### **Good to know**

* **Maximum two people:** Scene Detection combines up to 2 people at a time.
* **Apply Both is based on face detection:** A segment covers the time from when a face is first detected to when it is last detected. A person may briefly look away or be hidden within a segment, so preview the segments before downloading or merging.
* **Very short segments:** With Apply Both, if one person's appearance ends exactly when the other's begins, the list can show a very short segment (under a second) at that moment, because both faces were detected in that frame.
* **Tag people for clearer names:** Tag faces to People Profiles (see [**Add Person and Tagging Faces Directly in Assets**](https://support.hivo.co/people/add-person-and-tagging-faces-directly-in-assets.md)) so segment titles and file names show real names instead of *Untagged Person*.

If you have any questions, don't hesitate to ask, we're always here to help!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.hivo.co/video/scene-detection-in-video.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
