> ## Documentation Index
> Fetch the complete documentation index at: https://docs.videodb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PromptClip

> AI-powered video editing with natural language prompts - find perfect moments in videos instantly using spoken and visual content analysis.

<Card icon="github" title="Try PromptClip" href="https://github.com/video-db/PromptClip">
  Open source repo for AI-driven video editing
</Card>

PromptClip is your new superpower for video editing with prompts. While editing, we all wanted to find that perfect moment in a video with ease. Say goodbye to manually skimming and seeking through video, and say hello to instant, AI-driven video consumption and creation.

LLMs are great with text, but they don't help you consume or create video clips. We've built [PromptClip](https://github.com/video-db/PromptClip), an open source repo to get you started on AI driven video editing. For example, you can just say:

"*Find the moment where Mr. Bean is attempting to cheat by peeking at the answer sheet of the man beside him*"

<iframe className="w-full aspect-video rounded-xl" src="https://console.videodb.io/player?url=https://stream.videodb.io/v3/published/manifests/f711075f-4573-4435-a190-7cb1817ad8b8.m3u8" title="Video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

### Process

<Steps>
  <Step title="Describe what you want">
    Use natural language to describe the what you want.
  </Step>

  <Step title="Run prompts">
    Run prompts on the visual scenes and spoken content with the choice of your LLM.
  </Step>

  <Step title="Get video stream">
    Instantly get video compilation stream from VideoDB.
  </Step>
</Steps>

<img src="https://mintcdn.com/videodb/6KL5X6-sIPSRpEUt/assets/open-source/prompt-clip.webp?fit=max&auto=format&n=6KL5X6-sIPSRpEUt&q=85&s=9ec22084ead55ce030f1fdc3730c7ea4" style={{width: "auto", height: "auto"}} alt="PromptClip architecture showing the process of describing prompts, running analysis, and getting video streams" width="2314" height="1562" data-path="assets/open-source/prompt-clip.webp" />

## Download PromptClip

<Steps>
  <Step title="Get your API key">
    Get your API key from the [VideoDB console](https://console.videodb.io/) (Free for first 50 uploads, no credit card required)
  </Step>

  <Step title="Set up your environment">
    * Add your `VIDEO_DB_API_KEY` to the `.env` file
    * Include your preferred LLM API key (`OPENAI_API_KEY` or `ANTHROPIC_KEY`) in `.env`
  </Step>

  <Step title="Install dependencies">
    Run `pip install -r requirements.txt`
  </Step>

  <Step title="Explore notebooks">
    Launch the Jupyter notebooks to start experimenting:

    * Create clips using only spoken content: [PromptClip Spoken Notebook](https://github.com/video-db/PromptClip/blob/scene-support/PromptClip_spoken.ipynb)
    * Create clips by analysing visual content: [PromptClip Visual Notebook](https://github.com/video-db/PromptClip/blob/scene-support/PromptClip_visual.ipynb)
    * Using combined audio-visual analysis: [PromptClip Multimodal Notebook](https://github.com/video-db/PromptClip/blob/scene-support/PromptClip_multimodal.ipynb)
  </Step>
</Steps>

## PromptClip in Action

### 1. Spoken Content Analysis

**Prompt: Find every moment where a deal was offered**

<iframe className="w-full aspect-video rounded-xl" src="https://console.videodb.io/player?url=https://stream.videodb.io/v3/published/manifests/f46f8de8-725a-410f-a83b-3b5e73a6b29a.m3u8" title="Video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

**Source:** [Shark Tank](https://www.youtube.com/watch?v=HpUR7-Oe1ss)

**Prompt: Show me moments in the video where the host discusses or reveals the pricing of the gadgets.**

<iframe className="w-full aspect-video rounded-xl" src="https://console.videodb.io/player?url=https://stream.videodb.io/v3/published/manifests/5c4f4752-eca4-4f76-9d68-1a855d75de88.m3u8" title="Video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

**Source:** [Useful Gadgets](https://www.youtube.com/watch?v=bGmXrMW9ucU)

### 2. Visual/Scene Analysis

**Prompt: Find the moment where Mr. Bean is attempting to cheat by peeking at the answer sheet of the man beside him**

<iframe className="w-full aspect-video rounded-xl" src="https://console.videodb.io/player?url=https://stream.videodb.io/v3/published/manifests/f711075f-4573-4435-a190-7cb1817ad8b8.m3u8" title="Video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

### 3. Using both Visual and Spoken

**Prompt: Find scenes explaining cricket rules using infographics**

<iframe className="w-full aspect-video rounded-xl" src="https://console.videodb.io/player?url=https://stream.videodb.io/v3/published/manifests/e6698737-6fc6-4bd2-b2e9-7833c03f99d7.m3u8" title="Video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

### Why PromptClip Will Transform Your Work

<CardGroup cols={2}>
  <Card icon="bolt" title="Efficiency">
    Reduce hours of manual video searching to mere seconds.
  </Card>

  <Card icon="lightbulb" title="Creativity">
    Generate fresh perspectives and ideas from your existing content.
  </Card>

  <Card icon="crosshairs" title="Precision">
    Extract exactly what you need, not just approximate matches.
  </Card>

  <Card icon="globe" title="Flexibility">
    Works with various video types, topics, and [languages](/pages/understand/indexing-pipelines/multimodal-indexing).
  </Card>
</CardGroup>

PromptClip is more than a tool; it's a new way of content interaction — The natural language way! Whether you're a content creator, researcher, or developer, PromptClip empowers you to unlock the full potential of your video content.

## Watch PromptClip in Action

Here you can check more PromptClip examples

**Prompt: "Find details about every sponsor"**

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/tYsU-fcIWL8" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

**Prompt: "Find sentences where anxiety is discussed"**

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/0s4fxzqaYws" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

**Prompt: "How to control sugar cravings"**

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/4uhIMnUnvJc" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## The Magic Behind PromptClip: VideoDB's Indexing Methods

PromptClip leverages VideoDB's advanced indexing techniques and Large Language Models (LLMs) to analyze and manipulate video content with unmatched power.

<AccordionGroup>
  <Accordion title="Spoken Word Indexing" icon="mic">
    * **Process**: VideoDB transcribes the audio content and creates a searchable index of spoken words.
    * **Implementation**: Uses advanced speech recognition algorithms to generate accurate transcripts.
  </Accordion>

  <Accordion title="Visual/Scene Indexing" icon="eye">
    * **Process**: Analyzes video frames to identify objects, actions, and scene compositions.
    * **Implementation**: Employs sophisticated scene extraction algorithms and vision models for comprehensive visual understanding.
    * **Customization**: Allows for different extraction algorithms and custom prompts for scene description. Find detailed documentation in our [Scene Indexing Guide](/pages/understand/indexing-pipelines/create-an-index).
  </Accordion>
</AccordionGroup>

## Join the VideoDB Community

Your ideas drive PromptClip's evolution. Get involved:

<CardGroup cols={2}>
  <Card icon="github" title="GitHub" href="https://github.com/video-db/PromptClip">
    Report issues, suggest features, or contribute code via pull requests
  </Card>

  <Card icon="discord" title="Discord" href="https://discord.gg/py9P639jGz">
    Share your innovative use cases and connect with the community
  </Card>
</CardGroup>

<Info>
  For more information and support, refer to the [VideoDB documentation](https://docs.videodb.io/)
</Info>
