Skip to main content

Automating video and short content creation with AI

Project description

๐Ÿš€๐ŸŽฌ ShortGPT

<img src="https://dcbadge.vercel.app/api/server/uERx39ru3R?compact=true&style=flat">
<img src="https://img.shields.io/twitter/url/https/twitter.com/rayventurahq.svg?style=social&label=Follow%20%40RayVentura">
<img src="https://img.shields.io/github/stars/rayventura/shortgpt?style=social">
<img src="https://static.pepy.tech/personalized-badge/shortgpt?period=month&units=international_system&left_color=blue&right_color=green&left_text=Downloads/month">
<img src="https://img.shields.io/badge/docs-visit-blue">

<img src="https://github.com/RayVentura/ShortGPT/assets/121462835/083c8dc3-bac5-42c1-a08d-3ff9686d18c5" alt="ShortGPT-logo" style="border-radius: 20px;" width="18%"/>

โšก Automating video and short content creation with AI โšก


If you're only interested in using ShortGPT programatically (pip library), go on the documentation website.

Otherwise, follow the installation steps below for running the web app locally.

๐ŸŽฅ Showcase (Full video on YouTube)

https://github.com/RayVentura/ShortGPT/assets/121462835/a802faad-0fd7-4fcb-aa82-6365c27ea5fe

๐ŸŽฅ Voice Dubbing

https://github.com/RayVentura/ShortGPT/assets/121462835/06f51b2d-f8b1-4a23-b299-55e0e18902ef

๐ŸŒŸ Show Your Support

We hope you find ShortGPT helpful! If you do, let us know by giving us a star โญ on the repo. It's easy, just click on the 'Star' button at the top right of the page. Your support means a lot to us and keeps us motivated to improve and expand ShortGPT. Thank you and happy content creating! ๐ŸŽ‰

GitHub star chart

๐Ÿ› ๏ธ How it works

alt text

๐Ÿ“ Introduction to ShortGPT

ShortGPT is a powerful framework 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 ๐Ÿ‡ฎ๐Ÿ‡น, Portuguese ๐Ÿ‡ต๐Ÿ‡น, Russian ๐Ÿ‡ท๐Ÿ‡บ, Mandarin Chinese ๐Ÿ‡จ๐Ÿ‡ณ, Japanese ๐Ÿ‡ฏ๐Ÿ‡ต, Hindi ๐Ÿ‡ฎ๐Ÿ‡ณ,Korean ๐Ÿ‡ฐ๐Ÿ‡ท, and way over 30 more languages (with EdgeTTS)

  • ๐Ÿ”— 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.

๐Ÿš€ Quick Start: Run ShortGPT on Google Colab (https://colab.research.google.com/drive/1_2UKdpF6lqxCqWaAcZb3rwMVQqtbisdE?usp=sharing)

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.

  1. Click on the link to the Google Colab notebook: https://colab.research.google.com/drive/1_2UKdpF6lqxCqWaAcZb3rwMVQqtbisdE?usp=sharing

  2. 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!

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 runShortGPT.py successfully.

Installation Steps

Follow the instructions below to install ImageMagick, FFmpeg, and clone the shortGPT repository:

Step 1 and 2, install Ffmpeg and ImageMagick

For the updated installation steps, please follow Step 1 and 2 in our official documentation docs.shortgpt.ai/docs/how-to-install.

Step 3: Clone the shortGPT Repository

  1. Open a terminal or command prompt.

  2. Execute the following command to clone the shortGPT repository:

    
    git clone https://github.com/rayventura/shortgpt.git
    
    

Step 4: Install Python Dependencies

  1. Open a terminal or command prompt.

  2. Navigate to the directory where runShortGPT.py is located (the cloned repo).

  3. 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 runShortGPT.py Web Interface

Once you have successfully installed ImageMagick, FFmpeg, and the Python dependencies, you can run runShortGPT.py by following these steps:

  1. Open a terminal or command prompt.

  2. Navigate to the directory where runShortGPT.py is located (the cloned repo).

  3. Execute the following command to run the script:

    
    python runShortGPT.py
    
    
  4. After running the script, a Gradio interface should open at your local host on port 31415 (http://localhost:31415).

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 ContentTranslationEngine is designed to dub and translate entire videos, from mainstream languages to more specific target languages. It takes a video file, or youtube link, transcribe it's audio, translates the content, voices it in a target language, adds captions , and gives back a new video, in a totally different language.

  • ๐ŸŽž๏ธ 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.

  • EdgeTTS: Microsoft's FREE EdgeTTS is used for voice synthesis, supporting way many more language than ElevenLabs currently.

  • 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.

๐Ÿ’ Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it would be in the form of a new feature, improved infrastructure, or better documentation.

๐Ÿ”— 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 Short-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.

Source Distribution

shortgpt-0.1.31.tar.gz (52.9 kB view details)

Uploaded Source

Built Distribution

shortgpt-0.1.31-py3-none-any.whl (76.1 kB view details)

Uploaded Python 3

File details

Details for the file shortgpt-0.1.31.tar.gz.

File metadata

  • Download URL: shortgpt-0.1.31.tar.gz
  • Upload date:
  • Size: 52.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for shortgpt-0.1.31.tar.gz
Algorithm Hash digest
SHA256 fc06b394dc3586f8d94cf390346e7ae8efbd329ead8107a4b5dbe78884ba1de9
MD5 af9d38b9fb60b31d24e68a2bac30dfc0
BLAKE2b-256 9d0db3d64b2dc8e7fd03a636333022eb6e5c6f251ff62044ea11bcbc41ded65c

See more details on using hashes here.

File details

Details for the file shortgpt-0.1.31-py3-none-any.whl.

File metadata

  • Download URL: shortgpt-0.1.31-py3-none-any.whl
  • Upload date:
  • Size: 76.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for shortgpt-0.1.31-py3-none-any.whl
Algorithm Hash digest
SHA256 98c3c2f37198e59e488e016e6be924af027b42c707dcee1307071a1d01e09756
MD5 63fda97883a9e11b5978d60a4ec93a9f
BLAKE2b-256 7801f60eecc7f6f7392cbcec293236a21ab6c658ec21879b407c97a8ab668942

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page