Introduction to the Auto YouTube Shorts Maker Project
The Auto YouTube Shorts Maker is an innovative tool designed to streamline the process of creating YouTube shorts. This project automates the entire workflow, from scripting to video editing and even voiceover generation. Best of all, it's free to use, saving creators from the tedious and time-consuming tasks traditionally associated with video production.
Description
The Auto YouTube Shorts Maker eliminates the hassle of creating YouTube shorts by automating each step. Whether you're dealing with content creation, applying edits, or incorporating voiceovers, this script takes care of everything. Its simplicity ensures developers and content creators can focus on creativity without being bogged down by technical tasks.
Table of Contents
- Installation
- Usage
- Demo
- How it Works
- Contributing
- License
- Built Using
Installation
Prerequisites
Before getting started, you'll need a few things:
- An OpenAI API Key, which can be acquired from the Open AI Website. The service provides $18 in free credits by default.
- Several Python packages need to be installed, including:
- OpenAI: Use
pip install openai
- gTTS: Use
pip install gtts
- MoviePY: Use
pip install moviepy
- Dotenv: Use
pip install python-dotenv
- OpenAI: Use
Installing the Project
- First, download the repository as a zip file or use git to clone it.
- Open the project folder.
- Ensure all the necessary Python modules are installed using
pip install -r requirements.txt
. - Add your OpenAI API key to the
.env.example
file and rename it to.env
(this step is optional if you're using AI to generate content). - Download the required gameplay videos from Google Drive, as they are too large for GitHub.
- Place these videos into a folder named "gameplay" within the directory containing the
shorts.py
file. - Finally, run the
shorts.py
Python script.
Usage
Using the script is straightforward:
- Run the
shorts.py
Python file. - Enter the desired name for your video.
- Choose whether to generate video content using AI or provide your own.
- Note: Ensure the OpenAI API key is added to the
.env
file if utilizing AI for content generation.
- Note: Ensure the OpenAI API key is added to the
- The script takes care of everything else! The resulting video can be found in the
generated/
directory.
Demo
For a quick demonstration, click here to see the demo video. Note that while the demo may be trimmed, generating a video generally takes no more than a minute.
How it Works
Here's a brief look at how the script operates:
- Content Generation: The script begins by asking for the video title and whether the user wants to generate content using AI, which can be later edited.
- Text-to-Speech: Once content is ready, it goes through text-to-speech conversion, generating a
speech.mp3
file. - Editing: The process involves selecting a random segment of gameplay, overlaying the speech, resizing the video to a 9:16 aspect ratio, and saving the final product.
Contributing
While the script currently lacks functionalities like graphic generation and subtitles, these enhancements are on the wish list for future updates. Developers and contributors are welcome to fork the repository and build upon the current code. The original developer intends to add more features, possibly even a Reddit video maker, as time allows.
License
For issues or inquiries, users are encouraged to contact the creator via GitHub or Discord.
Built Using
The project leverages several technologies:
- OpenAI API for content generation.
- gTTS for text-to-speech conversion.
- MoviePY for video editing processes.