---
title: How can I stop my video from looping?
description: Stop media from looping in invideo AI by shortening the script segment or adding a new media keyword.
---
Media loops when its script segment is longer than the media. The media repeats until the segment ends.

<Image src="/images/help/s204.png" alt="A media in the Media panel that is shorter than its script segment" />

You can fix this in two ways.

## Make the segment shorter

1. Click **Edit**, then **Script**.

<Image src="/images/help/s106.webp" alt="Clicking Edit, then Script, to open the Script panel" />

2. Find the sentence. To find it fast, copy the sentence from the Media panel and search for it in the Script panel.
3. Shorten or rephrase the sentence.

<Image src="/images/help/s206.webp" alt="A sentence being shortened in the Script panel" />

The segment now fits the media, and the media stops looping.

## Add a new media keyword

1. In the Script panel, click **+ add media**.
2. Type keywords or phrases for the media you want.
3. Click **apply**. The AI finds or makes media for the new keyword.

<Image src="/images/help/s208.webp" alt="The add media box in the Script panel with a keyword typed in" />

You can also choose where the media comes from:

- **Switch to stock**: invideo picks the media from the stock library.
- **Switch to generative**: AI generates the media. This uses credits. See <a href="https://invideo.io/help/billing/how-do-credits-work/" target="_blank">how credits work</a>.

<Image src="/images/help/s209.webp" alt="The Switch to stock and Switch to generative options" />