? Automatically generate YouTube shorts simply by running the script!
From creation to editing and voiceover too, this script automates it all for a YouTube short. No more tedious tasks or endless hours, this script has you covered! And the best part? It's absolutely free!
pip install openai
pip install gtts
pip install moviepy
pip install python-dotenv
pip install -r requirements.txt
.env.example
file (OPENAI_API=<key>
) and rename it to .env
[OPTIONAL]gameplay
" in the directory with the shorts.py
file.shorts.py
Python file.To use this script:
shorts.py
Python file..env
file if using AI to generate content)generated/
directory.Click Here To See The Demo Video
The script starts by taking the video name and asking if the user wants to generate content using AI (which can be edited later).
After the content is generated/entered by the user, it generates Text-to-Speech and saves the file as speech.mp3
.
The editing starts by selecting a gameplay, trimming a random part of it, and adding speech on top of it. Next, it resizes the video to a 9:16 aspect ratio and saves the final video.
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 may be added in the future. If you want to contribute, you are free to do so. Feel free to fork and improve this repository.
Due to school, exams, and other real-life commitments, 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 I'm not sure yet.
Beep boop, boop beep. I am a script. If there are any issues, contact my [Creator](https://github.com/Binary-Bytes) - BedrockGranny#8331 or bedrockgranny on Discord.