---
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.

<Banner variant="info">

Media also loops when you make it shorter than its segment. For example, if you cut a clip short, it repeats until the segment it belongs to ends.

</Banner>

<Image src="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1248575594/d7e86e3becff15a02c2dc5f8e6a2/Screenshot+2024-11-12+at+4_09_37+PM.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="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1532544780/d952ed22a2a5e16ab1548122ad50/ScreenRecording2025-05-20at8_42_23PM-ezgif_com-video-to-gif-converter.gif" 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="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1248578615/6281f9c604084b428c5ae3741ce3/Screenshot+2024-11-12+at+4_13_04+PM.png" alt="A sentence being shortened in the Script panel" />

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

<Image src="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1248582369/be5ee8d6d3fe18f47c19075e9d51/Screenshot+2024-11-12+at+4_16_36+PM.png" alt="The shorter segment with media that no longer loops" />

## 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="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1266166730/00f4e6aa5ff45fc4c1836e307409/Screenshot%2B2024-11-17%2Bat%2B1_39_44%2BAM.png" 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="https://downloads.intercomcdn.com/i/o/fxxlrhi6/1266166731/8aa705547214340693d95376030d/Screenshot%2B2024-11-13%2Bat%2B6_38_41%2BPM.png" alt="The Switch to stock and Switch to generative options" />