Subvert: Revolutionizing Video Processing with AI
Subvert is an innovative tool designed to transform how users generate subtitles, chapters, and summaries from video content swiftly and efficiently. By leveraging the powerful capabilities of OpenAI, Subvert automates and accelerates the video processing workflow, providing valuable outputs in just seconds.
Key Features
-
Subtitle Generation: Subvert harnesses the capabilities of AI to transcribe video audio into subtitle files quickly and accurately. This feature is invaluable for content creators looking to make their content accessible to a broader audience.
-
Chapter Creation: Subvert can break down long videos into comprehensible chapters. This allows viewers to navigate video content effortlessly and helps creators organize their materials more effectively.
-
Summarization: Subvert provides concise summaries of video content. This feature is especially useful for platforms like YouTube, where brief descriptions help guide viewers’ decisions to watch content.
Getting Started
To begin using Subvert, prerequisites include having Docker installed on your machine and obtaining an OpenAI API key. Once these are in place, starting Subvert is straightforward with a simple one-line command to initiate the Docker container. This command will launch a server that can be accessed locally.
docker run -it -p 80:8080 -e OPENAI_API_KEY=sk-123abc aschmelyun/subvert
How it Works
Upon selecting a video file for processing, users have the option to generate subtitles, chapters, and a summary. Subvert processes the audio using FFMpeg and employs OpenAI's Whisper model for transcription. For chapters and summaries, the transcript is further processed using a ChatGPT model to create organized chapter outlines and concise summaries.
Customization and Configuration
Subvert offers flexibility in configuration, allowing users to tailor specific parameters through environment variables:
OPENAI_API_KEY
- Essential for API communication (required)UPLOAD_MAX_FILESIZE
- Adjusts the maximum allowed file upload size. Default is256M
.MEMORY_LIMIT
- Changes PHP memory limit setting. Default is512M
.
Running Directly from Source
For those with a development setup including PHP 8.1+ and npm, Subvert can be initiated directly from the source code. This involves checking out the repository and executing a startup script.
Deployment
Thanks to its encapsulation in a single Dockerfile, deploying Subvert is remarkably simple. It can be quickly set up on any server running Docker, and is also compatible with cloud platforms like AWS, Azure, and GCP.
License
Subvert is released under the MIT License, ensuring open-source access and contribution opportunities for developers worldwide.
By simplifying video processing, Subvert empowers creators, educators, and businesses to enhance their video content effortlessly, making it more engaging and accessible to diverse audiences.