CLI tool for automated YouTube Shorts creation
Top 80.3% on sourcepulse
This script automates the creation of YouTube Shorts from gameplay videos, handling content generation, text-to-speech, and video editing. It targets content creators looking to streamline the production of short-form video content, offering a free and automated solution to reduce manual effort.
How It Works
The process begins with content generation, either via AI using the OpenAI API or user-provided text. This content is then converted to speech using gTTS. Subsequently, MoviePY is employed to select a random segment from provided gameplay footage, overlay the generated speech, resize the video to a 9:16 aspect ratio, and save the final Short.
Quick Start & Requirements
pip install openai gtts moviepy python-dotenv
.env
file (e.g., OPENAI_API=your_key
).gameplay
folder.python shorts.py
Highlighted Details
generated/
directory.Maintenance & Community
The project is currently basic, with potential future additions like subtitles and graphics. The creator is open to contributions but has limited time due to real-life commitments. Contact information for the creator is provided on Discord.
Licensing & Compatibility
The project's license is not explicitly stated in the README. The description implies it is free to use.
Limitations & Caveats
The script is described as "very basic" and does not generate graphics or subtitles. The README notes that gameplay videos are provided via Google Drive links due to their size, implying users must download these separately.
1 year ago
1 week