Automating video and short content creation with AI
Project description
🎬🚀 ShortGPT
<img src="https://github.com/RayVentura/ShortGPT/assets/121462835/d9f87cf2-021d-4b8d-bb86-b3a7af1d80d4" alt="ShortGPT-logo" style="border-radius: 20px;" width="22%"/>
⚡ Automating video and short content creation with AI ⚡
📝 Introduction to ShortGPT
ShortGPT is a powerful tool for automating content creation. It simplifies video creation, footage sourcing, voiceover synthesis, and editing tasks.
-
🎞️ Automated editing framework: Streamlines the video creation process with an LLM oriented video editing language.
-
📃 Scripts and Prompts: Provides ready-to-use scripts and prompts for various LLM automated editing processes.
-
🗣️ Voiceover / Content Creation: Supports multiple languages including English 🇺🇸, Spanish 🇪🇸, Arabic 🇦🇪, French 🇫🇷, Polish 🇵🇱, German 🇩🇪, Italian 🇮🇹, and Portuguese 🇵🇹.
-
🔗 Caption Generation: Automates the generation of video captions.
-
🌐🎥 Asset Sourcing: Sources images and video footage from the internet, connecting with the web and Pexels API as necessary.
-
🧠 Memory and persistency: Ensures long-term persistency of automated editing variables with TinyDB.
Showcase
https://github.com/RayVentura/ShortGPT/assets/121462835/d357ba50-51d7-4c1c-a7ba-72d8353a804d
Instructions for running shortGPT
This guide provides step-by-step instructions for installing ImageMagick and FFmpeg on your system, which are both required to do automated editing. Once installed, you can proceed to run shortgptUI.py
successfully.
Prerequisites
Before you begin, ensure that you have the following prerequisites installed on your system:
-
Python 3.x
-
Pip (Python package installer)
Installation Steps
Follow the instructions below to install ImageMagick, FFmpeg, and clone the shortGPT repository:
Step 1: Install ImageMagick
-
For
Windows
download the installer from the official ImageMagick website and follow the installation instructions. -
For Ubuntu/Debian-based systems, use the command:
sudo apt-get install imagemagick
For macOS using Homebrew, use the command:
brew install imagemagick
-
Verify the installation by running the following command:
convert --version
You should see the ImageMagick version information if the installation was successful.
Step 2: Install FFmpeg
-
For
Windows
Download the FFmpeg binaries from the official website and add the executable to your system's PATH. -
For macOS using Homebrew, use the command:
brew install ffmpeg
For Ubuntu/Debian-based systems, use the command:
sudo apt-get install ffmpeg
-
Verify the installation by running the following command:
ffmpeg -version
You should see the FFmpeg version information if the installation was successful.
Step 3: Clone the shortGPT Repository
-
Open a terminal or command prompt.
-
Execute the following command to clone the shortGPT repository:
git clone https://github.com/rayventura/shortgpt.git
Step 4: Install Python Dependencies
-
Open a terminal or command prompt.
-
Navigate to the directory where
shortgpt.py
is located (the cloned repo). -
Execute the following command to install the required Python dependencies:
pip install -r requirements.txt
This command will install the necessary packages specified in the
requirements.txt
file.
Running shortgptUI.py Web Interface
Once you have successfully installed ImageMagick, FFmpeg, and the Python dependencies, you can run shortgpt.py
by following these steps:
-
Open a terminal or command prompt.
-
Navigate to the directory where
shortgptUI.py
is located (the cloned repo). -
Execute the following command to run the script:
python shortgptUI.py
-
After running the script, a Gradio interface should open at your local host on port 31415 (http://localhost:31415).
Putting API Keys
The ShortGPT UI needs you to input at least OpenAI and ElevenLabs api keys for running short automations. For video automations, you will also need to add a Pexels API.
Follow these steps to add your OpenAI and ElevenLabs API keys:
-
Open http://localhost:31415/?__theme=light from a web browser.
-
Click on the
config
tab located at the left side bar of the user interface. -
Add your
OPENAI API KEY
andELEVENLABS API KEY
in the corresponding input fields. -
Click
Save
to save your API keys.
That's it! You have successfully set up your API keys and can now utilize the functionality of ShortGPT in the Gradio interface.
💁 Contributing
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.
Framework overview
-
🎬 The
ContentShortEngine
is designed for creating shorts, handling tasks from script generation to final rendering, including adding YouTube metadata. -
🎥 The
ContentVideoEngine
is ideal for longer videos, taking care of tasks like generating audio, automatically sourcing background video footage, timing captions, and preparing background assets. -
🎞️ The automated
EditingEngine
, using Editing Markup Language and JSON, breaks down the editing process into manageable and customizable blocks, comprehensible to Large Language Models.
💡 ShortGPT offers customization options to suit your needs, from language selection to watermark addition.
🔧 As a framework, ShortGPT is adaptable and flexible, offering the potential for efficient, creative content creation.
More documentation incomming, please be patient.
Technologies Used
ShortGPT utilizes the following technologies to power its functionality:
-
Moviepy: Moviepy is used for video editing, allowing ShortGPT to make video editing and rendering
-
Openai: Openai is used for automating the entire process, including generating scripts and prompts for LLM automated editing processes.
-
ElevenLabs: ElevenLabs is used for voice synthesis, supporting multiple languages for voiceover creation.
-
Pexels: Pexels is used for sourcing background footage, allowing ShortGPT to connect with the web and access a wide range of images and videos.
-
Bing Image: Bing Image is used for sourcing images, providing a comprehensive database for ShortGPT to retrieve relevant visuals.
These technologies work together to provide a seamless and efficient experience in automating video and short content creation with AI.
🔗 Get in touch on Twitter 🐦
Keep up with the latest happenings, announcements, and insights about Short-GPT by checking out our Twitter accounts. Spark a conversation with our developer and the AI's own account for fascinating dialogues, latest news about the project, and more.
- Developer: Stay updated @RayVentura. Deep-dive into behind-the-scenes, project news, and related topics from the person behind ShortGPT.
We're eager to interact with you and listen to your feedback, concepts, and experiences with Auto-GPT. Come on board on Twitter and let's navigate the future of AI as a team! 💡🤖
<img src="https://api.star-history.com/svg?repos=RayVentura/ShortGPT&type=Date" alt="Star History Chart">
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.