๐ค Automatically generate YouTube shorts simply by running the script!
From creation to editing and voiceover too for a YouTube short, this script automates it all. No more tedious tasks, endless hours, this script has you covered!
Absolutely free!
- NOTE : This video is trimmed but it shouldn't take more than 1 minute to generate your video.
Follow the instructions given below to get this script up and running on your device.
- OpenAI API Key - Get it from the Open AI Website. It provides $18 of free credits by default and they are more than enough. [OPTIONAL]
- OpenAI -
pip install openai
- gTTS -
pip install gtts
- MoviePY -
pip install moviepy
- Dotenv -
pip install python-dotenv
- Download this repository as zip file / using git.
- Open the folder.
- Make sure the above mentioned modules are installed. (
pip install -r requirements.txt
) - Add your OpenAI API key to
.env.example
file (OPENAI_API=<key>
) and rename it to just.env
[OPTIONAL] - Now, download both the gameplay videos from Google Drive (as they were too large to upload to Github)
- Put both the videos in a folder named "
gameplay
" in the directory withshorts.py
file. - Run the
shorts.py
python file.
To use this script,
- Run the
shorts.py
python file. - Enter the name of the video.
- Let AI generate video content for you / enter it yourself.
- NOTE : (Make sure you have added your OpenAI API key in
.env
file if using AI to generate content)
- And that's it! Everything else will be handled automatically!
- You can find your video in
generated/
directory.
<sup>
Beep boop, boop beep. I am a script. If there are any issues, contact my Creator - BedrockGranny#8331 and/or
bedrockgranny on Discord </sup>
- OpenAI API - For generating video content.
- gTTS - For Text-to-Speech.
- MoviePY - For video editing.
Note that this script is very basic as of now and does not generate any graphics like images or even subtitles. These are some things that I MAY add in the future. If you want to contribute, you are free to do so and you may even fork and improve this repository.
Due to school, exams and irl stuff I don't get much time to work on this project. When I do, I would like to add the above mentioned features. Maybe even a REDDIT video maker but not sure yet.