vid2cc-AI 🎙️🎬
vid2cc-AI is a high-performance CLI tool designed to bridge the gap between raw video and accessible content. By leveraging OpenAI's Whisper models and FFmpeg's robust media handling, it automates the creation of perfectly synced .srt subtitles.
Table of contents
- 🚀 Key Features
- ⚙️ Installation
- 📖 How To Use
- ☁️ Run on Google Colab (with UI)
- 🧪 Testing
- 🗺️ Roadmap
- 🛠️ Tech Stack
- 📄 License
🚀 Key Features
- AI-Driven Transcription: Powered by OpenAI Whisper for industry-leading accuracy.
- Hardware Acceleration: Automatic CUDA detection for GPU-accelerated processing.
- Intelligent Pre-processing: FFmpeg-based audio extraction optimized for speech recognition (16kHz Mono).
- Professional Packaging: Fully installable via pip with a dedicated command-line entry point.
⚙️ Installation
1. Prerequisite: FFmpeg
This tool requires FFmpeg to be installed on your system.
For a complete step-by-step guide on how to install FFmpeg on Windows (Winget/Choco), macOS (Homebrew), or Linux (Apt/Dnf/Pacman), please refer to the dedicated guide:
2. Install vid2cc-AI
pip install vid2cc-ai
*Install directly from the source for development:
git clone https://github.com/0xdilshan/vid2cc-AI.git
cd vid2cc-AI
pip install -e .
📖 How To Use
Once installed, the vid2cc command is available globally in your terminal.
Examples
For maximum accuracy with toggleable subs:
vid2cc example.mp4 --model large --embed
🛠️ Advanced Options
Fine-tune your output using the following flags:
| Flag | Description |
|---|---|
--model [size] |
Choose Whisper model: tiny, base, small, medium, large or turbo. |
--embed |
Soft Subtitles: Adds the SRT as a metadata track. Fast and allows users to toggle subtitles on/off in players like VLC. |
--hardcode |
Burn-in Subtitles: Permanently draws subtitles onto the video. Essential for social media (Instagram/TikTok) where players don't support SRT files. |
--output-dir or -o |
Set Output Directory: Create the destination directory if it doesn't exist and ensure all generated files (SRT, audio, and video) are saved there. |
--translate or -t |
Translate to English: Automatically translate any supported language transcription to English |
📦 Batch Processing
No need to run the command for every single file. You can pass multiple videos at once:
# Process all mp4 files in the current directory
vid2cc *.mp4 --model small --embed
# Process multiple specific files
vid2cc video1.mp4 video2.mkv video3.mov --model base --embed
📦 Usage as a Library
You can integrate vid2cc-AI directly into your Python projects:
from vid2cc_ai import Transcriber, extract_audio
# Extract and Transcribe
extract_audio("video.mp4", "audio.wav")
ts = Transcriber("base")
segments = ts.transcribe("audio.wav")
for s in segments:
print(f"[{s['start']:.2f}s] {s['text']}")
Run on Google Colab (with UI)
You can run vid2cc-ai directly in your browser using Google Colab. This version includes a friendly interface to manage your Google Drive files and transcription settings without writing code.
-
Install & Mount: Run the first cell to install
vid2cc-aiand connect your Google Drive. -
Configure UI: * Video Path: Right-click your video in the Colab file sidebar and select "Copy Path."
- Model: Choose
turboorsmallfor speed, large for accuracy. - Output: Select if you want Soft Subtitles (toggleable) or Hardcoded (burned-in).
- Model: Choose
-
Start: Click "Start Processing" and find your result in your Drive folder.
⚡ For 10x faster transcription, ensure your Colab runtime is set to GPU (Runtime > Change runtime type > T4 GPU).
🧪 Testing
# Install test dependencies
pip install pytest
# Run the test suite
pytest
🗺️ Roadmap
- Local video → SRT subtitle/ transcription
- Embed subtitles into video containers (
--embed) - Burn-in subtitles (
--hardcode) - Set custom output directory (
--output-dir) - Multilingual transcription
- Support translation to English
[ ] Transcription from YouTube/Vimeo URLs (yt-dlp)- Google Colab notebook support
🛠️ Tech Stack
- Inference: OpenAI Whisper
- Media Engine: FFmpeg
- Core: Python 3.9+, PyTorch
- CLI Framework: Argparse
📄 License
Distributed under the MIT License.
See LICENSE for more information.
Metadata
Release files for vid2cc-ai 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vid2cc_ai-0.1.5.tar.gz | 11.9 kB | With provenance | Details for vid2cc_ai-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vid2cc_ai-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for vid2cc_ai-0.1.5-py3-none-any.whl |
Total release size: 22.4 kB
Release files / vid2cc_ai-0.1.5.tar.gz
| Download URL | vid2cc_ai-0.1.5.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e818d1d562d8fb88c35d8ed2a7cbb5ca4076baf11e8c322a4a30845ebfd00da0
|
|
BLAKE2b-256 checksum How to use checksums |
66110a834961b3b664f1a7160f3d58223d74b4fd61d7eadc934ece5af4ef89fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 19, 2026.
Transparency logRelease files / vid2cc_ai-0.1.5-py3-none-any.whl
| Download URL | vid2cc_ai-0.1.5-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccf6d5314a91c9e2146ba92cd629136c9957d2c90632018736ed8d7d567a4abd
|
|
BLAKE2b-256 checksum How to use checksums |
d26d3ff38d4c813be177b6d2f2f32d54692588e36c1cbb477120117d16cd3573
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 19, 2026.
Transparency logSecurity for vid2cc-ai 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for vid2cc_ai-0.1.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.