RayVentura / ShortGPT
- ััะตะดะฐ, 19 ะธัะปั 2023โฏะณ. ะฒ 00:00:07
๐๐ฌ ShortGPT - An experimental AI framework for automated short/video content creation. Enables creators to rapidly produce, manage, and deliver content using AI and automation.
ShortGPT is a powerful framework for automating content creation. It simplifies video creation, footage sourcing, voiceover synthesis, and editing tasks.
If you prefer not to install the prerequisites on your local system, you can use the Google Colab notebook. This option is free and requires no installation setup.
Click on the link to the Google Colab notebook: https://colab.research.google.com/drive/1_2UKdpF6lqxCqWaAcZb3rwMVQqtbisdE?usp=sharing
Once you're in the notebook, simply run the cells in order from top to bottom. You can do this by clicking on each cell and pressing the 'Play' button, or by using the keyboard . Enjoy using ShortGPT!
We hope you find ShortGPT helpful! If you do, let us know by giving us a star
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 runShortGPT.py
successfully.
Before you begin, ensure that you have the following prerequisites installed on your system:
Follow the instructions below to install ImageMagick, FFmpeg, and clone the shortGPT repository:
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
Then run the following command to fix a moviepy Imagemagick policy.xml incompatibility problem:
!sed -i '/<policy domain="path" rights="none" pattern="@\*"/d' /etc/ImageMagick-6/policy.xml
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.
For Windows
Download the FFmpeg binaries from this Windows Installer (It will download ffmpeg, ffprobe and add it to your path).
https://github.com/icedterminal/ffmpeg-installer/releases/tag/6.0.0.20230306
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.
git clone https://github.com/rayventura/shortgpt.git
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.
Once you have successfully installed ImageMagick, FFmpeg, and the Python dependencies, you can run shortgpt.py
by following these steps:
runShortGPT.py
is located (the cloned repo).python runShortGPT.py
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:
config
tab located at the left side bar of the user interface.OPENAI API KEY
and ELEVENLABS API KEY
in the corresponding input fields.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.
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.
ContentShortEngine
is designed for creating shorts, handling tasks from script generation to final rendering, including adding YouTube metadata.
ContentVideoEngine
is ideal for longer videos, taking care of tasks like generating audio, automatically sourcing background video footage, timing captions, and preparing background assets.
EditingEngine
, using Editing Markup Language and JSON, breaks down the editing process into manageable and customizable blocks, comprehensible to Large Language Models.
More documentation incomming, please be patient.
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.
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.
We're eager to interact with you and listen to your feedback, concepts, and experiences with Short-GPT. Come on board on Twitter and let's navigate the future of AI as a team!