Clip-Anything

SamurAIGPTMIT活跃维护

用自然语言提示从任意视频中精准截取片段,省去手动拖时间轴找画面的麻烦,适合快速产出短视频素材。

Clip any moment from any video with prompts

暂无版本314star60fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/SamurAIGPT/Clip-Anything.git
cd Clip-Anything
pip install -r requirements.txt
python clip_anything.py --video input.mp4 --prompt "your prompt here"
硬件要求按 README 说明

README 未说明显存或 GPU 要求;技术栈依赖 GPT-4V 云端接口,本地主要做抽帧与 FFmpeg 处理。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用自然语言提示从任意视频中定位并剪出指定片段的 Python 工具

用自然语言提示从任意视频中精准截取片段,省去手动拖时间轴找画面的麻烦,适合快速产出短视频素材。

核心能力

  • 用自然语言提示描述想要的画面并自动匹配片段
  • 多模态分析画面、音频、情绪与屏幕文字
  • 智能场景检测识别物体、动作、情绪和文本
  • 为每个场景打病毒传播潜力评分
  • 基于 FFmpeg 与 OpenCV 完成视频抽帧与剪辑

容易踩的坑

依赖 GPT-4V 与 Whisper,需自备相应 API 密钥或模型,README 未给出配置步骤;需本地安装 FFmpeg 才能处理视频;Python 需 3.8 及以上版本。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Clip Anything

    GitHub stars License Python

    Multimodal AI video clipping - Extract any moment from any video using natural language prompts. Just describe what you're looking for, and AI will find and clip it for you.

    Clip Anything Demo

    Looking for an api to build your own Opus-clip style product ? Check the api below

    https://muapi.ai/playground/autocrop

    https://muapi.ai/playground/ai-clipping

    Tutorials

    Features

    • Natural Language Prompts - Describe the moment you want in plain English
    • Multimodal Analysis - Understands visual, audio, and sentiment cues
    • Smart Scene Detection - Identifies objects, actions, emotions, and text
    • Virality Scoring - Rates each scene for potential engagement
    • Customizable Clips - Tailor output to your exact specifications

    How It Works

    Video Input → AI Analysis → Prompt Matching → Clip Extraction → Output Video
    

    Advanced Video Analysis

    The AI evaluates every frame of your video:

    • Visual: Objects, scenes, actions, faces
    • Audio: Speech, music, sound effects
    • Sentiment: Emotions, reactions, tone
    • Text: On-screen text and captions

    Prompt-Based Clipping

    Simply describe what you want:

    • "Find all the funny moments"
    • "Clip when someone scores a goal"
    • "Extract the product reveal"
    • "Get the emotional reaction shots"

    Demo

    Input Video: YouTube Example

    Output Video: See Result

    Quick Start

    # Clone the repository
    git clone https://github.com/SamurAIGPT/Clip-Anything.git
    cd Clip-Anything
    
    # Install dependencies
    pip install -r requirements.txt
    
    # Run the clipper
    python clip_anything.py --video input.mp4 --prompt "your prompt here"
    

    API Alternative

    Want production-ready clipping at scale? Use the Vadoo AI Clipping API:

    import requests
    
    response = requests.post(
        "https://viralapi.vadoo.tv/api/create_clips",
        headers={"X-API-KEY": "your_api_key"},
        json={
            "video_url": "https://example.com/video.mp4",
            "prompt": "highlight moments"
        }
    )
    

    Use Cases

    Use CaseExample Prompt
    Sports Highlights"Extract all scoring plays"
    Podcast Clips"Find the most insightful moments"
    Travel Vlogs"Clip the scenic views"
    Tutorials"Get the key demonstration steps"
    Interviews"Find emotional reactions"

    Tech Stack

    ComponentPurpose
    GPT-4VVisual understanding
    WhisperAudio transcription
    FFmpegVideo processing
    OpenCVFrame analysis

    Contributing

    Contributions are welcome! Please feel free to submit a Pull Request.

    Follow for Updates

    Related Projects

    License

    MIT License - see LICENSE for details.