SreejanPersonal / Automate-YT-Shorts-Video-Resource-

Automate your YouTube Shorts creation using Python with this comprehensive AI-driven tool. From script writing to background video search, subtitle generation, and automatic YouTube upload, streamline your entire content creation process. Elevate your Shorts game with the power of artificial intelligence.
MIT License
8 stars 1 forks source link

Make Sure You Subscribe To our Channel 😊😊

Devs Do Code

🚀 Dive into the world of coding with Devs Do Code - where passion meets programming! Make sure to hit that Subscribe button to stay tuned for exciting content! 😊✨

Pro Tip: For optimal performance and a seamless experience, we recommend using the default library versions demonstrated in this demo. Your coding journey just got even better! Happy coding! 🖥️💻

Automate-YT-Shorts-Video-Resource

Create YouTube Shorts without any effort, simply by providing a video topic to talk about.

Installation

# Clone the REPO
git clone https://github.com/SreejanPersonal/Automate-YT-Shorts-Video-Resource-.git

# Install the required dependencies
pip install -r requirements.txt

# Set the Environment Variables
ASSEMBLY_AI_API_KEY = os.getenv("ASSEMBLY_AI_API_KEY")
PEXELS_API_KEY = os.getenv("PEXELS_API_KEY")
IMAGEMAGICK_BINARY = os.getenv("IMAGEMAGICK_BINARY") # IF ISSUE OCCURS THEN CHANGE FILE LOCATION IN conf.py

# Run the backend server
python main.py
     # OR
python main.ipynb

If any error occurs for FFMPEG then follow these steps

# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

# Install FFMPEG
choco install ffmpeg

See .env for the required environment variables.

If you need help, open ENV.md for more information.

Usage

  1. Fill .env file with the required values
  2. Enter a topic to talk about
  3. Run the main.py file
  4. Wait for the video to be generated
  5. The video's location is temp/output.mp4

Fonts

Add your fonts to the fonts/ folder, and load them by specifiying the font name in Backend/video.py.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

See LICENSE file for more information.