使用 AI 转录和总结视频内容。开源、跨平台且支持多种语言。AI视频转录器

一款人工智能视频转录和摘要工具,支持 YouTube、Tiktok、Bilibili 等 30 多个平台。

工具截图

AI-Video-Transcriber AI视频转录器,一款开源的AI视频转录和摘要工具,支持YouTube、Bilibili、抖音等30+平台。

功能特性

  • 🎥 多平台支持: 支持YouTube、Bilibili、抖音等30+平台。
  • 🗣️ 智能转录: 使用Faster-Whisper模型进行高精度语音转文字
  • 🤖 AI文本优化: 自动错别字修正、句子完整化和智能分段
  • 🌍 多语言摘要: 支持多种语言的智能摘要生成
  • ⚙️ 条件式翻译:当所选总结语言与Whisper检测到的语言不一致时,自动调用GPT‑4o生成翻译
  • 📱 移动适配: 完美支持移动设备

快速入门

 

先决条件

 

  • Python 3.8+
  • FFmpeg
  • 可选:OpenAI API 密钥(用于 AI 摘要功能)

安装

 

方法一:自动安装

 

  1. # Clone the repository
  2. git clone https://github.com/wendy7756/AI-Video-Transcriber.git
  3. cd AI-Video-Transcriber
  4.  
  5. # Run installation script
  6. chmod +x install.sh
  7. ./install.sh

方法二:Docker

 

  1. # Clone the repository
  2. git clone https://github.com/wendy7756/AI-Video-Transcriber.git
  3. cd AI-Video-Transcriber
  4.  
  5. # Using Docker Compose (easiest)
  6. cp .env.example .env
  7. # Edit .env file and set your OPENAI_API_KEY
  8. docker-compose up -d
  9.  
  10. # Or using Docker directly
  11. docker build -t ai-video-transcriber .
  12. docker run -p 8000:8000 -e OPENAI_API_KEY="your_api_key_here" ai-video-transcriber

方法3:手动安装

  1. 安装 Python 依赖项
  1. # macOS (PEP 668) strongly recommends using a virtualenv
  2. python3 -m venv .venv
  3. source .venv/bin/activate
  4. python -m pip install --upgrade pip
  5. pip install -r requirements.txt
  1. 安装 FFmpeg
  1. # macOS
  2. brew install ffmpeg
  3.  
  4. # Ubuntu/Debian
  5. sudo apt update && sudo apt install ffmpeg
  6.  
  7. # CentOS/RHEL
  8. sudo yum install ffmpeg
  1. 配置环境变量
  1. # Required for AI summary/translation features
  2. export OPENAI_API_KEY="your_api_key_here"
  3.  
  4. # Optional: only if you use a custom OpenAI-compatible gateway
  5.  
  6. ### Start the Service
  7.  
  8. ```bash
  9. python3 start.py

服务启动后,打开浏览器访问http://localhost:8000

生产模式(推荐用于长视频)

 

为了避免长时间处理期间 SSE 断开连接,请以生产模式启动(禁用热重载):

  1. python3 start.py --prod

这使得 SSE 连接在长时间任务(30-60 分钟以上)中保持稳定。

使用显式环境运行(示例)

 

source .venv/bin/activate export OPENAI_API_KEY=your_api_key_here # export OPENAI_BASE_URL=https://oneapi.basevec.com/v1 # if using a custom endpoint python3 start.py –prod

使用指南

  1. 输入视频链接: 在输入框中粘贴YouTube、Bilibili等平台的视频链接
  2. 选择摘要语言: 选择希望生成摘要的语言
  3. 开始处理: 点击”开始”按钮
  4. 监控进度: 观察实时处理进度,包含多个阶段:
    • 视频下载和解析
    • 使用Faster-Whisper进行音频转录
    • AI智能转录优化(错别字修正、句子完整化、智能分段)
    • 生成选定语言的AI摘要
  5. 查看结果: 查看优化后的转录文本和智能摘要
  6. 下载文件: 点击下载按钮保存Markdown格式的文件

项目地址

github :https://github.com/wendy7756/AI-Video-Transcriber

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。